Documentation ¶
Index ¶
- Constants
- func PushUsingLocalGit(ctx context.Context, gitRoot string, addPaths []string, message string) error
- func SplitRepository(r string) (string, string, error)
- type Gh
- func (g *Gh) DetectCurrentJobID(ctx context.Context, owner, repo string) (int64, error)
- func (g *Gh) DetectCurrentPullRequestNumber(ctx context.Context, owner, repo string) (int, error)
- func (g *Gh) GetDefaultBranch(ctx context.Context, owner, repo string) (string, error)
- func (g *Gh) GetRawRootURL(ctx context.Context, owner, repo string) (string, error)
- func (g *Gh) GetStepExecutionTimeByTime(ctx context.Context, owner, repo string, jobID int64, t time.Time) (time.Duration, error)
- func (g *Gh) GetStepsByName(ctx context.Context, owner, repo string, name string) ([]Step, error)
- func (g *Gh) PushContent(ctx context.Context, owner, repo, branch, content, cp, message string) error
- func (g *Gh) PutComment(ctx context.Context, owner, repo string, n int, comment string) error
- type GitHubEvent
- type Step
Constants ¶
View Source
const DefaultGithubServerURL = "https://github.com"
Variables ¶
This section is empty.
Functions ¶
func PushUsingLocalGit ¶ added in v0.9.0
Types ¶
type Gh ¶
type Gh struct {
// contains filtered or unexported fields
}
func (*Gh) DetectCurrentJobID ¶
func (*Gh) DetectCurrentPullRequestNumber ¶ added in v0.11.0
func (*Gh) GetDefaultBranch ¶ added in v0.14.0
func (*Gh) GetRawRootURL ¶
func (*Gh) GetStepExecutionTimeByTime ¶
func (*Gh) GetStepsByName ¶ added in v0.10.0
func (*Gh) PushContent ¶
type GitHubEvent ¶ added in v0.13.0
func DecodeGitHubEvent ¶ added in v0.13.0
func DecodeGitHubEvent() (*GitHubEvent, error)
Click to show internal directories.
Click to hide internal directories.