From f59c1ee9bc2fa9a2c4b2143efae322eccc2f302a Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 14 Dec 2018 01:53:46 +0100 Subject: [PATCH] build: print url to commits if staging script fails due to failing status (#14509) * Based on a recent chat with Miles, it would be good if we default the `Is pre-release?` question to `false` and also print an URL if the status checks for a given branch fail (this should be just more convenient to see what failed) --- tools/release/git/github-urls.ts | 4 ++++ tools/release/prompt/new-version-prompt.ts | 1 + tools/release/stage-release.ts | 9 +++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 tools/release/git/github-urls.ts diff --git a/tools/release/git/github-urls.ts b/tools/release/git/github-urls.ts new file mode 100644 index 00000000000..3c02817ea99 --- /dev/null +++ b/tools/release/git/github-urls.ts @@ -0,0 +1,4 @@ +/** Gets a Github URL that refers to a lists of recent commits within a specified branch. */ +export function getGithubBranchCommitsUrl(owner: string, repository: string, branchName: string) { + return `https://github.com/${owner}/${repository}/commits/${branchName}`; +} diff --git a/tools/release/prompt/new-version-prompt.ts b/tools/release/prompt/new-version-prompt.ts index 22f2f2d6687..8be1183da85 100644 --- a/tools/release/prompt/new-version-prompt.ts +++ b/tools/release/prompt/new-version-prompt.ts @@ -50,6 +50,7 @@ export async function promptForNewVersion(currentVersion: Version): Promise