Documentation ¶
Index ¶
- func CompareCommits(base, head string) ([]github.RepositoryCommit, error)
- func CreateRelease(tagName, body string) error
- func DeleteRelease(id int64) error
- func GetPullRequestIssuesBetween(start, end time.Time) (map[string]github.Issue, error)
- func GetPullRequests() (map[string]*github.PullRequest, error)
- func GetRelease(tag string) (*github.RepositoryRelease, error)
- func Initialize(accessToken string, r Repository)
- type Repository
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareCommits ¶
func CompareCommits(base, head string) ([]github.RepositoryCommit, error)
CompareCommits returns all commits between two github tags or hashes
func CreateRelease ¶
CreateRelease creates a release in Github
func GetPullRequestIssuesBetween ¶
GetPullRequestIssuesBetween fetches all pull request issues between two timestamps, using the Github Search api. Returns a map of the merge commit SHAs and the issues.
func GetPullRequests ¶
func GetPullRequests() (map[string]*github.PullRequest, error)
GetPullRequests fetches the 100 most recent pull requests
func GetRelease ¶
func GetRelease(tag string) (*github.RepositoryRelease, error)
GetRelease fetches a release in Github by tag
func Initialize ¶
func Initialize(accessToken string, r Repository)
Initialize initializes the github and githubv4 clients If a Github authorized httpClient is passed as an argument, the github clients will be able to fetch data from private resources
Types ¶
type Repository ¶
Repository holds the owner and name of a Github repository
var ( // Repo is the repository used for fetching of data with the Github clients Repo Repository )
func (*Repository) Full ¶
func (r *Repository) Full() string
Full returns the full repository name with the owner included
func (*Repository) Set ¶
func (r *Repository) Set(input string) error
Set is part of the Value interface for cobra custom flags
func (*Repository) String ¶
func (r *Repository) String() string
String is part of the Value interface for cobra custom flags
func (*Repository) Type ¶
func (r *Repository) Type() string
Type is part of the Value interface for cobra custom flags