mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
feat: resolve pull id into scope
This commit is contained in:
parent
70981ed72a
commit
6a21e7ce46
1 changed files with 2 additions and 1 deletions
|
|
@ -120,7 +120,8 @@ export const GitHub: Platform = {
|
|||
},
|
||||
resolvePageScope() {
|
||||
if (URLHelper.parse().type === 'releases') return 'releases'
|
||||
if (URLHelper.isInPullPage()) return 'pull'
|
||||
const pullId = URLHelper.isInPullPage()
|
||||
if (pullId) return `pull-${pullId}`
|
||||
return 'general'
|
||||
},
|
||||
async getDefaultBranchName({ userName, repoName }, accessToken) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue