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 <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-07-16 20:11:24 -07:00
parent f2c331316b
commit 7eb5f48146

View File

@@ -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],
)