Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrgAwareClient ¶
OrgAwareClient wraps a github.Client so that FindIssues routes through FindIssuesWithOrg. Prow's App auth round-tripper requires the org in the request context to resolve the installation token, but bumper.UpdatePullRequestWithLabels internally calls FindIssues which passes an empty org.
When IsAppAuth is true, BotUser() appends "[bot]" to the login so that GitHub's search API author: qualifier matches the App's acting identity.
func (*OrgAwareClient) BotUser ¶
func (c *OrgAwareClient) BotUser() (*github.UserData, error)
BotUser returns the bot user data. When the client is using GitHub App auth, it appends the "[bot]" suffix to the login. GitHub Apps act as "slug[bot]" users, but prow's getUserData only stores the bare slug. The search API's author: qualifier requires the full "slug[bot]" form to match PRs created by the App; using the bare slug results in a 422 because that user does not exist on GitHub.
func (*OrgAwareClient) FindIssues ¶
type PRCreationOptions ¶
type PRCreationOptions struct {
SelfApprove bool
PRSourceMode string
flagutil.GitHubOptions
GithubClient github.Client
}
func (*PRCreationOptions) AddFlags ¶
func (o *PRCreationOptions) AddFlags(fs *flag.FlagSet)
func (*PRCreationOptions) Finalize ¶
func (o *PRCreationOptions) Finalize() error
type PrOption ¶
type PrOption func(*PrOptions)
PrOption is the type for Optional Parameters
func AdditionalLabels ¶
func GitCommitMessage ¶
GitCommitMessage is the wrapper to pass in PrCommitMessage that's different from the PrBody This is useful when you wish to provide large markdown information for the PR, but wish to keep the commit simple.
func MatchTitle ¶
MatchTitle is the wrapper to pass in MatchTitle as a parameter
func PrAssignee ¶
PrAssignee is the user to whom the PR is assigned
func SkipPRCreation ¶
func SkipPRCreation() PrOption
SkipPRCreation skips the actual pr creation after committing and pushing