github

package
v1.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReporterName = "github"

	LabelNameLogs    = "Samsahai Deployment - Logs"
	LabelNameHistory = "Samsahai Deployment - History"
)

Variables

This section is empty.

Functions

func New

func New(opts ...NewOption) internal.Reporter

New creates a new Github reporter

func NewGithubClient

func NewGithubClient(baseURL, token string) github.Github

NewGithubClient returns a github client for publishing commit status to github

Types

type NewOption

type NewOption func(*reporter)

NewOption allows specifying various configuration

func WithGithubClient

func WithGithubClient(github github.Github) NewOption

WithGithubClient specifies a github client to override when creating Github reporter

func WithGithubToken

func WithGithubToken(token string) NewOption

WithGithubToken specifies a github access token to override when creating Github reporter

func WithGithubURL

func WithGithubURL(url string) NewOption

WithGithubURL specifies a github url to override when creating Github reporter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL