From e8389e5f0166f4f3499fc5c5860cb79db9ca6393 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Fri, 9 Jun 2023 14:25:47 +0200 Subject: [PATCH] don't reference prototype repo --- .../__tests__/generate-pr-description.test.ts | 18 +++++++++--------- .../release/__tests__/label-patches.test.ts | 10 +++++----- scripts/release/generate-pr-description.ts | 8 ++++---- scripts/release/pick-patches.ts | 2 +- scripts/release/utils/get-unpicked-prs.ts | 2 +- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/scripts/release/__tests__/generate-pr-description.test.ts b/scripts/release/__tests__/generate-pr-description.test.ts index e270e2e2a3d1..d4858a30c70a 100644 --- a/scripts/release/__tests__/generate-pr-description.test.ts +++ b/scripts/release/__tests__/generate-pr-description.test.ts @@ -29,7 +29,7 @@ describe('Generate PR Description', () => { labels: null, links: { commit: - '[`012b58140c3606efeacbe99c0c410624b0a1ed1f`](https://github.com/storybookjs/monorepo-release-tooling-prototype/commit/012b58140c3606efeacbe99c0c410624b0a1ed1f)', + '[`012b58140c3606efeacbe99c0c410624b0a1ed1f`](https://github.com/storybookjs/storybook/commit/012b58140c3606efeacbe99c0c410624b0a1ed1f)', pull: null, user: '[@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)', }, @@ -219,11 +219,11 @@ For each pull request below, you need to either manually cherry pick it, or disc - [ ] [#42](https://github.com/storybookjs/storybook/pull/42): \\\`git cherry-pick -m1 -x abc123\\\` - If you\\'ve made any changes doing the above QA (change PR titles, revert PRs), manually trigger a re-generation of this PR with [this workflow](https://github.com/storybookjs/monorepo-release-tooling-prototype/actions/workflows/prepare-prerelease.yml) and wait for it to finish. It will wipe your progress in this to do, which is expected. + If you\\'ve made any changes doing the above QA (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. It will wipe your progress in this to do, which is expected. When everything above is done: - [ ] Merge this PR - - [ ] [Follow the publish workflow run and see it finishes succesfully](https://github.com/storybookjs/monorepo-release-tooling-prototype/actions/workflows/publish.yml) + - [ ] [Follow the publish workflow run and see it finishes succesfully](https://github.com/storybookjs/storybook/actions/workflows/publish.yml) --- @@ -270,11 +270,11 @@ For each pull request below, you need to either manually cherry pick it, or disc - [ ] [#42](https://github.com/storybookjs/storybook/pull/42): \\\`git cherry-pick -m1 -x abc123\\\` - 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/monorepo-release-tooling-prototype/actions/workflows/prepare-prerelease.yml) and wait for it to finish. + 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. When everything above is done: - [ ] Merge this PR - - [ ] [Approve the publish workflow run](https://github.com/storybookjs/monorepo-release-tooling-prototype/actions/workflows/publish.yml)" + - [ ] [Approve the publish workflow run](https://github.com/storybookjs/storybook/actions/workflows/publish.yml)" `); }); @@ -334,11 +334,11 @@ For each pull request below, you need to either manually cherry pick it, or disc - If you\\'ve made any changes doing the above QA (change PR titles, revert PRs), manually trigger a re-generation of this PR with [this workflow](https://github.com/storybookjs/monorepo-release-tooling-prototype/actions/workflows/prepare-prerelease.yml) and wait for it to finish. It will wipe your progress in this to do, which is expected. + If you\\'ve made any changes doing the above QA (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. It will wipe your progress in this to do, which is expected. When everything above is done: - [ ] Merge this PR - - [ ] [Follow the publish workflow run and see it finishes succesfully](https://github.com/storybookjs/monorepo-release-tooling-prototype/actions/workflows/publish.yml) + - [ ] [Follow the publish workflow run and see it finishes succesfully](https://github.com/storybookjs/storybook/actions/workflows/publish.yml) --- @@ -380,11 +380,11 @@ For each pull request below, you need to either manually cherry pick it, or disc - 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/monorepo-release-tooling-prototype/actions/workflows/prepare-prerelease.yml) and wait for it to finish. + 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. When everything above is done: - [ ] Merge this PR - - [ ] [Approve the publish workflow run](https://github.com/storybookjs/monorepo-release-tooling-prototype/actions/workflows/publish.yml)" + - [ ] [Approve the publish workflow run](https://github.com/storybookjs/storybook/actions/workflows/publish.yml)" `); }); }); diff --git a/scripts/release/__tests__/label-patches.test.ts b/scripts/release/__tests__/label-patches.test.ts index aca05995db47..31203529a0ca 100644 --- a/scripts/release/__tests__/label-patches.test.ts +++ b/scripts/release/__tests__/label-patches.test.ts @@ -18,8 +18,8 @@ const remoteMock = [ { name: 'origin', refs: { - fetch: 'https://github.com/storybookjs/monorepo-release-tooling-prototype.git', - push: 'https://github.com/storybookjs/monorepo-release-tooling-prototype.git', + fetch: 'https://github.com/storybookjs/storybook.git', + push: 'https://github.com/storybookjs/storybook.git', }, }, ]; @@ -60,8 +60,8 @@ const pullInfoMock = { labels: ['documentation', 'patch', 'picked'], links: { commit: - '[`930b47f011f750c44a1782267d698ccdd3c04da3`](https://github.com/storybookjs/monorepo-release-tooling-prototype/commit/930b47f011f750c44a1782267d698ccdd3c04da3)', - pull: '[#55](https://github.com/storybookjs/monorepo-release-tooling-prototype/pull/55)', + '[`930b47f011f750c44a1782267d698ccdd3c04da3`](https://github.com/storybookjs/storybook/commit/930b47f011f750c44a1782267d698ccdd3c04da3)', + pull: '[#55](https://github.com/storybookjs/storybook/pull/55)', user: '[@JReinhold](https://github.com/JReinhold)', }, }; @@ -125,7 +125,7 @@ test('it should label the PR associated with cheery picks in the current branch' "- Looking for latest tag\\n", "✔ Found latest tag: v7.2.1\\n", "- Looking at cherry pick commits since v7.2.1\\n", - "✔ Found the following picks 🍒:\\n Commit: 930b47f011f750c44a1782267d698ccdd3c04da3\\n PR: [#55](https://github.com/storybookjs/monorepo-release-tooling-prototype/pull/55)\\n", + "✔ Found the following picks 🍒:\\n Commit: 930b47f011f750c44a1782267d698ccdd3c04da3\\n PR: [#55](https://github.com/storybookjs/storybook/pull/55)\\n", "- Labeling the PRs with the picked label...\\n", "✔ Successfully labeled all PRs with the picked label.\\n" ] diff --git a/scripts/release/generate-pr-description.ts b/scripts/release/generate-pr-description.ts index b36fd7fc7165..ca8f07f5bb6d 100644 --- a/scripts/release/generate-pr-description.ts +++ b/scripts/release/generate-pr-description.ts @@ -178,11 +178,11 @@ export const generateReleaseDescription = ({ ${manualCherryPicks || ''} - If you've made any changes doing the above QA (change PR titles, revert PRs), manually trigger a re-generation of this PR with [this workflow](https://github.com/storybookjs/monorepo-release-tooling-prototype/actions/workflows/prepare-prerelease.yml) and wait for it to finish. It will wipe your progress in this to do, which is expected. + If you've made any changes doing the above QA (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. It will wipe your progress in this to do, which is expected. When everything above is done: - [ ] Merge this PR - - [ ] [Follow the publish workflow run and see it finishes succesfully](https://github.com/storybookjs/monorepo-release-tooling-prototype/actions/workflows/publish.yml) + - [ ] [Follow the publish workflow run and see it finishes succesfully](https://github.com/storybookjs/storybook/actions/workflows/publish.yml) --- @@ -211,11 +211,11 @@ export const generateNonReleaseDescription = ( ${manualCherryPicks || ''} - 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/monorepo-release-tooling-prototype/actions/workflows/prepare-prerelease.yml) and wait for it to finish. + 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. When everything above is done: - [ ] Merge this PR - - [ ] [Approve the publish workflow run](https://github.com/storybookjs/monorepo-release-tooling-prototype/actions/workflows/publish.yml)` + - [ ] [Approve the publish workflow run](https://github.com/storybookjs/storybook/actions/workflows/publish.yml)` // don't mention contributors in the release PR, to avoid spamming them .replaceAll('[@', '[@ ') .replaceAll('"', '\\"') diff --git a/scripts/release/pick-patches.ts b/scripts/release/pick-patches.ts index 92e0ecd19e63..20a3f2d6a870 100644 --- a/scripts/release/pick-patches.ts +++ b/scripts/release/pick-patches.ts @@ -15,7 +15,7 @@ program.name('pick-patches').description('Cherry pick patch PRs back to main'); const logger = console; const OWNER = 'storybookjs'; -const REPO = 'monorepo-release-tooling-prototype'; +const REPO = 'storybook'; const SOURCE_BRANCH = 'next'; const git = simpleGit(); diff --git a/scripts/release/utils/get-unpicked-prs.ts b/scripts/release/utils/get-unpicked-prs.ts index 6739013d6e24..6b36f5e00f59 100644 --- a/scripts/release/utils/get-unpicked-prs.ts +++ b/scripts/release/utils/get-unpicked-prs.ts @@ -37,7 +37,7 @@ export async function getUnpickedPRs(baseBranch: string, verbose?: boolean): Pro `, { owner: 'storybookjs', - repo: 'monorepo-release-tooling-prototype', + repo: 'storybook', order: { field: 'UPDATED_AT', direction: 'ASC',