Skip to content

chore: mention maintainer in bot detection report#15186

Merged
mnkiefer merged 1 commit intomainfrom
mention-maintainer
Feb 12, 2026
Merged

chore: mention maintainer in bot detection report#15186
mnkiefer merged 1 commit intomainfrom
mention-maintainer

Conversation

@mnkiefer
Copy link
Contributor

  • Ensures the maintainer is directly mentioned in the generated report for quicker incident response.

@mnkiefer mnkiefer self-assigned this Feb 12, 2026
Copilot AI review requested due to automatic review settings February 12, 2026 15:23
@mnkiefer mnkiefer merged commit 8563267 into main Feb 12, 2026
32 checks passed
@mnkiefer mnkiefer deleted the mention-maintainer branch February 12, 2026 15:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the bot-detection workflow’s generated alert issue body to include a direct maintainer mention, aiming to speed up incident triage when high-risk new accounts are detected.

Changes:

  • Prepend the bot detection alert report with a maintainer mention (@pelikhan).
  • Add a short inline comment documenting the intent of the mention.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +339 to +340
// Mention a maintainer for timely triage.
let body = `@pelikhan\n\nRecently-created accounts often indicate bots, spam accounts, or coordinated attacks.\n\n`;
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The maintainer handle is hard-coded into the report body. This makes the workflow brittle if maintainers change (or in forks where that user doesn’t exist) and requires a code change to update. Consider making the mention configurable via a repo variable/env (and only prepending it when set) so it can be updated without editing the workflow and can be disabled when desired.

Suggested change
// Mention a maintainer for timely triage.
let body = `@pelikhan\n\nRecently-created accounts often indicate bots, spam accounts, or coordinated attacks.\n\n`;
// Mention a maintainer for timely triage (configurable via env).
const maintainerHandle = process.env.BOT_DETECTION_MAINTAINER;
let body = '';
if (maintainerHandle) {
body += `@${maintainerHandle}\n\n`;
}
body += `Recently-created accounts often indicate bots, spam accounts, or coordinated attacks.\n\n`;

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants