Documentation ¶
Index ¶
- type AWSData
- type BuildInput
- type Data
- func (data *Data) CommitMessage() string
- func (data *Data) Convert() map[string]interface{}
- func (data *Data) GetCommit() *github.Commit
- func (data *Data) GetPR() *github.PullRequest
- func (data *Data) GetPRFileNames() []string
- func (data *Data) GetPRFiles() []*github.CommitFile
- func (data *Data) GetPRLabelNames() []string
- func (data *Data) GetPRNumber() int
- type Event
- type GitHub
- type Headers
- type PullRequest
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildInput ¶
type BuildInput struct { Builds []*codebuild.StartBuildInput BatchBuild *codebuild.StartBuildBatchInput Batched bool Empty bool }
type Data ¶
type Data struct { Event Event PullRequest PullRequest Repository Repository HeadCommitMessage mutex.String SHA string Ref string GitHub GitHub Commit mutex.Commit AWS AWSData }
Data contains data which is referred in expression engine and template engine. To reduce unneeded HTTP API call, in Data's many functions API isn't called until the API call is really needed, and the result is cached in the request scope.
func (*Data) CommitMessage ¶
func (*Data) GetPR ¶
func (data *Data) GetPR() *github.PullRequest
func (*Data) GetPRFileNames ¶
func (*Data) GetPRFiles ¶
func (data *Data) GetPRFiles() []*github.CommitFile
func (*Data) GetPRLabelNames ¶
func (*Data) GetPRNumber ¶
type GitHub ¶
type GitHub interface { GetCommit(ctx context.Context, owner, repo, sha string) (*github.Commit, error) GetPR(ctx context.Context, owner, repo string, number int) (*github.PullRequest, error) GetPRFiles(ctx context.Context, owner, repo string, number int, opt *github.ListOptions) ([]*github.CommitFile, error) GetPRsWithCommit(ctx context.Context, owner, repo string, sha string) ([]*github.PullRequest, error) GetContents(ctx context.Context, owner, repo, path, ref string) (*github.RepositoryContent, []*github.RepositoryContent, error) CreateCommitComment(ctx context.Context, owner, repo, sha, body string) error CreatePRComment(ctx context.Context, owner, repo string, number int, body string) error }
type PullRequest ¶
type PullRequest struct { ChangedFileNames mutex.StringList LabelNames mutex.StringList PullRequest mutex.PR Files mutex.CommitFiles Number mutex.Int }
func NewPullRequest ¶
func NewPullRequest() PullRequest
type Repository ¶
Click to show internal directories.
Click to hide internal directories.