File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 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));
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,
You can’t perform that action at this time.
0 commit comments