ci

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CircleRepositoryURL = "CIRCLE_REPOSITORY_URL"
	CircleBranch        = "CIRCLE_BRANCH"
	CircleSHA1          = "CIRCLE_SHA1"
	CirclePullRequest   = "CIRCLE_PULL_REQUEST"
	CircleBuildURL      = "CIRCLE_BUILD_URL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CI

type CI int
const (
	Unknown CI = iota
	CircleCI
	Travis
)

func GetCIInfo

func GetCIInfo() (CI, *github.PullRequest, map[tags.Key]string)

Returns learn session tags for common CI environments. Currently, we support: - CircleCI - TravisCI

func (CI) MarshalText

func (c CI) MarshalText() ([]byte, error)

Implments encoding.TextMarshaler

func (CI) String

func (c CI) String() string

func (*CI) UnmarshalText

func (c *CI) UnmarshalText(s []byte) error

Implments encoding.TextUnmarshaler

Jump to

Keyboard shortcuts

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