Documentation ¶
Index ¶
- func CreateGitHubClient(token string) *github.Client
- func CreateOrEditRelease(c *github.Client, owner, repo string, release *github.RepositoryRelease) (*github.RepositoryRelease, error)
- func FetchClosedIssuesSince(c *github.Client, owner, repo string, since time.Time) ([]*github.Issue, error)
- func FilterClosedAfter(issues []*github.Issue, d time.Time) []*github.Issue
- func FilterClosedBefore(issues []*github.Issue, d time.Time) []*github.Issue
- func FilterClosedByCommits(issues []*github.Issue, commits []github.RepositoryCommit) []*github.Issue
- func FilterClosedByPull(issues []*github.Issue) []*github.Issue
- func FilterMergedPullsAfter(issues []*github.Issue, commits []github.RepositoryCommit) []*github.Issue
- func FilterNonMergedPulls(issues []*github.Issue, c *github.Client, owner, repo string) []*github.Issue
- func GetCommitForTag(c *github.Client, owner, repo, tag string) (*github.RepositoryCommit, error)
- func GetComparison(c *github.Client, owner, repo, base, head string) (*github.CommitsComparison, error)
- func GetFirstCommit(c *github.Client, owner, repo string) (*github.RepositoryCommit, error)
- func GetPullRequest(c *github.Client, owner, repo string, number int) (*github.PullRequest, error)
- func GetReleaseByTag(c *github.Client, owner, repo, tag string) (*github.RepositoryRelease, error)
- func UploadReleaseAssets(c *github.Client, owner, repo string, id int, attachments []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGitHubClient ¶
CreateGitHubClient creates a new GitHub API client with the specified access token for authentication.
func CreateOrEditRelease ¶
func CreateOrEditRelease(c *github.Client, owner, repo string, release *github.RepositoryRelease) (*github.RepositoryRelease, error)
CreateOrEditRelease creates a repository release if it doesn't exist, else it will edit an existing repository release.
func FetchClosedIssuesSince ¶
func FetchClosedIssuesSince(c *github.Client, owner, repo string, since time.Time) ([]*github.Issue, error)
FetchClosedIssuesSince fetches all closed issues since the specified time.
func FilterClosedAfter ¶
FilterClosedAfter filters out all issues that were closed before the specified time.
func FilterClosedBefore ¶
FilterClosedBefore filters out all issues that were closed after the specified time.
func FilterClosedByCommits ¶
func FilterClosedByCommits(issues []*github.Issue, commits []github.RepositoryCommit) []*github.Issue
FilterClosedByCommits filters out any issues that have not been closed by commit messages.
func FilterClosedByPull ¶
FilterClosedByPull filters out all issues that were closed automatically by a pull request.
func FilterMergedPullsAfter ¶
func FilterMergedPullsAfter(issues []*github.Issue, commits []github.RepositoryCommit) []*github.Issue
FilterMergedPullsAfter filters out any issues or pull requests closed outside of the commit comparison range.
func FilterNonMergedPulls ¶
func FilterNonMergedPulls(issues []*github.Issue, c *github.Client, owner, repo string) []*github.Issue
FilterNonMergedPulls filters out all pull requests that were closed and not merged.
func GetCommitForTag ¶
GetCommitForTag gets the commit a tag is a reference to.
func GetComparison ¶
func GetComparison(c *github.Client, owner, repo, base, head string) (*github.CommitsComparison, error)
GetComparison gets the commit comparison for the given base and head range.
func GetFirstCommit ¶
GetFirstCommit gets the first commit to the repository.
func GetPullRequest ¶
GetPullRequest gets the pull request with the specified number.
func GetReleaseByTag ¶
GetReleaseByTag returns a repository release for the given tag if it exists.
Types ¶
This section is empty.