From 7eb5f481468cdd1f3bf5a84b43b0c059ee2c3fac Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Thu, 16 Jul 2026 20:11:24 -0700 Subject: [PATCH] ci/github-script/bot: label llm-assisted PRs accordingly Discussed in AGENTS.md debate PR Assisted by https://regex101.com/, my brain, and love for humanity and free software Signed-off-by: Ethan Carter Edwards --- ci/github-script/bot.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ci/github-script/bot.js b/ci/github-script/bot.js index 8e0043d5505c..684e3e33179a 100644 --- a/ci/github-script/bot.js +++ b/ci/github-script/bot.js @@ -395,6 +395,13 @@ module.exports = async ({ github, context, core, dry }) => { pull_number, per_page: 100, }) + + // label llm-assisted PRs accordingly + const assistedByPattern = /Assisted-by: (?!nix-init)/i + evalLabels['llm-assisted'] = prCommits.some((c) => + assistedByPattern.test(c.commit.message), + ) + const commitSubjects = prCommits.map( (c) => c.commit.message.split('\n')[0], )