mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: prevent redundant requests for PR
This commit is contained in:
parent
3323477b07
commit
72ebbb2047
1 changed files with 2 additions and 1 deletions
|
|
@ -98,7 +98,8 @@ export const init: BoundMethodCreator = dispatch => async () => {
|
|||
if (
|
||||
!detectedBranchName &&
|
||||
projectDefaultBranchName &&
|
||||
projectDefaultBranchName !== metaData.branchName
|
||||
projectDefaultBranchName !== metaData.branchName &&
|
||||
metaData.type !== 'pull'
|
||||
) {
|
||||
// Accessing repository's non-homepage(no branch name in URL, nor in DOM)
|
||||
// We predicted its default branch to be 'master' and sent aggressive request
|
||||
|
|
|
|||
Loading…
Reference in a new issue