Skip to content

Commit

Permalink
server: improve testmerge worker 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Bizzonium committed Oct 6, 2024
1 parent fe5ba89 commit 5d80864
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/testmerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ jobs:
});
const labeledPRs = [];
for (const pr of pullRequests) {
if (pr.labels.some(label => label.name === label_needed)) {
console.log(`PR ${pr.title}`);
console.log(`PR ${pr.title}`);
const labelCheck = pr.labels.some(label => {
console.log(`Label ${label.name}`);
return label.name === label_needed;
});
if (labelCheck) {
const { data: status } = await github.rest.repos.getCombinedStatusForRef({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 5d80864

Please sign in to comment.