Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommitStatus ¶
type CommitStatus struct { TargetSource *TargetSource State State Description Description Context string TargetURL *url.URL }
CommitStatus represents a commit status
type Description ¶
type Description string
Description explain a commit status
func (Description) TrimmedString ¶
func (d Description) TrimmedString() string
TrimmedString returns length-fixed description
type GitHub ¶
type GitHub interface { GetPullRequest(ctx context.Context, repo Repository, num int) (*go_github.PullRequest, error) CreateCommitStatus(ctx context.Context, status CommitStatus) error }
GitHub describes a github client.
type Repository ¶
Repository is a github repository
type RepositoryName ¶
type RepositoryName 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 SimpleTargetPoint ¶
SimpleTargetPoint is a simple implementation for TargetPoint
func (*SimpleTargetPoint) GetHead ¶
func (s *SimpleTargetPoint) GetHead() string
GetHead returns a SHA
type TargetPoint ¶
TargetPoint represents a target point for clone.
type TargetSource ¶
type TargetSource struct { Repository Ref string SHA plumbing.Hash }
TargetSource stores Repo, Ref and SHA for target
Source Files ¶
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.