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 callers like bumper.UpdatePullRequestWithLabels internally call 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 issues created by the App.