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

This commit is contained in:
Grayson Tinker
2026-06-05 05:24:19 -04:00
committed by Matt Sturgeon
parent 6d30dff032
commit 4708e43402

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 })