mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
{ci,workflows}: allow multiple blocking reviews
This commit is contained in:
parent
40728130f1
commit
636fc13366
7 changed files with 192 additions and 63 deletions
|
|
@ -151,11 +151,9 @@ async function checkTargetBranch({ github, context, core, dry }) {
|
|||
core,
|
||||
dry,
|
||||
body,
|
||||
event: 'COMMENT',
|
||||
event: 'REQUEST_CHANGES',
|
||||
reviewKey,
|
||||
})
|
||||
|
||||
throw new Error('This PR is against the wrong branch.')
|
||||
} else if (rebuildsAllTests && !isExemptKernelUpdate) {
|
||||
let branchText
|
||||
if (base === 'master' && maxRebuildCount >= 500) {
|
||||
|
|
@ -179,11 +177,9 @@ async function checkTargetBranch({ github, context, core, dry }) {
|
|||
core,
|
||||
dry,
|
||||
body,
|
||||
event: 'COMMENT',
|
||||
event: 'REQUEST_CHANGES',
|
||||
reviewKey,
|
||||
})
|
||||
|
||||
throw new Error('This PR is against the wrong branch.')
|
||||
} else if (
|
||||
maxRebuildCount >= 500 &&
|
||||
!isExemptKernelUpdate &&
|
||||
|
|
@ -204,7 +200,7 @@ async function checkTargetBranch({ github, context, core, dry }) {
|
|||
core,
|
||||
dry,
|
||||
body,
|
||||
event: 'COMMENT',
|
||||
event: 'REQUEST_CHANGES',
|
||||
reviewKey,
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue