Skip to content

Commit

Permalink
try fetching things another way
Browse files Browse the repository at this point in the history
  • Loading branch information
craig-day committed Mar 23, 2021
1 parent f985fb9 commit 4b6f7bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function initialTag(tag) {

async function existingTags() {
return await octokit
.paginate(octokit.git.listMatchingRefs, {
.paginate(octokit.git.listMatchingRefs.endpoint.DEFAULTS, {
...requestOpts,
ref: 'tags',
})
Expand All @@ -54,7 +54,7 @@ async function existingTags() {

async function commitsForBranch(branch) {
return await octokit
.paginate(octokit.repos.listCommits, {
.paginate(octokit.repos.listCommits.endpoint.DEFAULTS, {
...requestOpts,
sha: branch,
})
Expand Down

0 comments on commit 4b6f7bc

Please sign in to comment.