github

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	Config config.Settings
	Client v41.Client
}

func New

func New(auth *config.Settings) *Worker

func (*Worker) AddLabels

func (w *Worker) AddLabels(owner string, repo string, number int, labels []string) ([]*v41.Label, error)

func (*Worker) CreateCheckRun

func (w *Worker) CreateCheckRun(owner string, repo string, checkrun v41.CreateCheckRunOptions) (*v41.CheckRun, error)

func (*Worker) DeleteRef

func (w *Worker) DeleteRef(owner string, repo string, ref string) (*v41.Response, error)

func (*Worker) GetCheckRun

func (w *Worker) GetCheckRun(owner string, repo string, checkrunId int64) (*v41.CheckRun, error)

func (*Worker) GetPullRequest

func (w *Worker) GetPullRequest(owner string, repo string, number int) (*v41.PullRequest, error)

func (*Worker) GetRef

func (w *Worker) GetRef(owner string, repo string, ref string) (*v41.Reference, error)

func (*Worker) Handler

func (w *Worker) Handler(response http.ResponseWriter, request *http.Request)

func (*Worker) MergePullRequest

func (w *Worker) MergePullRequest(owner string, repo string, number int, commitMessage string, options v41.PullRequestOptions) (*v41.PullRequestMergeResult, error)

func (*Worker) PullRequestCreateComment

func (w *Worker) PullRequestCreateComment(owner string, repo string, number int, comment v41.IssueComment) (*v41.IssueComment, error)

func (*Worker) PullRequestCreateCommentReview

func (w *Worker) PullRequestCreateCommentReview(owner string, repo string, number int, comment v41.PullRequestComment) (*v41.PullRequestComment, error)

func (*Worker) PullRequestCreateReview

func (w *Worker) PullRequestCreateReview(owner string, repo string, number int, review v41.PullRequestReviewRequest) (*v41.PullRequestReview, error)

func (*Worker) UpdateCheckRun

func (w *Worker) UpdateCheckRun(owner string, repo string, checkRunId int64, checkRun v41.UpdateCheckRunOptions) (*v41.CheckRun, error)

Jump to

Keyboard shortcuts

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