mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
ci/github-script/prepare: qualify recommendation to retarget from nixos-*
This commit is contained in:
committed by
Matt Sturgeon
parent
6d30dff032
commit
4708e43402
@@ -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