From 08e4f00036f6e5fb15a59791fd38376dd6bbfd7c Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Tue, 11 Jul 2023 16:32:50 +0200 Subject: [PATCH] fix wrong 'patch' reference to 'patch:yes' --- scripts/release/__tests__/generate-pr-description.test.ts | 4 ++-- scripts/release/utils/get-changes.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/release/__tests__/generate-pr-description.test.ts b/scripts/release/__tests__/generate-pr-description.test.ts index f833c430a08e..bf2247ca899f 100644 --- a/scripts/release/__tests__/generate-pr-description.test.ts +++ b/scripts/release/__tests__/generate-pr-description.test.ts @@ -53,7 +53,7 @@ describe('Generate PR Description', () => { id: 'pr-id-11', user: 'shilman', title: 'Another PR `title` for docs', - labels: ['another label', 'documentation', 'patch'], + labels: ['another label', 'documentation', 'patch:yes'], commit: 'ddd222', pull: 11, links: { @@ -104,7 +104,7 @@ describe('Generate PR Description', () => { "- [ ] **🐛 Bug**: Some PR title for a bug [#42](https://github.com/storybookjs/storybook/pull/42) (will also be patched) - [ ] **✨ Feature Request**: Some PR title for a 'new' feature [#48](https://github.com/storybookjs/storybook/pull/48) - [ ] **⚠️ Direct commit**: Some title for a "direct commit" [22bb11](https://github.com/storybookjs/storybook/commit/22bb11) - - [ ] **📝 Documentation**: Another PR \`title\` for docs [#11](https://github.com/storybookjs/storybook/pull/11) + - [ ] **📝 Documentation**: Another PR \`title\` for docs [#11](https://github.com/storybookjs/storybook/pull/11) (will also be patched) - [ ] **❔ Missing Label**: Some PR title with a missing label [#77](https://github.com/storybookjs/storybook/pull/77)" `); }); diff --git a/scripts/release/utils/get-changes.ts b/scripts/release/utils/get-changes.ts index 5a250bfd893c..34586dfee2d0 100644 --- a/scripts/release/utils/get-changes.ts +++ b/scripts/release/utils/get-changes.ts @@ -176,7 +176,7 @@ export const mapToChanges = ({ return; } // filter out any entries that are not patches if unpickedPatches is set. this will also filter out direct commits - if (unpickedPatches && !entry.labels?.includes('patch')) { + if (unpickedPatches && !entry.labels?.includes('patch:yes')) { return; } changes.push(entry);