diff --git a/build/index.js b/build/index.js index 8fb3862..d513fb1 100644 --- a/build/index.js +++ b/build/index.js @@ -20014,9 +20014,9 @@ async function run() { const tags = await octokit.rest.repos.listTags({ owner, repo, - per_page: 1 + per_page: 2 }); - const issues = await getAllIssuesSince(tags.data[0].name); + const issues = await getAllIssuesSince(tags.data[1].name); const url = `${hooksUrl}/${hookRelease}`; const headers = { "Content-Type": "application/json" }; const body = JSON.stringify({ component, issues, releaseVersion }); diff --git a/src/index.ts b/src/index.ts index a409834..b86ac94 100644 --- a/src/index.ts +++ b/src/index.ts @@ -78,10 +78,10 @@ async function run() { const tags = await octokit.rest.repos.listTags({ owner, repo, - per_page: 1, + per_page: 2, }); - const issues = await getAllIssuesSince(tags.data[0].name); + const issues = await getAllIssuesSince(tags.data[1].name); const url = `${hooksUrl}/${hookRelease}`; const headers = { 'Content-Type': 'application/json' };