client

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	Login string `json:"login"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() (*Client, error)

func (*Client) FetchIssueComments

func (c *Client) FetchIssueComments(owner, repo string, number int) ([]comment.IssueComment, error)

func (*Client) FetchReviewThreads

func (c *Client) FetchReviewThreads(owner, repo string, number int) ([]comment.ReviewThread, error)

type CommentsConnection

type CommentsConnection struct {
	Nodes []GQLComment `json:"nodes"`
}

type Commit

type Commit struct {
	AbbreviatedOID string `json:"abbreviatedOid"`
}

type GQLComment

type GQLComment struct {
	ID         string    `json:"id"`
	DatabaseID int       `json:"databaseId"`
	Body       string    `json:"body"`
	Author     Actor     `json:"author"`
	CreatedAt  time.Time `json:"createdAt"`
	UpdatedAt  time.Time `json:"updatedAt"`
	URL        string    `json:"url"`
	DiffHunk   string    `json:"diffHunk"`
	Commit     Commit    `json:"commit"`
	State      string    `json:"state"`
	Outdated   bool      `json:"outdated"`
}

type GQLIssueComment

type GQLIssueComment struct {
	ID              string    `json:"id"`
	DatabaseID      int       `json:"databaseId"`
	Body            string    `json:"body"`
	Author          Actor     `json:"author"`
	CreatedAt       time.Time `json:"createdAt"`
	UpdatedAt       time.Time `json:"updatedAt"`
	URL             string    `json:"url"`
	IsMinimized     bool      `json:"isMinimized"`
	MinimizedReason string    `json:"minimizedReason"`
}

type IssueCommentsConnection

type IssueCommentsConnection struct {
	PageInfo PageInfo          `json:"pageInfo"`
	Nodes    []GQLIssueComment `json:"nodes"`
}

type IssueCommentsResponse

type IssueCommentsResponse struct {
	Repository RepositoryIssueComments `json:"repository"`
}

type PageInfo

type PageInfo struct {
	HasNextPage bool   `json:"hasNextPage"`
	EndCursor   string `json:"endCursor"`
}

type PullRequestIssueComments

type PullRequestIssueComments struct {
	Comments IssueCommentsConnection `json:"comments"`
}

type PullRequestReviewThreads

type PullRequestReviewThreads struct {
	ReviewThreads ReviewThreadsConnection `json:"reviewThreads"`
}

type RepositoryIssueComments

type RepositoryIssueComments struct {
	PullRequest PullRequestIssueComments `json:"pullRequest"`
}

type RepositoryReviewThreads

type RepositoryReviewThreads struct {
	PullRequest PullRequestReviewThreads `json:"pullRequest"`
}

type ReviewThreadNode

type ReviewThreadNode struct {
	IsResolved bool               `json:"isResolved"`
	IsOutdated bool               `json:"isOutdated"`
	ResolvedBy *Actor             `json:"resolvedBy"`
	Path       string             `json:"path"`
	Line       int                `json:"line"`
	StartLine  int                `json:"startLine"`
	DiffSide   string             `json:"diffSide"`
	Comments   CommentsConnection `json:"comments"`
}

type ReviewThreadsConnection

type ReviewThreadsConnection struct {
	PageInfo PageInfo           `json:"pageInfo"`
	Nodes    []ReviewThreadNode `json:"nodes"`
}

type ReviewThreadsResponse

type ReviewThreadsResponse struct {
	Repository RepositoryReviewThreads `json:"repository"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL