mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-11 17:41:26 -06:00
Check if triggering PR is in triggered set only if triggered pr exists (otherwise is master sync)
This commit is contained in:
parent
392d775095
commit
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(", ")}`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user