From 1049827a39d20b68f69a7f120883f279ca2d3c18 Mon Sep 17 00:00:00 2001 From: Guy Senpai Date: Thu, 2 Nov 2023 16:14:11 +0100 Subject: [PATCH] fix(core): could not determine Github repo slug when run `nx release changelog` on Github action workflow closed #19998 --- .../nx/src/command-line/graph}/client/src/assets/.gitkeep | 0 packages/nx/src/command-line/release/utils/github.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename {graph => packages/nx/src/command-line/graph}/client/src/assets/.gitkeep (100%) diff --git a/graph/client/src/assets/.gitkeep b/packages/nx/src/command-line/graph/client/src/assets/.gitkeep similarity index 100% rename from graph/client/src/assets/.gitkeep rename to packages/nx/src/command-line/graph/client/src/assets/.gitkeep diff --git a/packages/nx/src/command-line/release/utils/github.ts b/packages/nx/src/command-line/release/utils/github.ts index 26011e566a3034..adc19676584bf7 100644 --- a/packages/nx/src/command-line/release/utils/github.ts +++ b/packages/nx/src/command-line/release/utils/github.ts @@ -38,7 +38,7 @@ export function getGitHubRepoSlug(remoteName = 'origin'): RepoSlug { }).trim(); // Extract the 'user/repo' part from the URL - const regex = /github\.com[/:]([\w-]+\/[\w-]+)\.git/; + const regex = /github\.com[/:]([\w-]+\/[\w-]+)/; const match = remoteUrl.match(regex); if (match && match[1]) {