Documentation
¶
Index ¶
- Constants
- func IsGlobalAutoMergeEnabled() bool
- type Commit
- type CommitStatus
- type CommitStatusOptions
- type DetailedMR
- type GitClient
- type GitRepo
- type MR
- type MRApproved
- type MRAttributes
- type MRAuthor
- type MRBranches
- type MRCommentEvent
- type MRDiscussion
- type MRDiscussionNotes
- type MRNote
- type Project
- type ProjectPipeline
Constants ¶
View Source
const TF_BUDDY_AUTO_MERGE = "TFBUDDY_ALLOW_AUTO_MERGE"
Variables ¶
This section is empty.
Functions ¶
func IsGlobalAutoMergeEnabled ¶ added in v0.3.0
func IsGlobalAutoMergeEnabled() bool
Types ¶
type CommitStatus ¶
type CommitStatus interface {
Info() string
}
type CommitStatusOptions ¶
type DetailedMR ¶
type GitClient ¶
type GitClient interface {
GetMergeRequestApprovals(ctx context.Context, id int, project string) (MRApproved, error)
CreateMergeRequestComment(ctx context.Context, id int, fullPath string, comment string) error
CreateMergeRequestDiscussion(ctx context.Context, mrID int, fullPath string, comment string) (MRDiscussionNotes, error)
GetMergeRequest(context.Context, int, string) (DetailedMR, error)
GetRepoFile(context.Context, string, string, string) ([]byte, error)
GetMergeRequestModifiedFiles(ctx context.Context, mrIID int, projectID string) ([]string, error)
CloneMergeRequest(context.Context, string, MR, string) (GitRepo, error)
UpdateMergeRequestDiscussionNote(ctx context.Context, mrIID, noteID int, project, discussionID, comment string) (MRNote, error)
ResolveMergeRequestDiscussion(context.Context, string, int, string) error
AddMergeRequestDiscussionReply(ctx context.Context, mrIID int, project, discussionID, comment string) (MRNote, error)
SetCommitStatus(ctx context.Context, projectWithNS string, commitSHA string, status CommitStatusOptions) (CommitStatus, error)
GetPipelinesForCommit(ctx context.Context, projectWithNS string, commitSHA string) ([]ProjectPipeline, error)
GetOldRunUrls(ctx context.Context, mrIID int, project string, rootCommentID int) (string, error)
MergeMR(ctx context.Context, mrIID int, project string) error
}
type MR ¶
type MR interface {
MRBranches
GetAuthor() MRAuthor
GetInternalID() int
}
type MRApproved ¶
type MRApproved interface {
IsApproved() bool
}
type MRAttributes ¶
type MRAttributes interface {
GetNote() string
GetType() string
MRDiscussion
}
type MRBranches ¶
type MRCommentEvent ¶
type MRCommentEvent interface {
GetProject() Project
GetMR() MR
GetAttributes() MRAttributes
GetLastCommit() Commit
}
type MRDiscussion ¶
type MRDiscussion interface {
GetDiscussionID() string
}
type MRDiscussionNotes ¶
type MRDiscussionNotes interface {
GetMRNotes() []MRNote
MRDiscussion
}
type ProjectPipeline ¶
Click to show internal directories.
Click to hide internal directories.