From 17e0833d389becba6771149954565dbe5d3fc06d Mon Sep 17 00:00:00 2001 From: Andy Jeffries Date: Thu, 24 Mar 2022 13:31:52 +0000 Subject: [PATCH] Ignore Heroku URLs when parsing git remotes as they are not-linkable --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index 0c1a753..ff5b170 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,6 +23,10 @@ export default class GitUrls { configInfo.section = section; } + if (/(https?:\/\/)heroku.com\//.exec(configInfo.remoteUrl)) { + continue + } + const url = await this.getUrlAsync(configInfo); urlsMap.set(key, url); }