Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PullRequest ¶
type PullRequest = github.PullRequest
PullRequest is a type alias of github.PullRequest
type Repository ¶
Repository is a interface to get information of git repository.
type RepositoryName ¶
type RepositoryName struct {
FullName string
}
RepositoryName is a github repository name.
func (*RepositoryName) Owner ¶
func (r *RepositoryName) Owner() (string, error)
Owner get a repository owner.
func (*RepositoryName) Repo ¶
func (r *RepositoryName) Repo() (string, error)
Repo get a repository name without owner.
type Service ¶
type Service interface { GetPullRequest(ctx context.Context, repository Repository, num int) (*PullRequest, error) CreateCommitStatus(ctx context.Context, src *TargetSource, state State, description string) error }
Service describes a github service.
type TargetSource ¶ added in v0.4.0
type TargetSource struct { Repo Repository Ref string SHA plumbing.Hash }
TargetSource stores Repo, Ref and SHA for target
func (*TargetSource) GetRef ¶ added in v0.5.0
func (s *TargetSource) GetRef() string
GetRef returns a ref
func (*TargetSource) GetSHA ¶ added in v0.5.0
func (s *TargetSource) GetSHA() plumbing.Hash
GetSHA returns a hash
func (*TargetSource) GetURL ¶ added in v0.5.0
func (s *TargetSource) GetURL() string
GetURL returns a clone URL
Directories
¶
Path | Synopsis |
---|---|
Package mock_github is a generated GoMock package.
|
Package mock_github is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.