github

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(owner, repo, token string) domain.GitServer

Types

type Client

type Client struct {
	Github *github.Client

	Owner string
	Repo  string
}

func (*Client) CommentOnPR

func (c *Client) CommentOnPR(ctx context.Context, prNumber int, body string) error

func (*Client) GetPRComments added in v0.13.0

func (c *Client) GetPRComments(ctx context.Context, prNumber int) ([]*github.IssueComment, error)

func (*Client) GetPullRequestBodyFromCommit

func (c *Client) GetPullRequestBodyFromCommit(ctx context.Context, sha string) (*string, error)

func (*Client) GetPullRequestBodyFromPRNumber

func (c *Client) GetPullRequestBodyFromPRNumber(ctx context.Context, prNumber int) (*string, error)

Jump to

Keyboard shortcuts

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