Documentation ¶
Index ¶
- func CheckIfHelpComment(event interface{}) bool
- func CheckIfShowProjectsComment(event interface{}) bool
- func ConvertGithubIssueCommentEventToJobs(payload *github.IssueCommentEvent, impactedProjects []digger_config.Project, ...) ([]orchestrator.Job, bool, error)
- func ConvertGithubPullRequestEventToJobs(payload *github.PullRequestEvent, impactedProjects []digger_config.Project, ...) ([]orchestrator.Job, bool, error)
- func FindAllProjectsDependantOnImpactedProjects(impactedProjects []digger_config.Project, ...) ([]digger_config.Project, error)
- func ProcessGitHubEvent(ghEvent interface{}, diggerConfig *digger_config.DiggerConfig, ...) ([]digger_config.Project, *digger_config.Project, int, error)
- func ProcessGitHubIssueCommentEvent(payload *github.IssueCommentEvent, diggerConfig *digger_config.DiggerConfig, ...) ([]digger_config.Project, *digger_config.Project, int, error)
- func ProcessGitHubPullRequestEvent(payload *github.PullRequestEvent, diggerConfig *digger_config.DiggerConfig, ...) ([]digger_config.Project, int, error)
- type GithubService
- func (svc *GithubService) EditComment(prNumber int, 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 ¶
func ConvertGithubIssueCommentEventToJobs(payload *github.IssueCommentEvent, impactedProjects []digger_config.Project, requestedProject *digger_config.Project, workflows map[string]digger_config.Workflow) ([]orchestrator.Job, bool, error)
func ConvertGithubPullRequestEventToJobs ¶
func ConvertGithubPullRequestEventToJobs(payload *github.PullRequestEvent, impactedProjects []digger_config.Project, requestedProject *digger_config.Project, workflows map[string]digger_config.Workflow) ([]orchestrator.Job, bool, error)
func FindAllProjectsDependantOnImpactedProjects ¶
func FindAllProjectsDependantOnImpactedProjects(impactedProjects []digger_config.Project, dependencyGraph graph.Graph[string, digger_config.Project]) ([]digger_config.Project, error)
func ProcessGitHubEvent ¶
func ProcessGitHubEvent(ghEvent interface{}, diggerConfig *digger_config.DiggerConfig, ciService orchestrator.PullRequestService) ([]digger_config.Project, *digger_config.Project, int, error)
func ProcessGitHubIssueCommentEvent ¶
func ProcessGitHubIssueCommentEvent(payload *github.IssueCommentEvent, diggerConfig *digger_config.DiggerConfig, dependencyGraph graph.Graph[string, digger_config.Project], ciService orchestrator.PullRequestService) ([]digger_config.Project, *digger_config.Project, int, error)
func ProcessGitHubPullRequestEvent ¶
func ProcessGitHubPullRequestEvent(payload *github.PullRequestEvent, diggerConfig *digger_config.DiggerConfig, dependencyGraph graph.Graph[string, digger_config.Project], ciService orchestrator.PullRequestService) ([]digger_config.Project, int, error)
Types ¶
type GithubService ¶
func NewGitHubService ¶
func NewGitHubService(ghToken string, repoName string, owner string) GithubService
func (*GithubService) EditComment ¶
func (svc *GithubService) EditComment(prNumber int, 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.