Skip to content

Commit 3d9d468

Browse files
committed
workflows: log when auto-merge workflow has nothing to do
Release note: None
1 parent f1a5c43 commit 3d9d468

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/auto-merge-backports.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ jobs:
5151
const result = await github.graphql(query);
5252
const prs = result.search.nodes;
5353
54+
if (prs.length === 0) {
55+
console.log('No backport PRs found matching criteria');
56+
} else {
57+
console.log(`Found ${prs.length} backport PR(s) to evaluate`);
58+
}
59+
5460
for (const pr of prs) {
5561
const createdAt = new Date(pr.createdAt);
5662
const isOldEnough = createdAt <= iso24HoursAgo;

0 commit comments

Comments
 (0)