diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ca0cd35a0..318f6ffcc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -98,11 +98,17 @@ jobs: head: "${{ github.ref }}" }); - const pullRequests = commits.map((commit) => { + const pullRequests = []; + + for (const commit of commits) { const { data: response } = await octokit.request(`GET /repos/shopify/ruby-lsp/commits/${commit.sha}/pulls`); - { title: response.title, url: response.html_url, labels: response.labels.map((label) => label.name) } - }); + pullRequests.push({ + title: response.title, + url: response.html_url, + labels: response.labels.map((label) => label.name) + }); + } const relevantPulls = pullRequests.filter((pull) => { return pull.labels.some((label) => label === "vscode") && diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d47d58614..9dd6fe05d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,11 +32,17 @@ jobs: head: "${{ github.ref }}" }); - const pullRequests = commits.map((commit) => { + const pullRequests = []; + + for (const commit of commits) { const { data: response } = await octokit.request(`GET /repos/shopify/ruby-lsp/commits/${commit.sha}/pulls`); - { title: response.title, url: response.html_url, labels: response.labels.map((label) => label.name) } - }); + pullRequests.push({ + title: response.title, + url: response.html_url, + labels: response.labels.map((label) => label.name) + }); + } const relevantPulls = pullRequests.filter((pull) => { return pull.labels.some((label) => label === "server") &&