Skip to content

Commit ce2cd3a

Browse files
committed
update
1 parent e0d69eb commit ce2cd3a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/actions/list-pr/action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ runs:
4949
? input_labels.split(/[,\n]/).map(label => label.trim())
5050
: [];
5151
52+
core.info(`timeRange: ${timeRange}`);
53+
core.info(`sinceTime: ${sinceTime}`);
54+
core.info(`labels: ${labels}`);
55+
core.info(`resp: ${resp.data}`);
56+
5257
const prs = resp.data.filter(pr => {
5358
const hasLabel = labels.length === 0
5459
|| labels.every(label => pr.labels.some(prLabel => prLabel.name === label));
@@ -59,8 +64,10 @@ runs:
5964
return hasLabel && isWithinTimeRange;
6065
});
6166
62-
const pr_urls = prs.map(pr => pr.html_url);
63-
core.info(`prs: ${pr_urls.join(",\n")}`);
67+
if (prs.length > 0) {
68+
const pr_urls = prs.map(pr => pr.html_url);
69+
core.info(`prs: ${pr_urls.join(",\n")}`);
70+
}
6471
6572
return prs.map(pr => ({
6673
number: pr.number,

0 commit comments

Comments
 (0)