pull_request

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeService

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

func (*FakeService) List

func (g *FakeService) List(ctx context.Context) ([]*PullRequest, error)

type GithubService

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

func (*GithubService) List

func (g *GithubService) List(ctx context.Context) ([]*PullRequest, error)

type PullRequest

type PullRequest struct {
	// Number is a number that will be the ID of the pull request.
	Number int
	// Branch is the name of the branch from which the pull request originated.
	Branch string
	// HeadSHA is the SHA of the HEAD from which the pull request originated.
	HeadSHA string
}

type PullRequestService

type PullRequestService interface {
	// List gets a list of pull requests.
	List(ctx context.Context) ([]*PullRequest, error)
}

func NewFakeService

func NewFakeService(_ context.Context, listPullReuests []*PullRequest, listError error) (PullRequestService, error)

func NewGithubService

func NewGithubService(ctx context.Context, token, url, owner, repo string, labels []string) (PullRequestService, error)

Jump to

Keyboard shortcuts

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