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) CreatePullRequest(repoName, srcBranch, dstBranch, subject, description string) *github.PullRequest
- func (c *Client) CreateRefs(repoName, branchName, SHARef string) *github.Reference
- func (c *Client) Download(repoName, filePath string) (body io.ReadCloser, err error)
- 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() []*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) 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, filePath string) (body io.ReadCloser, err error)
Download returns body response of GET DownloadURL corresponding to filePath
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() []*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
Repositories() []*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
// contains filtered or unexported methods
}
Operations interface