Versions in this module Expand all Collapse all v0 v0.5.0 Sep 11, 2024 v0.4.2 Jun 21, 2024 v0.4.1 Jun 21, 2024 v0.4.0 Jun 21, 2024 Changes in this version type Client + func NewClient(token string) *Client + func (c *Client) DeleteIssue(issue *Issue) error + func (c *Client) Discussions(org, repo string) ([]*Discussion, error) + func (c *Client) Issue(org, repo string, n int) (*Issue, error) + func (c *Client) UserComments(user string) ([]*IssueComment, error) + type Discussion struct + Body string + Locked bool + Number int + Owner string + Repo string + Title string type Issue + Author string + URL string type IssueComment + Issue int + Owner string + Repo string v0.3.0 Sep 21, 2022 Changes in this version + type Client struct + func Dial(user string) (*Client, error) + func (c *Client) AddIssueComment(issue *Issue, text string) error + func (c *Client) AddIssueLabels(issue *Issue, labels ...*Label) error + func (c *Client) CloseIssue(issue *Issue) error + func (c *Client) CreateIssue(repo *Repo, title, body string, extra ...any) (*Issue, error) + func (c *Client) DeleteProjectItem(project *Project, item *ProjectItem) error + func (c *Client) EditIssueComment(comment *IssueComment, body string) error + func (c *Client) GraphQLMutation(query string, vars Vars) (*schema.Mutation, error) + func (c *Client) GraphQLQuery(query string, vars Vars) (*schema.Query, error) + func (c *Client) IssueComments(issue *Issue) ([]*IssueComment, error) + func (c *Client) ProjectItems(p *Project) ([]*ProjectItem, error) + func (c *Client) Projects(org, query string) ([]*Project, error) + func (c *Client) RemilestoneIssue(issue *Issue, milestone *Milestone) error + func (c *Client) RemoveIssueLabels(issue *Issue, labels ...*Label) error + func (c *Client) ReopenIssue(issue *Issue) error + func (c *Client) Repo(org, repo string) (*Repo, error) + func (c *Client) RetitleIssue(issue *Issue, title string) error + func (c *Client) SearchLabels(org, repo, query string) ([]*Label, error) + func (c *Client) SearchMilestones(org, repo, query string) ([]*Milestone, error) + func (c *Client) SetProjectItemFieldOption(project *Project, item *ProjectItem, field *ProjectField, ...) error + type Issue struct + Body string + Closed bool + ClosedAt time.Time + CreatedAt time.Time + ID string + Labels []*Label + LastEditedAt time.Time + Milestone *Milestone + Number int + Owner string + Repo string + Title string + func (i *Issue) LabelByName(name string) *Label + type IssueComment struct + Author string + Body string + CreatedAt time.Time + ID string + PublishedAt time.Time + UpdatedAt time.Time + type Label struct + Description string + ID string + Name string + Owner string + Repo string + type Milestone struct + ID string + Title string + type Project struct + Closed bool + ClosedAt time.Time + CreatedAt time.Time + Fields []*ProjectField + ID string + Number int + Org string + Title string + URL string + UpdatedAt time.Time + func (p *Project) FieldByName(name string) *ProjectField + type ProjectField struct + CreatedAt time.Time + DataType schema.ProjectV2FieldType + DatabaseID int + ID schema.ID + Iterations *ProjectIterations + Kind string + Name string + Options []*ProjectFieldOption + UpdatedAt time.Time + func (f *ProjectField) OptionByName(name string) *ProjectFieldOption + type ProjectFieldOption struct + ID string + Name string + NameHTML string + func (o *ProjectFieldOption) String() string + type ProjectFieldValue struct + CreatedAt time.Time + DatabaseID int + Date time.Time + Field string + ID string + Kind string + Option *ProjectFieldOption + Text string + UpdatedAt time.Time + func (v *ProjectFieldValue) String() string + type ProjectItem struct + CreatedAt time.Time + DatabaseID int + Fields []*ProjectFieldValue + ID schema.ID + IsArchived bool + Issue *Issue + Type schema.ProjectV2ItemType + UpdatedAt time.Time + func (it *ProjectItem) FieldByName(name string) *ProjectFieldValue + type ProjectIteration struct + Days int + ID string + Start time.Time + Title string + TitleHTML string + type ProjectIterations struct + Active []*ProjectIteration + Completed []*ProjectIteration + Days int + StartDay time.Weekday + type Repo struct + ID string + Owner string + Repo string + type Vars map[string]any v0.2.2 Jun 20, 2019 v0.2.1 Jun 20, 2019 v0.2.0 Jun 19, 2019 v0.1.0 Jun 19, 2019