Documentation
¶
Index ¶
- Constants
- func GetErrorIssueTitle(bot, packageName string) string
- func GetUpdateIssueTitle(packageName, version string) string
- type BasePullRequest
- type GetPullRequest
- type GitHubOperations
- type GitOptions
- func (o GitOptions) AddReactionIssue(ctx context.Context, i *Issues, number int, reaction string) error
- func (o GitOptions) CheckExistingIssue(ctx context.Context, r *Issues) (int, error)
- func (o GitOptions) CloseIssue(background context.Context, organisation, name, comment string, i int) error
- func (o GitOptions) ClosePullRequest(ctx context.Context, owner, repo string, number int) error
- func (o GitOptions) CommentIssue(ctx context.Context, owner, repo, comment string, number int) (string, error)
- func (o GitOptions) HasExistingComment(ctx context.Context, r *Issues, issueNumber int, newComment string) (bool, error)
- func (o GitOptions) LabelIssue(ctx context.Context, owner, repo string, number int, labels *[]string) error
- func (o GitOptions) ListBranches(ctx context.Context, owner, repo string) ([]*github.Branch, error)
- func (o GitOptions) ListIssues(ctx context.Context, owner, repo, state string) ([]*github.Issue, error)
- func (o GitOptions) ListPullRequests(ctx context.Context, owner, repo, state string) ([]*github.PullRequest, error)
- func (o GitOptions) OpenIssue(ctx context.Context, r *Issues) (string, error)
- func (o GitOptions) OpenPullRequest(pr *NewPullRequest) (*github.PullRequest, error)
- type Issues
- type NewPullRequest
- type ReleaseOptions
Constants ¶
View Source
const SecondsToSleepWhenRateLimited = 30
Variables ¶
This section is empty.
Functions ¶
func GetErrorIssueTitle ¶
func GetUpdateIssueTitle ¶
Types ¶
type BasePullRequest ¶
type GetPullRequest ¶
type GetPullRequest struct {
BasePullRequest
PackageName string
Version string
}
type GitHubOperations ¶
type GitHubOperations interface {
CheckExistingIssue(ctx context.Context, r *Issues) (string, error)
OpenIssue(ctx context.Context, r *Issues) (string, error)
OpenPullRequest(ctx context.Context, pr *NewPullRequest) (string, error)
AddReactionIssue(ctx context.Context, i *Issues, number int, reaction string) error
HasExistingComment(ctx context.Context, r *Issues, issueNumber int, newComment string) (bool, error)
CommentIssue(ctx context.Context, r *Issues, number int) (string, error)
ListIssues(ctx context.Context, owner, repo, state string) ([]*github.Issue, error)
ListPullRequests(ctx context.Context, owner, repo, state string) ([]*github.PullRequest, error)
}
type GitOptions ¶
func (GitOptions) AddReactionIssue ¶
func (GitOptions) CheckExistingIssue ¶
func (GitOptions) CloseIssue ¶
func (GitOptions) ClosePullRequest ¶
func (GitOptions) CommentIssue ¶
func (GitOptions) HasExistingComment ¶
func (GitOptions) LabelIssue ¶
func (GitOptions) ListBranches ¶
func (GitOptions) ListIssues ¶
func (GitOptions) ListPullRequests ¶
func (o GitOptions) ListPullRequests(ctx context.Context, owner, repo, state string) ([]*github.PullRequest, error)
ListPullRequests returns a list of pull requests for a given state using pagination
func (GitOptions) OpenPullRequest ¶
func (o GitOptions) OpenPullRequest(pr *NewPullRequest) (*github.PullRequest, error)
OpenPullRequest opens a pull request on GitHub
type NewPullRequest ¶
type NewPullRequest struct {
BasePullRequest
Title string
Body string
}
type ReleaseOptions ¶
type ReleaseOptions struct {
GithubClient *github.Client
Logger *log.Logger
BumpMajor bool
BumpMinor bool
BumpPatch bool
BumpPrereleaseWithPrefix string
Dir string
}
func NewReleaseOptions ¶
func NewReleaseOptions() ReleaseOptions
func (ReleaseOptions) GetReleaseURL ¶
func (o ReleaseOptions) GetReleaseURL(owner, repoName, v string) (string, error)
func (ReleaseOptions) Release ¶
func (o ReleaseOptions) Release() error
Release will create a new GitHub release
Click to show internal directories.
Click to hide internal directories.