Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitStatus ¶
type CommitStatus interface {
Info() string
}
type CommitStatusOptions ¶
type DetailedMR ¶
type GitClient ¶
type GitClient interface {
GetMergeRequestApprovals(id int, project string) (MRApproved, error)
CreateMergeRequestComment(id int, fullPath string, comment string) error
CreateMergeRequestDiscussion(mrID int, fullPath string, comment string) (MRDiscussionNotes, error)
GetMergeRequest(int, string) (DetailedMR, error)
GetRepoFile(string, string, string) ([]byte, error)
GetMergeRequestModifiedFiles(mrIID int, projectID string) ([]string, error)
CloneMergeRequest(string, MR, string) (GitRepo, error)
UpdateMergeRequestDiscussionNote(mrIID, noteID int, project, discussionID, comment string) (MRNote, error)
ResolveMergeRequestDiscussion(string, int, string) error
AddMergeRequestDiscussionReply(mrIID int, project, discussionID, comment string) (MRNote, error)
SetCommitStatus(projectWithNS string, commitSHA string, status CommitStatusOptions) (CommitStatus, error)
GetPipelinesForCommit(projectWithNS string, commitSHA string) ([]ProjectPipeline, error)
GetOldRunUrls(mrIID int, project string, rootCommentID int) (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.