github

package
v0.0.0-...-94fe658 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*github.Client

	Ctx  context.Context
	Repo string
	PR   string
	Sha  string
}

func New

func New(repo, pr string) Client

func (*Client) AddCheck

func (c *Client) AddCheck(pending bool, msg string) error

func (*Client) AddReasonRequiredComment

func (c *Client) AddReasonRequiredComment() error

func (*Client) AddSkipCILabel

func (c *Client) AddSkipCILabel() error

func (*Client) AddSkipLabelDeprecatedComment

func (c *Client) AddSkipLabelDeprecatedComment() error

func (*Client) AddSkippingComment

func (c *Client) AddSkippingComment(reason, user string) error

func (*Client) FindFiles

func (c *Client) FindFiles(dir, name string) ([]string, error)

FindFiles returns the paths of all files named name that live at any depth below dir at the PR head commit, sorted. Returns no paths if dir holds no such file or doesn't exist.

func (*Client) GetAllChecks

func (c *Client) GetAllChecks() ([]*github.CheckRun, error)

func (*Client) GetChangedFiles

func (c *Client) GetChangedFiles() ([]string, error)

func (*Client) GetCheck

func (c *Client) GetCheck(checkName string) (*github.CheckRun, error)

func (*Client) GetFile

func (c *Client) GetFile(filepath string) (string, bool, error)

func (*Client) GetLastCommitTimestamp

func (c *Client) GetLastCommitTimestamp() (*github.Timestamp, error)

func (*Client) GetPR

func (c *Client) GetPR() (*github.PullRequest, error)

func (*Client) GetPRComments

func (c *Client) GetPRComments() ([]*github.IssueComment, error)

func (*Client) RemoveSkipCILabel

func (c *Client) RemoveSkipCILabel() error

Jump to

Keyboard shortcuts

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