Skip to content

Commit

Permalink
update octokit definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickedqvist committed Jun 10, 2021
1 parent dd69576 commit 7b2aea0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Basic Usage
```yaml
steps:
- name: Waiting for 200 from the Vercel Preview
uses: patrickedqvist/wait-for-vercel-preview@v1.1.0
uses: patrickedqvist/wait-for-vercel-preview@v1.1.1
id: waitFor200
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const waitForStatus = async ({

for (let i = 0; i < iterations; i++) {
try {
const statuses = await octokit.repos.listDeploymentStatuses({
const statuses = await octokit.rest.repos.listDeploymentStatuses({
owner,
repo,
deployment_id
Expand Down Expand Up @@ -92,7 +92,7 @@ const run = async () => {
}

// Get information about the pull request
const currentPR = await octokit.pulls.get({
const currentPR = await octokit.rest.pulls.get({
owner,
repo,
pull_number: PR_NUMBER
Expand All @@ -106,7 +106,7 @@ const run = async () => {
const prSHA = currentPR.data.head.sha

// Get deployments associated with the pull request
const deployments = await octokit.repos.listDeployments({
const deployments = await octokit.rest.repos.listDeployments({
owner,
repo,
sha: prSHA,
Expand Down
2 changes: 1 addition & 1 deletion node_modules/.package-lock.json

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

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wait-for-vercel-preview",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 7b2aea0

Please sign in to comment.