Documentation
¶
Index ¶
- func CheckIfHelpComment(event interface{}) bool
- func CheckIfShowProjectsComment(event interface{}) bool
- func ConvertGithubIssueCommentEventToJobs(payload *webhooks.IssueCommentPayload, ...) ([]orchestrator.Job, bool, error)
- func ConvertGithubPullRequestEventToJobs(payload *webhooks.PullRequestPayload, impactedProjects []configuration.Project, ...) ([]orchestrator.Job, bool, error)
- func ProcessGitHubEvent(ghEvent interface{}, diggerConfig *configuration.DiggerConfig, ...) ([]configuration.Project, *configuration.Project, int, error)
- func ProcessGitHubIssueCommentEvent(payload *webhooks.IssueCommentPayload, ...) ([]configuration.Project, *configuration.Project, int, error)
- func ProcessGitHubPullRequestEvent(payload *webhooks.PullRequestPayload, diggerConfig *configuration.DiggerConfig, ...) ([]configuration.Project, *configuration.Project, int, error)
- type GithubService
- func (svc *GithubService) EditComment(id interface{}, comment string) error
- func (svc *GithubService) GetBranchName(prNumber int) (string, error)
- func (svc *GithubService) GetChangedFiles(prNumber int) ([]string, error)
- func (svc *GithubService) GetCombinedPullRequestStatus(prNumber int) (string, error)
- func (svc *GithubService) GetComments(prNumber int) ([]orchestrator.Comment, error)
- func (svc *GithubService) GetUserTeams(organisation string, user string) ([]string, error)
- func (svc *GithubService) IsClosed(prNumber int) (bool, error)
- func (svc *GithubService) IsMergeable(prNumber int) (bool, error)
- func (svc *GithubService) IsMerged(prNumber int) (bool, error)
- func (svc *GithubService) MergePullRequest(prNumber int) error
- func (svc *GithubService) PublishComment(prNumber int, comment string) error
- func (svc *GithubService) SetStatus(prNumber int, status string, statusContext string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfHelpComment ¶
func CheckIfHelpComment(event interface{}) bool
func CheckIfShowProjectsComment ¶
func CheckIfShowProjectsComment(event interface{}) bool
func ConvertGithubIssueCommentEventToJobs ¶ added in v0.0.4
func ConvertGithubIssueCommentEventToJobs(payload *webhooks.IssueCommentPayload, impactedProjects []configuration.Project, requestedProject *configuration.Project, workflows map[string]configuration.Workflow) ([]orchestrator.Job, bool, error)
func ConvertGithubPullRequestEventToJobs ¶ added in v0.0.4
func ConvertGithubPullRequestEventToJobs(payload *webhooks.PullRequestPayload, impactedProjects []configuration.Project, requestedProject *configuration.Project, workflows map[string]configuration.Workflow) ([]orchestrator.Job, bool, error)
func ProcessGitHubEvent ¶
func ProcessGitHubEvent(ghEvent interface{}, diggerConfig *configuration.DiggerConfig, ciService orchestrator.PullRequestService) ([]configuration.Project, *configuration.Project, int, error)
func ProcessGitHubIssueCommentEvent ¶ added in v0.0.2
func ProcessGitHubIssueCommentEvent(payload *webhooks.IssueCommentPayload, diggerConfig *configuration.DiggerConfig, ciService orchestrator.PullRequestService) ([]configuration.Project, *configuration.Project, int, error)
func ProcessGitHubPullRequestEvent ¶ added in v0.0.2
func ProcessGitHubPullRequestEvent(payload *webhooks.PullRequestPayload, diggerConfig *configuration.DiggerConfig, ciService orchestrator.PullRequestService) ([]configuration.Project, *configuration.Project, int, error)
Types ¶
type GithubService ¶
func NewGitHubService ¶
func NewGitHubService(ghToken string, repoName string, owner string) GithubService
func (*GithubService) EditComment ¶
func (svc *GithubService) EditComment(id interface{}, comment string) error
func (*GithubService) GetBranchName ¶
func (svc *GithubService) GetBranchName(prNumber int) (string, error)
func (*GithubService) GetChangedFiles ¶
func (svc *GithubService) GetChangedFiles(prNumber int) ([]string, error)
func (*GithubService) GetCombinedPullRequestStatus ¶
func (svc *GithubService) GetCombinedPullRequestStatus(prNumber int) (string, error)
func (*GithubService) GetComments ¶
func (svc *GithubService) GetComments(prNumber int) ([]orchestrator.Comment, error)
func (*GithubService) GetUserTeams ¶
func (svc *GithubService) GetUserTeams(organisation string, user string) ([]string, error)
func (*GithubService) IsMergeable ¶
func (svc *GithubService) IsMergeable(prNumber int) (bool, error)
func (*GithubService) MergePullRequest ¶
func (svc *GithubService) MergePullRequest(prNumber int) error
func (*GithubService) PublishComment ¶
func (svc *GithubService) PublishComment(prNumber int, comment string) error
Click to show internal directories.
Click to hide internal directories.