Documentation
¶
Index ¶
- func ApplyTemplate(template, title, summary string) string
- func GetToken() (string, error)
- func ParseGitRemoteURL(remoteURL string) (owner string, repo string, err error)
- type Client
- func (c *Client) CreateOrUpdatePullRequest(owner, repo, title, body, head, base string, draft bool) (*github.PullRequest, bool, error)
- func (c *Client) CreatePullRequest(owner, repo, title, body, head, base string, draft bool) (*github.PullRequest, error)
- func (c *Client) GetPullRequestForBranch(owner, repo, branch string) (*github.PullRequest, error)
- func (c *Client) GetPullRequestTemplate(owner, repo string) (string, error)
- func (c *Client) UpdatePullRequest(owner, repo string, number int, title, body string) (*github.PullRequest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTemplate ¶
ApplyTemplate fills in a PR template with the provided content
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateOrUpdatePullRequest ¶
func (*Client) CreatePullRequest ¶
func (*Client) GetPullRequestForBranch ¶
func (c *Client) GetPullRequestForBranch(owner, repo, branch string) (*github.PullRequest, error)
func (*Client) GetPullRequestTemplate ¶
func (*Client) UpdatePullRequest ¶
Click to show internal directories.
Click to hide internal directories.