You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add lane:dev for docs/dev/ PRs (admin self-merge, no review)
Introduce a new review lane for dev docs. Detection is content-based:
if every docs-touching file in the PR is under docs/dev/, the PR is
auto-assigned lane:dev and moved straight to stage:ready-to-merge with
review-workflow status flipped to success — same treatment as
lane:editorial-fix.
Branch-name detection also supports docs/dev/ as a fallback for branches
whose content is mixed or ambiguous. Admins can apply lane:dev manually
to any PR via the labels sidebar.
? `Branch \`${branch}\` starts with \`docs/\` but does not match an expected sub-prefix (\`docs/new/\`, \`docs/major/\`, \`docs/minor/\`, \`docs/fix/\`).`
241
-
: `Branch \`${branch}\` does not follow the \`docs/{new,major,minor,fix}/\` naming convention, but this PR modifies files under \`docs/\` and therefore requires a review lane.`;
257
+
? `Branch \`${branch}\` starts with \`docs/\` but does not match an expected sub-prefix (\`docs/new/\`, \`docs/major/\`, \`docs/minor/\`, \`docs/fix/\`, \`docs/dev/\`).`
258
+
: `Branch \`${branch}\` does not follow the \`docs/{new,major,minor,fix,dev}/\` naming convention, but this PR modifies files under \`docs/\` and therefore requires a review lane.`;
242
259
await postComment(`⚠️ **Could not determine review lane**\n\n${reason}\n\n@usace-rmc/docs-admin please apply the correct \`lane:*\` label.`);
? `Branch \`${branch}\` starts with \`docs/\` but does not match an expected sub-prefix.`
267
-
: `Branch \`${branch}\` does not follow \`docs/{new,major,minor,fix}/\` naming. This PR now modifies files under \`docs/\` and requires a review lane.`;
285
+
: `Branch \`${branch}\` does not follow \`docs/{new,major,minor,fix,dev}/\` naming. This PR now modifies files under \`docs/\` and requires a review lane.`;
268
286
await postComment(`⚠️ **Could not determine review lane**\n\n${reason}\n\n@usace-rmc/docs-admin please apply the correct \`lane:*\` label.`);
269
287
return;
270
288
}
@@ -355,10 +373,12 @@ jobs:
355
373
if (LANE_LABELS.includes(added) && (!existingStage || existingStage === 'stage:needs-lane')) {
356
374
await removeLabel('stage:needs-lane');
357
375
await ensureState();
358
-
if (added === 'lane:editorial-fix') {
376
+
if (added === 'lane:editorial-fix' || added === 'lane:dev') {
359
377
await addLabels(['stage:ready-to-merge']);
360
-
await setReviewStatus('success', 'Editorial fix — admin may merge');
361
-
await postComment(`📋 Lane set to **editorial fix**.\n\n@usace-rmc/docs-admin please review and merge.`);
378
+
const statusDesc = added === 'lane:editorial-fix' ? 'Editorial fix — admin may merge' : 'Dev doc — admin may merge';
0 commit comments