Documentation
¶
Index ¶
- type Client
- func (c *Client) AddLabel(ctx context.Context, label constant.Label) error
- func (c *Client) AddLabelToOtherPR(ctx context.Context, label constant.Label, number int) error
- func (c *Client) CreateComment(ctx context.Context, body string) error
- func (c *Client) DeleteComment(ctx context.Context, commentID int64) error
- func (c *Client) GetOpenPullRequests(ctx context.Context) ([]platform.PullRequest, error)
- func (c *Client) GetPullRequest(ctx context.Context) (*platform.PullRequest, error)
- func (c *Client) ListComments(ctx context.Context) ([]platform.Comment, error)
- func (c *Client) MergePullRequest(ctx context.Context, message string) error
- func (c *Client) RemoveLabel(ctx context.Context, label constant.Label) error
- func (c *Client) SetStatus(ctx context.Context, state constant.State, description string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an implementation of platform.Client
func NewWithHeadBranch ¶
func NewWithHeadBranch( ctx context.Context, owner string, repo string, headBranch string, ) (*Client, error)
NewWithHeadBranch create GitHub client with head branch
func (*Client) AddLabelToOtherPR ¶
AddLabelToOtherPR adds label to other PR
func (*Client) CreateComment ¶
CreateComment creates a comment
func (*Client) DeleteComment ¶
DeleteComment deletes a comment
func (*Client) GetOpenPullRequests ¶
GetOpenPullRequests gets open PRs
func (*Client) GetPullRequest ¶
GetPullRequest gets the PR
func (*Client) ListComments ¶
ListComments gets comments order by posted asc
func (*Client) MergePullRequest ¶
MergePullRequest merges PR
func (*Client) RemoveLabel ¶
RemoveLabel removes label from PR
Click to show internal directories.
Click to hide internal directories.