Documentation ¶
Index ¶
- Constants
- func PushUsingLocalGit(ctx context.Context, gitRoot string, addPaths []string, message string) error
- type ArtifactFile
- type Gh
- func (g *Gh) Client() *github.Client
- func (g *Gh) DetectCurrentBranch(ctx context.Context) (string, error)
- 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) GetChangedFiles(ctx context.Context, owner, repo string) ([]*PullRequestFile, error)
- func (g *Gh) GetDefaultBranch(ctx context.Context, owner, repo string) (string, error)
- func (g *Gh) GetLatestArtifact(ctx context.Context, owner, repo, name, fp string) (*ArtifactFile, error)
- func (g *Gh) GetPullRequest(ctx context.Context, owner, repo string, number int) (*PullRequest, error)
- func (g *Gh) GetPullRequestFiles(ctx context.Context, owner, repo string, number int) ([]*PullRequestFile, error)
- func (g *Gh) GetRawRootURL(ctx context.Context, owner, repo string) (string, error)
- func (g *Gh) GetStepByTime(ctx context.Context, owner, repo string, jobID int64, t time.Time) (Step, 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) PutArtifact(ctx context.Context, name, fp string, content []byte) error
- func (g *Gh) PutComment(ctx context.Context, owner, repo string, n int, comment, key string) error
- func (g *Gh) PutCommentWithDeletion(ctx context.Context, owner, repo string, n int, comment, key string) error
- func (g *Gh) ReplaceInsertToBody(ctx context.Context, owner, repo string, number int, content, key string) error
- func (g *Gh) SetClient(client *github.Client)
- type GitHubEvent
- type PullRequest
- type PullRequestFile
- type Repository
- type Step
Constants ¶
View Source
const DefaultGithubServerURL = "https://github.com"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArtifactFile ¶ added in v0.35.0
type Gh ¶
type Gh struct {
// contains filtered or unexported fields
}
func (*Gh) DetectCurrentBranch ¶ added in v0.29.0
func (*Gh) DetectCurrentJobID ¶
func (*Gh) DetectCurrentPullRequestNumber ¶ added in v0.11.0
func (*Gh) GetChangedFiles ¶ added in v0.43.1
func (*Gh) GetDefaultBranch ¶ added in v0.14.0
func (*Gh) GetLatestArtifact ¶ added in v0.35.0
func (*Gh) GetPullRequest ¶ added in v0.42.0
func (*Gh) GetPullRequestFiles ¶ added in v0.19.0
func (*Gh) GetRawRootURL ¶
func (*Gh) GetStepByTime ¶ added in v0.31.0
func (*Gh) GetStepExecutionTimeByTime ¶
func (*Gh) GetStepsByName ¶ added in v0.10.0
func (*Gh) PushContent ¶
func (*Gh) PutArtifact ¶ added in v0.35.0
func (*Gh) PutComment ¶ added in v0.11.0
func (*Gh) PutCommentWithDeletion ¶ added in v0.34.0
func (*Gh) ReplaceInsertToBody ¶ added in v0.43.0
type GitHubEvent ¶ added in v0.13.0
func DecodeGitHubEvent ¶ added in v0.13.0
func DecodeGitHubEvent() (*GitHubEvent, error)
type PullRequest ¶ added in v0.42.0
type PullRequestFile ¶ added in v0.19.0
type Repository ¶ added in v0.28.0
func Parse ¶ added in v0.28.0
func Parse(raw string) (*Repository, error)
func (*Repository) Reponame ¶ added in v0.28.0
func (r *Repository) Reponame() string
Click to show internal directories.
Click to hide internal directories.