Commit 3fc5bdf
Short-circuit findOpenPr after first matching PR is found
Avoid unnecessary GitHub API calls by returning immediately when a PR
is found from the first matching headSelector, instead of iterating
through all selectors and discarding the results.
Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>1 parent 9f22fc7 commit 3fc5bdf
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
532 | | - | |
533 | 531 | | |
534 | 532 | | |
535 | 533 | | |
| |||
538 | 536 | | |
539 | 537 | | |
540 | 538 | | |
541 | | - | |
| 539 | + | |
542 | 540 | | |
543 | 541 | | |
544 | 542 | | |
545 | 543 | | |
546 | 544 | | |
547 | 545 | | |
548 | 546 | | |
549 | | - | |
| 547 | + | |
550 | 548 | | |
551 | 549 | | |
552 | 550 | | |
553 | | - | |
554 | | - | |
| 551 | + | |
555 | 552 | | |
556 | 553 | | |
557 | 554 | | |
| |||
0 commit comments