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) ListRepositoryFiles(ctx context.Context, owner, repo, path, ref string) ([]*github.RepositoryContent, error)
- func (o GitOptions) OpenIssue(ctx context.Context, r *Issues) (string, error)
- func (o GitOptions) OpenPullRequest(ctx context.Context, pr *NewPullRequest) (*github.PullRequest, error)
- func (o GitOptions) RepositoryFilesContents(ctx context.Context, owner, repo, file, ref string) (*github.RepositoryContent, error)
- func (o GitOptions) SearchCode(ctx context.Context, query string) (*github.CodeSearchResult, 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) ListRepositoryFiles ¶ added in v0.14.13
func (o GitOptions) ListRepositoryFiles(ctx context.Context, owner, repo, path, ref string) ([]*github.RepositoryContent, error)
func (GitOptions) OpenPullRequest ¶
func (o GitOptions) OpenPullRequest(ctx context.Context, pr *NewPullRequest) (*github.PullRequest, error)
OpenPullRequest opens a pull request on GitHub
func (GitOptions) RepositoryFilesContents ¶ added in v0.14.13
func (o GitOptions) RepositoryFilesContents(ctx context.Context, owner, repo, file, ref string) (*github.RepositoryContent, error)
func (GitOptions) SearchCode ¶ added in v0.14.13
func (o GitOptions) SearchCode(ctx context.Context, query string) (*github.CodeSearchResult, error)
SearchCode does a rate-limited search using the Github Code Search API. It does not currently do paginated search, that would be a good feature to add, but is not needed for it's immediate use case.
type NewPullRequest ¶
type NewPullRequest struct { BasePullRequest Title string Body string }
Click to show internal directories.
Click to hide internal directories.