Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 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) 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