Documentation
¶
Index ¶
- Constants
- type GitHubConfiguration
- func (c *GitHubConfiguration) CleanExistingCommentsOnAllPullRequestCommits(commentHeading string) error
- func (c *GitHubConfiguration) CleanExistingCommentsOnCommit(commentHeading string) error
- func (c *GitHubConfiguration) CleanExistingCommentsOnPullRequest(commentHeading string) error
- func (c *GitHubConfiguration) CreateDeployment(environment string, envIsProd bool, autoMerge bool, description string, ...) (*github.Deployment, error)
- func (c *GitHubConfiguration) CreateDeploymentAndStatus(environment string, envIsProd bool, autoMerge bool, description string, ...) (*github.Deployment, *github.DeploymentStatus, error)
- func (c *GitHubConfiguration) CreateDeploymentStatus(deploymentId int64, environment string, state string, autoInactive bool, ...) (*github.DeploymentStatus, error)
- func (c *GitHubConfiguration) GetCommitCheckStatus(state string, context string, targetUrl string, description string) ([]*github.RepoStatus, error)
- func (c *GitHubConfiguration) NewClient() (*github.Client, error)
- func (c *GitHubConfiguration) WriteCommitCheckStatus(state string, context string, targetUrl string, description string) (*github.RepoStatus, error)
- func (c *GitHubConfiguration) WriteCommitCheckStatusIfFailedDoesNotExist(state string, context string, targetUrl string, description string) (*github.RepoStatus, error)
- func (c *GitHubConfiguration) WriteCommitComment(body string, commentHeading string, removeDuplicateCommitComment bool) (*github.RepositoryComment, error)
- func (c *GitHubConfiguration) WritePullRequestComment(body string) (*github.IssueComment, error)
- type Hook
Constants ¶
View Source
const ( DefaultBaseURL = "https://api.github.com/" DefaultUploadBaseURL = "https://uploads.github.com/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubConfiguration ¶
type GitHubConfiguration struct {
Org string
Repo string
CommitSha string
EnterpriseUrl string
PrNumber int
IsEnterprise bool
// contains filtered or unexported fields
}
func (*GitHubConfiguration) CleanExistingCommentsOnAllPullRequestCommits ¶
func (c *GitHubConfiguration) CleanExistingCommentsOnAllPullRequestCommits(commentHeading string) error
func (*GitHubConfiguration) CleanExistingCommentsOnCommit ¶
func (c *GitHubConfiguration) CleanExistingCommentsOnCommit(commentHeading string) error
func (*GitHubConfiguration) CleanExistingCommentsOnPullRequest ¶
func (c *GitHubConfiguration) CleanExistingCommentsOnPullRequest(commentHeading string) error
func (*GitHubConfiguration) CreateDeployment ¶
func (c *GitHubConfiguration) CreateDeployment(environment string, envIsProd bool, autoMerge bool, description string, requiredContexts []string) (*github.Deployment, error)
func (*GitHubConfiguration) CreateDeploymentAndStatus ¶
func (c *GitHubConfiguration) CreateDeploymentAndStatus(environment string, envIsProd bool, autoMerge bool, description string, requiredContexts []string, state string, autoInactive bool, logsUrl *string, environmentUrl *string) (*github.Deployment, *github.DeploymentStatus, error)
func (*GitHubConfiguration) CreateDeploymentStatus ¶
func (*GitHubConfiguration) GetCommitCheckStatus ¶
func (c *GitHubConfiguration) GetCommitCheckStatus(state string, context string, targetUrl string, description string) ([]*github.RepoStatus, error)
func (*GitHubConfiguration) NewClient ¶
func (c *GitHubConfiguration) NewClient() (*github.Client, error)
func (*GitHubConfiguration) WriteCommitCheckStatus ¶
func (c *GitHubConfiguration) WriteCommitCheckStatus(state string, context string, targetUrl string, description string) (*github.RepoStatus, error)
func (*GitHubConfiguration) WriteCommitCheckStatusIfFailedDoesNotExist ¶
func (c *GitHubConfiguration) WriteCommitCheckStatusIfFailedDoesNotExist(state string, context string, targetUrl string, description string) (*github.RepoStatus, error)
func (*GitHubConfiguration) WriteCommitComment ¶
func (c *GitHubConfiguration) WriteCommitComment(body string, commentHeading string, removeDuplicateCommitComment bool) (*github.RepositoryComment, error)
func (*GitHubConfiguration) WritePullRequestComment ¶
func (c *GitHubConfiguration) WritePullRequestComment(body string) (*github.IssueComment, error)
Click to show internal directories.
Click to hide internal directories.