MCPcopy Index your code
hub / github.com/bytebase/bytebase / isBitbucketBotUser

Function isBitbucketBotUser

action/command/vcs_user.go:256–258  ·  view source on GitHub ↗
(userType, userName string)

Source from the content-addressed store, hash-verified

254}
255
256func isBitbucketBotUser(userType, userName string) bool {
257 return isBotUser(userType, userName) || strings.EqualFold(userType, "app") || strings.EqualFold(userType, "app_user")
258}
259
260func isBotUser(userType, userName string) bool {
261 return strings.EqualFold(userType, "bot") || strings.HasSuffix(strings.ToLower(userName), "[bot]")

Callers 1

getBitbucketVCSUserFunction · 0.85

Calls 1

isBotUserFunction · 0.85

Tested by

no test coverage detected