ci/github-script/prepare: qualify recommendation to retarget from nixos-*

(cherry picked from commit 4708e43402)
This commit is contained in:
Grayson Tinker
2026-06-05 05:24:19 -04:00
committed by github-actions[bot]
parent 1e67485f17
commit e7339f127c

View File

@@ -57,11 +57,10 @@ export default async ({
if (baseClassification.type.includes('channel')) {
const { stable, version } = baseClassification
const correctBranch = stable ? `release-${version}` : 'master'
const body = [
'The `nixos-*` and `nixpkgs-*` branches are pushed to by the channel release script and should not be merged into directly.',
'',
`Please target \`${correctBranch}\` instead.`,
`Make sure you know the [right base branch for your changes](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#branch-conventions), then target the correct branch (probably \`release-${stable ? version : '*'}\` or \`master\`) instead.`,
].join('\n')
await postReview({ github, context, core, dry, body, reviewKey })