github

package
v0.0.0-...-f396439 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(revision string, dryRuns []model.DryRun) *string

Types

type Client

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

func NewClient

func NewClient(cfg *Config) *Client

func (Client) ListPullRequests

func (c Client) ListPullRequests(ctx context.Context, opts model.ListPullRequestsOpts) ([]model.PullRequest, error)

ListPullRequests lists the recently updated pull requests which do not yet have a comment.

func (Client) RepoURL

func (c Client) RepoURL(owner string, repo string) string

func (Client) UpsertComment

func (c Client) UpsertComment(ctx context.Context, opts model.UpsertCommentOpts) (*model.Comment, error)

type Config

type Config struct {
	AuthToken string `validate:"required"`
}

Jump to

Keyboard shortcuts

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