circleci

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvKey      = "CIRCLECI"
	Integration = "circleci"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ci

type Ci struct{}

func (Ci) Identify

func (_ Ci) Identify() bool

func (Ci) Map

func (ci Ci) Map() (env.Env, error)

func (Ci) MapRepositoryUrl

func (_ Ci) MapRepositoryUrl(circleCiRepo string) string

MapRepositoryUrl returns the repository url according to the following rules:

  1. If circleCiRepo starts with "http(s)://", use it as the repo url.
  2. If circleCiRepo is of the form "git@github.com:organisation/reponame.git", rewrite and use "https://github.com/organisation/reponame" as repo url.
  3. return circleCiRepo

Jump to

Keyboard shortcuts

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