Legitimate bot helper#4511
Conversation
|
@blotus: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
|
@blotus: There are no area labels on this PR. You can add as many areas as you see fit.
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
| func compileBotRegex(pattern string) (*regexp.Regexp, error) { | ||
| return regexp.Compile("(?i)" + pattern) // Force case insensitive match | ||
| } | ||
|
|
There was a problem hiding this comment.
I would suggest to add a comment to remind what the call flow is for botFileInit and LoadBotfilesFromDir:
AppsecConfig.Build() ← appsec.go:820
└── setupLegitBots(hub) ← appsec.go:866
└── LoadBotFilesFromDir() ← botfile.go:127 (once, scans legit_bots/ dir)
└── FileInit() ← helpers.go (once per file)
└── botFileInit() ← botfile.go:52 (once per JSON line)
|
/kind enhancement |
|
/kind enhancement |
No description provided.