From db392f8b81833f66fe31315379ebe7035195de9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20W=C3=BCrbach?= Date: Fri, 3 May 2024 21:48:13 +0200 Subject: [PATCH] chore: fixed release script --- .changeset/dull-worms-clean.md | 7 +++++++ scripts/create-github-release.js | 10 +++++----- scripts/create-release-tag.js | 4 ++-- 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .changeset/dull-worms-clean.md diff --git a/.changeset/dull-worms-clean.md b/.changeset/dull-worms-clean.md new file mode 100644 index 00000000..ae8e44cb --- /dev/null +++ b/.changeset/dull-worms-clean.md @@ -0,0 +1,7 @@ +--- +'@humanitec/backstage-plugin': patch +'@humanitec/backstage-plugin-backend': patch +'@humanitec/backstage-plugin-common': patch +--- + +re-release with fixed release script diff --git a/scripts/create-github-release.js b/scripts/create-github-release.js index b64d7a9c..c5d87e8a 100644 --- a/scripts/create-github-release.js +++ b/scripts/create-github-release.js @@ -53,9 +53,9 @@ if (!BOOL_CREATE_RELEASE) { } const GH_OWNER = 'backstage'; -const GH_REPO = 'backstage'; +const GH_REPO = 'humanitec-backstage-plugins'; const EXPECTED_COMMIT_MESSAGE = /^Merge pull request #(?[0-9]+) from/; -const CHANGESET_RELEASE_BRANCH = 'backstage/changeset-release/master'; +const CHANGESET_RELEASE_BRANCH = 'humanitec-backstage-plugins/changeset-release/main'; // Initialize a GitHub client const octokit = new Octokit({ @@ -95,7 +95,7 @@ async function getCommitUsingTagName(tagName) { } const commitSha = tagData.data.object.sha; console.log( - `The commit for the tag is https://github.com/backstage/backstage/commit/${commitSha}`, + `The commit for the tag is https://github.com/humanitec/humanitec-backstage-plugins/commit/${commitSha}`, ); // Get the commit message using the commit SHA @@ -113,7 +113,7 @@ async function getCommitUsingTagName(tagName) { } // Example Commit Message - // Merge pull request #3555 from backstage/changeset-release/master Version Packages + // Merge pull request #3555 from humanitec-backstage-plugins/changeset-release/main Version Packages return { sha: commitSha, message: commitData.data.message }; } @@ -145,7 +145,7 @@ async function getReleaseDescriptionFromCommit(commit) { // Get the PR description from the commit message const prNumber = commit.message.match(expectedMessage).groups.prNumber; console.log( - `Identified the changeset Pull request - https://github.com/backstage/backstage/pull/${prNumber}`, + `Identified the changeset Pull request - https://github.com/humanitec/humanitec-backstage-plugins/pull/${prNumber}`, ); const { data } = await octokit.pulls.get({ diff --git a/scripts/create-release-tag.js b/scripts/create-release-tag.js index 311b46d4..2f0beb05 100644 --- a/scripts/create-release-tag.js +++ b/scripts/create-release-tag.js @@ -22,8 +22,8 @@ const fs = require('fs-extra'); const { EOL } = require('os'); const baseOptions = { - owner: 'backstage', - repo: 'backstage', + owner: 'humanitec', + repo: 'humanitec-backstage-plugins', }; async function getCurrentReleaseTag() {