MCPcopy Create free account
hub / github.com/github/gh-aw / isBotUser

Function isBotUser

pkg/cli/outcome_eval.go:349–351  ·  view source on GitHub ↗

isBotUser returns true if the login looks like a bot account.

(login string)

Source from the content-addressed store, hash-verified

347
348// isBotUser returns true if the login looks like a bot account.
349func 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.
354func resolveItemRepo(item CreatedItemReport, repoOverride string) string {

Callers 5

evalCreatePullRequestFunction · 0.85
TestIsBotUserFunction · 0.85
evalCreateIssueFunction · 0.85
isClosedByBotFunction · 0.85
evalAddCommentFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsBotUserFunction · 0.68