File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,15 @@ jobs:
3434 uses : actions/github-script@v7
3535 with :
3636 script : |
37- const fixedList = "${{ steps.parse-commit.outputs.fixed_list }}".split(' ');
37+ const fixedList = "${{ steps.parse-commit.outputs.fixed_list }}".split(' ').filter(Boolean) ;
3838
3939 console.debug( fixedList );
4040
4141 let relatedPRs = [];
4242
43- for (const value of fixedList) {
44- const query = 'is:pr is:open repo:WordPress/wordpress-develop in:body https://core.trac.wordpress.org/ticket/' + value;
43+ for (const ticket of fixedList) {
44+ console.log( ticket );
45+ const query = 'is:pr is:open repo:WordPress/wordpress-develop in:body https://core.trac.wordpress.org/ticket/' + ticket;
4546 const result = await github.rest.search.issuesAndPullRequests({ q: query });
4647
4748 relatedPRs = relatedPRs.concat(result.data.items.map(pr => ({
You can’t perform that action at this time.
0 commit comments