Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) CommentError(ctx context.Context, owner, repoName string, prNumber int, prOwner string, ...) error
- func (c *Client) CommentOnPR(ctx context.Context, owner, repoName string, prNumber int, body string) error
- func (c *Client) CreatePeacockCommitStatus(ctx context.Context, owner, repoName, ref string, state domain.State, ...) error
- func (c *Client) DeleteUsersComments(ctx context.Context, owner, repoName string, prNumber int) error
- func (c *Client) GetFileFromBranch(ctx context.Context, owner, repoName, branch, path string) ([]byte, error)
- func (c *Client) GetLatestCommitSHAInBranch(ctx context.Context, owner, repoName, branch string) (string, error)
- func (c *Client) GetPRComments(ctx context.Context, owner, repoName string, prNumber int) ([]*github.IssueComment, error)
- func (c *Client) GetPRCommentsByUser(ctx context.Context, owner, repoName string, prNumber int) ([]*github.IssueComment, error)
- func (c *Client) GetPullRequestBodyFromCommit(ctx context.Context, owner, repoName, sha string) (*string, error)
- func (c *Client) GetPullRequestBodyFromPRNumber(ctx context.Context, owner, repoName string, prNumber int) (*string, error)
- func (c *Client) HandleError(ctx context.Context, statusContext, owner, repoName string, prNumber int, ...) error
Constants ¶
View Source
const ( ValidationContext = "peacock-validation" ReleaseContext = "peacock-release" )
Variables ¶
View Source
var ( RepoStatus = map[string]*github.RepoStatus{ ValidationContext: { State: nil, Description: utils.NewPtr("Validates the PR body against the feathers"), Context: utils.NewPtr(ValidationContext), }, ReleaseContext: { State: nil, Description: utils.NewPtr("Sends the messages to the Teams outlined in the PR body"), Context: utils.NewPtr(ReleaseContext), }, } )
RepoStatus Base repository statuses to use for creating a commit status
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CommentError ¶ added in v1.0.0
func (*Client) CommentOnPR ¶
func (*Client) CreatePeacockCommitStatus ¶ added in v1.0.0
func (*Client) DeleteUsersComments ¶ added in v1.0.0
func (*Client) GetFileFromBranch ¶ added in v1.0.0
func (*Client) GetLatestCommitSHAInBranch ¶ added in v1.0.0
func (*Client) GetPRComments ¶ added in v0.13.0
func (*Client) GetPRCommentsByUser ¶ added in v1.0.0
func (*Client) GetPullRequestBodyFromCommit ¶
func (*Client) GetPullRequestBodyFromPRNumber ¶
Click to show internal directories.
Click to hide internal directories.