githubapi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CandidateLabelName = "candidate-template"

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHub

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

func NewGitHub

func NewGitHub(l logr.Logger) *GitHub

func (*GitHub) CommentToPullRequest

func (g *GitHub) CommentToPullRequest(ctx context.Context, pr models.PullRequest, comment string) error

func (*GitHub) GetCommitHashes

func (g *GitHub) GetCommitHashes(ctx context.Context, prModel models.PullRequest) ([]string, error)

func (*GitHub) GetPullRequest

func (g *GitHub) GetPullRequest(ctx context.Context, appRepoTarget models.AppRepoTarget, prNum int) (models.PullRequest, error)

func (*GitHub) ListOpenPullRequests

func (g *GitHub) ListOpenPullRequests(ctx context.Context, appRepoTarget models.AppRepoTarget) (models.PullRequests, error)

func (*GitHub) WithCredential

func (g *GitHub) WithCredential(credential models.GitCredential) error

Jump to

Keyboard shortcuts

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