Check if triggering PR is in triggered set only if triggered pr exists (otherwise is master sync)
This commit is contained in:
Родитель
392d775095
Коммит
1479bb6bc8
|
@ -18,7 +18,7 @@ async function main() {
|
|||
if (!prnums.length) {
|
||||
return; // No enlisted PRs, nothing to update
|
||||
}
|
||||
if (!prnums.some(n => n === triggeredPR)) {
|
||||
if (triggeredPR && !prnums.some(n => n === triggeredPR)) {
|
||||
return; // Only have work to do for enlisted PRs
|
||||
}
|
||||
console.log(`Performing experimental branch updating and merging for pull requests ${prnums.join(", ")}`);
|
||||
|
|
Загрузка…
Ссылка в новой задаче