mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: sentry issue #CK
This commit is contained in:
parent
d0dba1975d
commit
e5cc08a45e
1 changed files with 4 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue