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