isBotUser returns true if the login looks like a bot account.
(login string)
| 347 | |
| 348 | // isBotUser returns true if the login looks like a bot account. |
| 349 | func isBotUser(login string) bool { |
| 350 | return strings.HasSuffix(login, "[bot]") || login == "github-actions" || login == "copilot-swe-agent" |
| 351 | } |
| 352 | |
| 353 | // resolveItemRepo returns the repo to use for API calls, preferring the item's repo field. |
| 354 | func resolveItemRepo(item CreatedItemReport, repoOverride string) string { |
no outgoing calls