feat: resolve pull id into scope

This commit is contained in:
EnixCoda 2021-04-13 22:38:37 +08:00
parent 70981ed72a
commit 6a21e7ce46
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -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) {