Documentation ¶
Index ¶
- Constants
- func PushUsingLocalGit(ctx context.Context, gitRoot string, addPaths []string, message string) (int, 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) FetchChangedFiles(ctx context.Context, owner, repo string) ([]*PullRequestFile, error)
- func (g *Gh) FetchDefaultBranch(ctx context.Context, owner, repo string) (string, error)
- func (g *Gh) FetchLatestArtifact(ctx context.Context, owner, repo, name, fp string) (*ArtifactFile, error)
- func (g *Gh) FetchPullRequest(ctx context.Context, owner, repo string, number int) (*PullRequest, error)
- func (g *Gh) FetchPullRequestFiles(ctx context.Context, owner, repo string, number int) ([]*PullRequestFile, error)
- func (g *Gh) FetchRawRootURL(ctx context.Context, owner, repo string) (string, error)
- func (g *Gh) FetchStepByTime(ctx context.Context, owner, repo string, jobID int64, t time.Time) (Step, error)
- func (g *Gh) FetchStepExecutionTimeByTime(ctx context.Context, owner, repo string, jobID int64, t time.Time) (time.Duration, error)
- func (g *Gh) FetchStepsByName(ctx context.Context, owner, repo string, name string) ([]Step, error)
- func (g *Gh) IsPrivate(ctx context.Context, owner, repo string) (bool, 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) FetchChangedFiles ¶ added in v0.53.0
func (*Gh) FetchDefaultBranch ¶ added in v0.53.0
func (*Gh) FetchLatestArtifact ¶ added in v0.53.0
func (*Gh) FetchPullRequest ¶ added in v0.53.0
func (*Gh) FetchPullRequestFiles ¶ added in v0.53.0
func (*Gh) FetchRawRootURL ¶ added in v0.53.0
func (*Gh) FetchStepByTime ¶ added in v0.53.0
func (*Gh) FetchStepExecutionTimeByTime ¶ added in v0.53.0
func (*Gh) FetchStepsByName ¶ added in v0.53.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.