mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 09:10:08 +00:00
[Backport release-26.05] ci/github-script/prepare: qualify recommendation to retarget from nixos-* (#579160)
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user