Documentation ¶
Index ¶
- func CurrentLoginName() (string, error)
- func IsConclusionAFailure(conclusion string) bool
- func IsStatusWaiting(status string) bool
- type Assignee
- type Assignees
- type CheckRun
- type Comment
- type Comments
- type Commits
- type IssueComment
- type IssueComments
- type IssueData
- type IssueLabels
- type IssueReactions
- type IssuesResponse
- type Label
- type PRLabel
- type PRLabels
- type PageInfo
- type PullRequestData
- type PullRequestsResponse
- type Repository
- type Review
- type ReviewComment
- type ReviewComments
- type ReviewThreads
- type Reviews
- type RowData
- type StatusContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentLoginName ¶
func IsConclusionAFailure ¶
func IsStatusWaiting ¶
Types ¶
type Commits ¶
type Commits struct { Nodes []struct { Commit struct { Deployments struct { Nodes []struct { Task graphql.String Description graphql.String } } `graphql:"deployments(last: 10)"` StatusCheckRollup struct { Contexts struct { TotalCount graphql.Int Nodes []struct { Typename graphql.String `graphql:"__typename"` CheckRun CheckRun `graphql:"... on CheckRun"` StatusContext StatusContext `graphql:"... on StatusContext"` } } `graphql:"contexts(last: 20)"` } } } }
type IssueComment ¶
type IssueComments ¶
type IssueComments struct { Nodes []IssueComment TotalCount int }
type IssueData ¶
type IssueData struct { Number int Title string Body string State string Author struct { Login string } UpdatedAt time.Time Url string Repository Repository Assignees Assignees `graphql:"assignees(first: 3)"` Comments IssueComments `graphql:"comments(first: 15)"` Reactions IssueReactions `graphql:"reactions(first: 1)"` Labels IssueLabels `graphql:"labels(first: 3)"` }
func (IssueData) GetRepoNameWithOwner ¶
func (IssueData) GetUpdatedAt ¶
type IssueLabels ¶
type IssueLabels struct {
Nodes []Label
}
type IssueReactions ¶
type IssueReactions struct {
TotalCount int
}
type IssuesResponse ¶
func FetchIssues ¶
func FetchIssues(query string, limit int, pageInfo *PageInfo) (IssuesResponse, error)
type PullRequestData ¶
type PullRequestData struct { Number int Title string Body string Author struct { Login string } UpdatedAt time.Time Url string State string Mergeable string ReviewDecision string Additions int Deletions int HeadRefName string BaseRefName string HeadRepository struct { Name string } HeadRef struct { Name string } Repository Repository Assignees Assignees `graphql:"assignees(first: 3)"` Comments Comments `graphql:"comments(last: 5, orderBy: { field: UPDATED_AT, direction: DESC })"` LatestReviews Reviews `graphql:"latestReviews(last: 3)"` ReviewThreads ReviewThreads `graphql:"reviewThreads(last: 20)"` IsDraft bool Commits Commits `graphql:"commits(last: 1)"` Labels PRLabels `graphql:"labels(first: 3)"` }
func FetchPullRequest ¶
func FetchPullRequest(prUrl string) (PullRequestData, error)
func (PullRequestData) GetNumber ¶
func (data PullRequestData) GetNumber() int
func (PullRequestData) GetRepoNameWithOwner ¶
func (data PullRequestData) GetRepoNameWithOwner() string
func (PullRequestData) GetTitle ¶
func (data PullRequestData) GetTitle() string
func (PullRequestData) GetUpdatedAt ¶
func (data PullRequestData) GetUpdatedAt() time.Time
func (PullRequestData) GetUrl ¶
func (data PullRequestData) GetUrl() string
type PullRequestsResponse ¶
type PullRequestsResponse struct { Prs []PullRequestData TotalCount int PageInfo PageInfo }
func FetchPullRequests ¶
func FetchPullRequests(query string, limit int, pageInfo *PageInfo) (PullRequestsResponse, error)
type Repository ¶
type ReviewComment ¶
type ReviewComments ¶
type ReviewComments struct { Nodes []ReviewComment TotalCount int }
type ReviewThreads ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.