Documentation
¶
Overview ¶
Package github implements baton's source and issue APIs on GitHub. It uses release-sdk where it has the call (and its retries), and go-github directly for contents, labels, and sub-issues.
Index ¶
- func Token() (string, error)
- type Client
- func (c *Client) AddSubIssue(repo string, number int, childID int64) error
- func (c *Client) Comment(repo string, number int, body string) error
- func (c *Client) CommitAt(repo string, asOf time.Time) (string, error)
- func (c *Client) CreateIssue(repo, title, body string, labels, assignees []string) (writer.Issue, error)
- func (c *Client) CreateLabel(repo, label, color, description string) error
- func (c *Client) File(repo, path, ref string) (content string, found bool, err error)
- func (c *Client) FlaggedLatest(repo string) (source.Release, error)
- func (c *Client) GetJSON(url string) (map[string]any, error)
- func (c *Client) LabelExists(repo, label string) (bool, error)
- func (c *Client) ListIssues(repo, label string) ([]writer.Issue, error)
- func (c *Client) PathHistory(repo, path string, until time.Time) ([]source.Commit, error)
- func (c *Client) Releases(repo, kind string) ([]source.Release, error)
- func (c *Client) SubIssueIDs(repo string, number int) ([]int64, error)
- func (c *Client) TagCommit(repo, tag string) (string, error)
- func (c *Client) UpdateIssue(repo string, number int, u writer.Update) (writer.Issue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client reads components and writes issues.
func (*Client) AddSubIssue ¶
AddSubIssue implements writer.Issues.
func (*Client) CreateIssue ¶
func (c *Client) CreateIssue(repo, title, body string, labels, assignees []string) (writer.Issue, error)
CreateIssue implements writer.Issues.
func (*Client) CreateLabel ¶
CreateLabel implements writer.Issues.
func (*Client) FlaggedLatest ¶
FlaggedLatest implements source.Source.
func (*Client) LabelExists ¶
LabelExists implements writer.Issues.
func (*Client) ListIssues ¶
ListIssues implements writer.Issues.
func (*Client) PathHistory ¶
PathHistory implements source.Source.
func (*Client) SubIssueIDs ¶
SubIssueIDs implements writer.Issues.
Click to show internal directories.
Click to hide internal directories.