Skip to content

Commit

Permalink
fix(KEEP-928): use 2nd last tag instead of latest
Browse files Browse the repository at this point in the history
  • Loading branch information
faergeek committed Nov 17, 2022
1 parent 8a58891 commit a5d9a9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' };
Expand Down

0 comments on commit a5d9a9a

Please sign in to comment.