From e5cc08a45eb6a7d752cf36a5a74bc943cef07d1a Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Sun, 24 Jan 2021 13:12:06 +0800 Subject: [PATCH] fix: sentry issue #CK --- src/platforms/GitHub/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/platforms/GitHub/index.ts b/src/platforms/GitHub/index.ts index 9aba232..1f22550 100644 --- a/src/platforms/GitHub/index.ts +++ b/src/platforms/GitHub/index.ts @@ -94,7 +94,10 @@ export const GitHub: Platform = { let detectedBranchName if (URLHelper.isInPullPage()) { detectedBranchName = DOMHelper.getIssueTitle() - } else if (DOMHelper.isInCodePage()) { + } else if ( + DOMHelper.isInCodePage() && + URLHelper.parse().type !== 'release' // resolve sentry issue #-CK + ) { // not working well with non-branch blob // cannot handle '/' split branch name, should not use when possibly on branch page detectedBranchName = DOMHelper.getCurrentBranch() || URLHelper.parseSHA()