From 8c53037d8f668ab9537e3c7faf1963ea39d3c5de Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Mon, 25 Jan 2021 17:41:54 +0800 Subject: [PATCH] fix: sentry issue #CK typo --- src/platforms/GitHub/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/GitHub/index.ts b/src/platforms/GitHub/index.ts index 1f22550..ad1a6e7 100644 --- a/src/platforms/GitHub/index.ts +++ b/src/platforms/GitHub/index.ts @@ -96,7 +96,7 @@ export const GitHub: Platform = { detectedBranchName = DOMHelper.getIssueTitle() } else if ( DOMHelper.isInCodePage() && - URLHelper.parse().type !== 'release' // resolve sentry issue #-CK + !['releases', 'tags'].includes(URLHelper.parse().type || '') // resolve sentry issue #-CK ) { // not working well with non-branch blob // cannot handle '/' split branch name, should not use when possibly on branch page