Skip to content

Commit

Permalink
Fix octokit calls to correctly use new object definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rathpc committed Jan 18, 2024
1 parent 45aba8b commit 25a04f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -37,7 +37,7 @@ async function setup() {
throw "GitHub token must be provided in order to get the latest version of the CLI."
}
const octokit = github.getOctokit(githubToken)
const release = await octokit.repos.getLatestRelease({
const release = await octokit.rest.repos.getLatestRelease({
owner: "nemerosa",
repo: "ontrack-cli"
})
Expand Down

0 comments on commit 25a04f6

Please sign in to comment.