github

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() bool

Available returns true if the code is executed in a github CI environment.

func Enable

func Enable()

Enable enables this provider integration.

func FromEnv

func FromEnv() ci.Provider

FromEnv creates a new Pipeline from the environment.

Types

type Pipeline

type Pipeline struct {
	GithubWorkflow string
	GithubRunID    string
	// contains filtered or unexported fields
}

Pipeline represents the current pipeline information.

func (Pipeline) BuildID

func (p Pipeline) BuildID() string

BuildID returns a build ID.

func (*Pipeline) SetBuildID

func (p *Pipeline) SetBuildID(id string)

SetBuildID overrides the return value for BuildID().

Jump to

Keyboard shortcuts

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