Documentation ¶
Index ¶
- func GetMinimizedReason(reason string) (githubv4.ReportedContentClassifiers, bool)
- func String(s string) *string
- type Answer
- type Category
- type Client
- func (c *Client) CloseDiscussion(ctx context.Context, id string, reason githubv4.DiscussionCloseReason) error
- func (c *Client) CloseIssue(ctx context.Context, owner, name string, number int) error
- func (c *Client) CreateDiscussionComment(ctx context.Context, id, body string) error
- func (c *Client) CreateIssue(ctx context.Context, owner, repo string, req *github.IssueRequest) (int, string, error)
- func (c *Client) CreateIssueComment(ctx context.Context, owner, name string, number int, req *github.IssueComment) (string, error)
- func (c *Client) GetDiscussion(ctx context.Context, owner, name string, number int) (*Discussion, error)
- func (c *Client) LockDiscussion(ctx context.Context, id string) error
- func (c *Client) LockIssue(ctx context.Context, owner, name string, number int, lockReason string) error
- func (c *Client) MinimizeComment(ctx context.Context, nodeID string, ...) error
- func (c *Client) SearchComments(ctx context.Context, owner, name string, number int, cursor string) ([]*Comment, error)
- func (c *Client) SearchDiscussionReactions(ctx context.Context, owner, name string, number int, cursor string) ([]*Reaction, error)
- func (c *Client) SearchDiscussions(ctx context.Context, query string) ([]string, error)
- type Comment
- type Comments
- type Discussion
- type IssueComment
- type IssueRequest
- type Label
- type Labels
- type Option
- type Options
- type PageInfo
- type Poll
- type Query
- type Reaction
- type Reactions
- type Replies
- type Reply
- type Repository
- type SearchCommentQuery
- type SearchDiscussionReactionsQuery
- type SearchQuery
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMinimizedReason ¶ added in v0.2.0
func GetMinimizedReason(reason string) (githubv4.ReportedContentClassifiers, bool)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CloseDiscussion ¶ added in v0.2.0
func (*Client) CloseIssue ¶
func (*Client) CreateDiscussionComment ¶ added in v0.2.0
func (*Client) CreateIssue ¶
func (*Client) CreateIssueComment ¶
func (*Client) GetDiscussion ¶
func (*Client) LockDiscussion ¶ added in v0.2.0
func (*Client) MinimizeComment ¶
func (*Client) SearchComments ¶ added in v0.2.0
func (*Client) SearchDiscussionReactions ¶ added in v0.2.0
type Discussion ¶
type Discussion struct { ID string Title string Body string URL string Locked bool Closed bool ClosedAt string Labels *Labels `graphql:"labels(first:100)"` Author *User UpvoteCount int Reactions *Reactions `graphql:"reactions(first:100)"` CreatedAt string UpdatedAt string AnswerChosenAt string Answer *Answer Category *Category Comments *Comments `graphql:"comments(first:10)"` Poll *Poll }
type IssueComment ¶
type IssueComment = github.IssueComment
type IssueRequest ¶
type IssueRequest = github.IssueRequest
type Query ¶
type Query struct {
Repository *Repository `graphql:"repository(owner: $repoOwner, name: $repoName)"`
}
type Repository ¶
type Repository struct {
Discussion *Discussion `graphql:"discussion(number: $number)"`
}
type SearchCommentQuery ¶ added in v0.2.0
type SearchCommentQuery struct { Repository struct { Discussion struct { Comments *Comments `graphql:"comments(first:10, after: $cursor)"` } } `graphql:"repository(owner: $repoOwner, name: $repoName)"` }
type SearchDiscussionReactionsQuery ¶ added in v0.2.0
type SearchDiscussionReactionsQuery struct { Repository struct { Discussion struct { Reactions *Reactions `graphql:"reactions(first:100, after: $cursor)"` } } `graphql:"repository(owner: $repoOwner, name: $repoName)"` }
type SearchQuery ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.