Documentation
¶
Index ¶
- type Client
- func (c *Client) AssignReviewers(id int, repoName string, reviewers []string) *github.PullRequest
- func (c *Client) Branch(repoName, branchName string) *github.Branch
- func (c *Client) Branches(repoName string) []*github.Branch
- func (c *Client) Commit(repoName, commitSHA string) *github.Commit
- func (c *Client) Compare(repoName, base, head string) *github.CommitsComparison
- func (c *Client) CreatePullRequest(repoName, srcBranch, dstBranch, subject, description string) *github.PullRequest
- func (c *Client) CreateRefs(repoName, branchName, SHARef string) *github.Reference
- func (c *Client) Download(repoName, refName, filePath string) (body io.ReadCloser, err error)
- func (c *Client) Merge(repoName, base, head, message string) *github.RepositoryCommit
- func (c *Client) ReferenceByBranch(repoName, branchName string) *github.Reference
- func (c *Client) ReferenceByHeads(repoName, branchName string) *github.Reference
- func (c *Client) ReferenceByTag(repoName, tagName string) *github.Reference
- func (c *Client) Repositories(repoType, repoSort string) []*github.Repository
- func (c *Client) Repository(repoName string) *github.Repository
- func (c *Client) TagByName(repoName, tagName string) *github.RepositoryTag
- func (c *Client) Tags(repoName string) []*github.RepositoryTag
- func (c *Client) Tree(repoName, sourceFiles string, reference *github.Reference) *github.Tree
- func (c *Client) User(userName string) *github.User
- func (c *Client) Users() []*github.User
- type Operations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client encapsulate in a more simply implementation the Google's go-github
func (*Client) AssignReviewers ¶
AssignReviewers permits assign Reviewers to an one PullRequest
func (*Client) Compare ¶ added in v1.0.3
func (c *Client) Compare(repoName, base, head string) *github.CommitsComparison
Compare returns an Object Commit based on repoName and commitSHA
func (*Client) CreatePullRequest ¶
func (c *Client) CreatePullRequest(repoName, srcBranch, dstBranch, subject, description string) *github.PullRequest
CreatePullRequest permits create an PullRequest into repoName using source and destiny branches
func (*Client) CreateRefs ¶
CreateRefs permits create an Object Reference based on repoName, branchName and SHAReference
func (*Client) Download ¶
func (c *Client) Download(repoName, refName, filePath string) (body io.ReadCloser, err error)
Download returns body response of GET DownloadURL corresponding to filePath
func (*Client) Merge ¶ added in v1.0.4
func (c *Client) Merge(repoName, base, head, message string) *github.RepositoryCommit
Merge returns an Object Commit based on merge to repoName:head into repoName:base
func (*Client) ReferenceByBranch ¶
ReferenceByBranch returns an Object Reference based in repoName and branchName
func (*Client) ReferenceByHeads ¶
ReferenceByHeads returns an Object Reference based in repoName and branchName from heads
func (*Client) ReferenceByTag ¶
ReferenceByTag returns an Object Reference based in repoName and tagName
func (*Client) Repositories ¶
func (c *Client) Repositories(repoType, repoSort string) []*github.Repository
Repositories list all Organization repositories
func (*Client) Repository ¶
func (c *Client) Repository(repoName string) *github.Repository
Repository return a repo selected by name
func (*Client) TagByName ¶
func (c *Client) TagByName(repoName, tagName string) *github.RepositoryTag
TagByName returns an Object Tag based in repoName and tagName
func (*Client) Tags ¶
func (c *Client) Tags(repoName string) []*github.RepositoryTag
Tags returns all tags for a repoName
type Operations ¶
type Operations interface {
Commit(repoName, commitSHA string) *github.Commit
Compare(repoName, base, head string) *github.CommitsComparison
Merge(repoName, base, head, message string) *github.RepositoryCommit
Repositories(repoType, repoSort string) []*github.Repository
Repository(repoName string) *github.Repository
Branches(repoName string) []*github.Branch
Branch(repoName, branchName string) *github.Branch
Tags(repoName string) []*github.RepositoryTag
TagByName(repoName, tagName string) *github.RepositoryTag
ReferenceByBranch(repoName, branchName string) *github.Reference
ReferenceByHeads(repoName, branchName string) *github.Reference
ReferenceByTag(repoName, tagName string) *github.Reference
CreateRefs(repoName, branchName, SHARef string) *github.Reference
Tree(repoName, sourceFiles string, reference *github.Reference) *github.Tree
Users() []*github.User
User(userName string) *github.User
CreatePullRequest(repoName, srcBranch, dstBranch, subject, description string) *github.PullRequest
AssignReviewers(id int, repoName string, reviewers []string) *github.PullRequest
Download(repoName, refName, filePath string) (body io.ReadCloser, err error)
// contains filtered or unexported methods
}
Operations interface