Documentation
¶
Index ¶
- func CheckIfHelpComment(event interface{}) bool
- func CheckIfShowProjectsComment(event interface{}) bool
- func ConvertGithubIssueCommentEventToJobs(payload *github.IssueCommentEvent, impactedProjects []configuration.Project, ...) ([]orchestrator.Job, bool, error)
- func ConvertGithubPullRequestEventToJobs(payload *github.PullRequestEvent, impactedProjects []configuration.Project, ...) ([]orchestrator.Job, bool, error)
- func FindAllProjectsDependantOnImpactedProjects(impactedProjects []configuration.Project, ...) ([]configuration.Project, error)
- func ProcessGitHubEvent(ghEvent interface{}, diggerConfig *configuration.DiggerConfig, ...) ([]configuration.Project, *configuration.Project, int, error)
- func ProcessGitHubIssueCommentEvent(payload *github.IssueCommentEvent, diggerConfig *configuration.DiggerConfig, ...) ([]configuration.Project, *configuration.Project, int, error)
- func ProcessGitHubPullRequestEvent(payload *github.PullRequestEvent, diggerConfig *configuration.DiggerConfig, ...) ([]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 *github.IssueCommentEvent, 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 *github.PullRequestEvent, impactedProjects []configuration.Project, requestedProject *configuration.Project, workflows map[string]configuration.Workflow) ([]orchestrator.Job, bool, error)
func FindAllProjectsDependantOnImpactedProjects ¶ added in v0.0.7
func FindAllProjectsDependantOnImpactedProjects(impactedProjects []configuration.Project, dependencyGraph graph.Graph[string, configuration.Project]) ([]configuration.Project, 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 *github.IssueCommentEvent, diggerConfig *configuration.DiggerConfig, dependencyGraph graph.Graph[string, configuration.Project], ciService orchestrator.PullRequestService) ([]configuration.Project, *configuration.Project, int, error)
func ProcessGitHubPullRequestEvent ¶ added in v0.0.2
func ProcessGitHubPullRequestEvent(payload *github.PullRequestEvent, diggerConfig *configuration.DiggerConfig, dependencyGraph graph.Graph[string, configuration.Project], ciService orchestrator.PullRequestService) ([]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.