From 87e7e36e66c5661f2a4963c1df4fd14e8a2d440b Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 4 Apr 2024 12:49:06 +0200 Subject: [PATCH] chore: open the PR in browser Signed-off-by: blam --- scripts/patch-release-for-pr.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/patch-release-for-pr.js b/scripts/patch-release-for-pr.js index c450743799..04bfe4284e 100755 --- a/scripts/patch-release-for-pr.js +++ b/scripts/patch-release-for-pr.js @@ -169,9 +169,11 @@ async function main(args) { body: 'This release fixes an issue where', title: `Patch release of ${prNumbers.map(nr => `#${nr}`).join(', ')}`, }); - console.log( - `https://github.com/backstage/backstage/compare/${patchBranch}...${branchName}?${params}`, - ); + + const url = `https://github.com/backstage/backstage/compare/${patchBranch}...${branchName}?${params}`; + console.log(`Opening ${url} ...`); + + await run('open', url); } main(process.argv.slice(2)).catch(error => {