Skip to content

Commit 1d61076

Browse files
authored
Merge pull request #23198 from storybookjs/release-tooling-simpler-ci
Build: Don't auto-trigger CI on release PRs
2 parents 162ba43 + ce80cf0 commit 1d61076

File tree

3 files changed

+29
-7
lines changed

3 files changed

+29
-7
lines changed

.github/workflows/trigger-circle-ci-workflow.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99
branches:
1010
- next
1111
- main
12-
- version-prerelease-from-**
13-
- version-patch-from-**
1412

1513
jobs:
1614
get-branch:
@@ -56,7 +54,7 @@ jobs:
5654
trigger-pr-tests:
5755
runs-on: ubuntu-latest
5856
needs: get-branch
59-
if: github.event_name == 'pull_request_target' && ((github.event.pull_request.draft == false || contains(github.event.pull_request.labels.*.name, 'ci:pr')) && !contains(github.event.pull_request.labels.*.name, 'ci:merged') && !contains(github.event.pull_request.labels.*.name, 'ci:daily'))
57+
if: github.event_name == 'pull_request_target' && (((github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'release')) || contains(github.event.pull_request.labels.*.name, 'ci:pr')) && !contains(github.event.pull_request.labels.*.name, 'ci:merged') && !contains(github.event.pull_request.labels.*.name, 'ci:daily'))
6058
steps:
6159
- name: Trigger PR tests
6260
run: >
@@ -109,4 +107,4 @@ jobs:
109107
}'
110108
env:
111109
CIRCLE_CI_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }}
112-
BRANCH: ${{ needs.get-branch.outputs.branch }}
110+
BRANCH: ${{ needs.get-branch.outputs.branch }}

scripts/release/__tests__/generate-pr-description.test.ts

+18-2
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ For each pull request below, you need to either manually cherry pick it, or disc
174174
Before merging the PR, there are a few QA steps to go through:
175175
176176
- [ ] Add the \\"freeze\\" label to this PR, to ensure it doesn\\'t get automatically forced pushed by new changes.
177+
- [ ] Add the \\"ci:daily\\" label to this PR, to trigger the full test suite to run on this PR.
177178
178179
And for each change below:
179180
@@ -235,6 +236,13 @@ For each pull request below, you need to either manually cherry pick it, or disc
235236
"This is an automated pull request. None of the changes requires a version bump, they are only internal or documentation related. Merging this PR will not trigger a new release, but documentation will be updated.
236237
If you\\'re not a core maintainer with permissions to release you can ignore this pull request.
237238
239+
## To do
240+
241+
Before merging the PR:
242+
243+
- [ ] Add the \\"freeze\\" label to this PR, to ensure it doesn\\'t get automatically forced pushed by new changes.
244+
- [ ] Add the \\"ci:daily\\" label to this PR, to trigger the full test suite to run on this PR.
245+
238246
This is a list of all the PRs merged and commits pushed directly to \\\`next\\\` since the last release:
239247
240248
- **🐛 Bug**: Some PR title for a bug [#42](https://github.com/storybookjs/storybook/pull/42)
@@ -263,7 +271,7 @@ For each pull request below, you need to either manually cherry pick it, or disc
263271
264272
- [ ] [#42](https://github.com/storybookjs/storybook/pull/42): \\\`git cherry-pick -m1 -x abc123\\\`
265273
266-
If you\\'ve made any changes (change PR titles, revert PRs), manually trigger a re-generation of this PR with [this workflow](https://github.com/storybookjs/storybook/actions/workflows/prepare-prerelease.yml) and wait for it to finish.
274+
If you\\'ve made any changes (change PR titles, revert PRs), manually trigger a re-generation of this PR with [this workflow](https://github.com/storybookjs/storybook/actions/workflows/prepare-patch-release.yml) and wait for it to finish.
267275
268276
When everything above is done:
269277
- Merge this PR
@@ -294,6 +302,7 @@ For each pull request below, you need to either manually cherry pick it, or disc
294302
Before merging the PR, there are a few QA steps to go through:
295303
296304
- [ ] Add the \\"freeze\\" label to this PR, to ensure it doesn\\'t get automatically forced pushed by new changes.
305+
- [ ] Add the \\"ci:daily\\" label to this PR, to trigger the full test suite to run on this PR.
297306
298307
And for each change below:
299308
@@ -350,6 +359,13 @@ For each pull request below, you need to either manually cherry pick it, or disc
350359
"This is an automated pull request. None of the changes requires a version bump, they are only internal or documentation related. Merging this PR will not trigger a new release, but documentation will be updated.
351360
If you\\'re not a core maintainer with permissions to release you can ignore this pull request.
352361
362+
## To do
363+
364+
Before merging the PR:
365+
366+
- [ ] Add the \\"freeze\\" label to this PR, to ensure it doesn\\'t get automatically forced pushed by new changes.
367+
- [ ] Add the \\"ci:daily\\" label to this PR, to trigger the full test suite to run on this PR.
368+
353369
This is a list of all the PRs merged and commits pushed directly to \\\`next\\\` since the last release:
354370
355371
- **🐛 Bug**: Some PR title for a bug [#42](https://github.com/storybookjs/storybook/pull/42)
@@ -373,7 +389,7 @@ For each pull request below, you need to either manually cherry pick it, or disc
373389
374390
375391
376-
If you\\'ve made any changes (change PR titles, revert PRs), manually trigger a re-generation of this PR with [this workflow](https://github.com/storybookjs/storybook/actions/workflows/prepare-prerelease.yml) and wait for it to finish.
392+
If you\\'ve made any changes (change PR titles, revert PRs), manually trigger a re-generation of this PR with [this workflow](https://github.com/storybookjs/storybook/actions/workflows/prepare-patch-release.yml) and wait for it to finish.
377393
378394
When everything above is done:
379395
- Merge this PR

scripts/release/generate-pr-description.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export const generateReleaseDescription = ({
154154
Before merging the PR, there are a few QA steps to go through:
155155
156156
- [ ] Add the "freeze" label to this PR, to ensure it doesn't get automatically forced pushed by new changes.
157+
- [ ] Add the "ci:daily" label to this PR, to trigger the full test suite to run on this PR.
157158
158159
And for each change below:
159160
@@ -199,13 +200,20 @@ export const generateNonReleaseDescription = (
199200
dedent`This is an automated pull request. None of the changes requires a version bump, they are only internal or documentation related. Merging this PR will not trigger a new release, but documentation will be updated.
200201
If you're not a core maintainer with permissions to release you can ignore this pull request.
201202
203+
## To do
204+
205+
Before merging the PR:
206+
207+
- [ ] Add the "freeze" label to this PR, to ensure it doesn't get automatically forced pushed by new changes.
208+
- [ ] Add the "ci:daily" label to this PR, to trigger the full test suite to run on this PR.
209+
202210
This is a list of all the PRs merged and commits pushed directly to \`next\` since the last release:
203211
204212
${changeList}
205213
206214
${manualCherryPicks || ''}
207215
208-
If you've made any changes (change PR titles, revert PRs), manually trigger a re-generation of this PR with [this workflow](https://github.com/storybookjs/storybook/actions/workflows/prepare-prerelease.yml) and wait for it to finish.
216+
If you've made any changes (change PR titles, revert PRs), manually trigger a re-generation of this PR with [this workflow](https://github.com/storybookjs/storybook/actions/workflows/prepare-patch-release.yml) and wait for it to finish.
209217
210218
When everything above is done:
211219
- Merge this PR

0 commit comments

Comments
 (0)