From 9686621d1b8e00ecd3000e7a79165ac006f06529 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Thu, 3 Sep 2026 23:26:06 -0400 Subject: [PATCH] ci/github-script/bot.js: make llm-assisted label sticky By popular demand, this patch lets folks manually label PRs with the label and make it stick, even if auto-labeler wouldn't label it itself (presumably because the author didn't mark their commits according to automation policy). Assisted-by: Codex gpt-5.6-sol medium --- ci/github-script/bot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/github-script/bot.js b/ci/github-script/bot.js index 755b1f71dfdc..4a0f7d0fcfcd 100644 --- a/ci/github-script/bot.js +++ b/ci/github-script/bot.js @@ -397,11 +397,11 @@ export default async ({ github, context, core, dry }) => { per_page: 100, }) - // label llm-assisted PRs accordingly + // label llm-assisted PRs accordingly, retaining it if manually set const assistedByPattern = /Assisted-by: (?!nix-init)/i - evalLabels['llm-assisted'] = prCommits.some((c) => - assistedByPattern.test(c.commit.message), - ) + if (prCommits.some((c) => assistedByPattern.test(c.commit.message))) { + evalLabels['llm-assisted'] = true + } const commitSubjects = prCommits.map( (c) => c.commit.message.split('\n')[0],