Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateComment(ctx context.Context, cmt *Comment) error
- func (c *Client) GetAuthenticatedUser(ctx context.Context) (string, error)
- func (c *Client) HideComment(ctx context.Context, nodeID string) error
- func (c *Client) ListComments(ctx context.Context, pr *PullRequest) ([]*IssueComment, error)
- func (c *Client) PRNumberWithSHA(ctx context.Context, owner, repo, sha string) (int, error)
- type Comment
- type IssueComment
- type IssuesService
- type Mock
- func (m *Mock) CreateComment(ctx context.Context, cmt *Comment) error
- func (m *Mock) GetAuthenticatedUser(ctx context.Context) (string, error)
- func (m *Mock) HideComment(ctx context.Context, nodeID string) error
- func (m *Mock) ListComments(ctx context.Context, pr *PullRequest) ([]*IssueComment, error)
- func (m *Mock) PRNumberWithSHA(ctx context.Context, owner, repo, sha string) (int, error)
- type ParamNew
- type PullRequest
- type PullRequestsService
- type RepositoriesService
- type UsersService
- type V4Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateComment ¶
func (*Client) GetAuthenticatedUser ¶
func (*Client) ListComments ¶
func (c *Client) ListComments(ctx context.Context, pr *PullRequest) ([]*IssueComment, error)
type IssueComment ¶
type IssuesService ¶
type IssuesService interface {
CreateComment(ctx context.Context, owner string, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)
EditComment(ctx context.Context, owner string, repo string, commentID int64, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)
}
type Mock ¶
func (*Mock) GetAuthenticatedUser ¶
func (*Mock) ListComments ¶
func (m *Mock) ListComments(ctx context.Context, pr *PullRequest) ([]*IssueComment, error)
type PullRequest ¶
type PullRequestsService ¶
type PullRequestsService interface {
ListPullRequestsWithCommit(ctx context.Context, owner, repo, sha string, opts *github.ListOptions) ([]*github.PullRequest, *github.Response, error)
}
type RepositoriesService ¶
type RepositoriesService interface {
CreateComment(ctx context.Context, owner, repo, sha string, comment *github.RepositoryComment) (*github.RepositoryComment, *github.Response, error)
UpdateComment(ctx context.Context, owner, repo string, id int64, comment *github.RepositoryComment) (*github.RepositoryComment, *github.Response, error)
}
type UsersService ¶
Click to show internal directories.
Click to hide internal directories.