diff --git a/.github/workflows/deploy-PROD-slim.yml b/.github/workflows/deploy-PROD-slim.yml index 668d06104c2..529b7ee38e8 100644 --- a/.github/workflows/deploy-PROD-slim.yml +++ b/.github/workflows/deploy-PROD-slim.yml @@ -133,7 +133,7 @@ jobs: # https://octokit.github.io/rest.js/v18#issues-create github-token: ${{secrets.GITHUB_TOKEN}} script: | - const create = await github.issues.create({ + const create = await github.api.issues.create({ owner: context.repo.owner, repo: context.repo.repo, title: "Failed to deploy to production", @@ -152,7 +152,7 @@ jobs: # https://octokit.github.io/rest.js/v18#issues-create github-token: ${{secrets.GITHUB_TOKEN}} script: | - github.issues.addAssignees({ + github.api.issues.addAssignees({ owner: context.repo.owner, repo: context.repo.repo, issue_number: "${{ steps.create-issue.outputs.result }}", diff --git a/.github/workflows/deploy-PROD-standard.yml b/.github/workflows/deploy-PROD-standard.yml index 379b96e772b..6cdab04f74e 100644 --- a/.github/workflows/deploy-PROD-standard.yml +++ b/.github/workflows/deploy-PROD-standard.yml @@ -133,7 +133,7 @@ jobs: # https://octokit.github.io/rest.js/v18#issues-create github-token: ${{secrets.GITHUB_TOKEN}} script: | - const create = await github.issues.create({ + const create = await github.api.issues.create({ owner: context.repo.owner, repo: context.repo.repo, title: "Failed to deploy to production", @@ -152,7 +152,7 @@ jobs: # https://octokit.github.io/rest.js/v18#issues-create github-token: ${{secrets.GITHUB_TOKEN}} script: | - github.issues.addAssignees({ + github.api.issues.addAssignees({ owner: context.repo.owner, repo: context.repo.repo, issue_number: "${{ steps.create-issue.outputs.result }}", diff --git a/.github/workflows/deploy-RELEASE-slim.yml b/.github/workflows/deploy-RELEASE-slim.yml index d0e1a86e00d..5ea1bb95e5a 100644 --- a/.github/workflows/deploy-RELEASE-slim.yml +++ b/.github/workflows/deploy-RELEASE-slim.yml @@ -167,7 +167,7 @@ jobs: # https://octokit.github.io/rest.js/v18#issues-create github-token: ${{secrets.GITHUB_TOKEN}} script: | - const create = await github.issues.create({ + const create = await github.api.issues.create({ owner: context.repo.owner, repo: context.repo.repo, title: "Failed to deploy release to production", @@ -186,7 +186,7 @@ jobs: # https://octokit.github.io/rest.js/v18#issues-create github-token: ${{secrets.GITHUB_TOKEN}} script: | - github.issues.addAssignees({ + github.apiissues.addAssignees({ owner: context.repo.owner, repo: context.repo.repo, issue_number: "${{ steps.create-issue.outputs.result }}", diff --git a/.github/workflows/deploy-RELEASE-standard.yml b/.github/workflows/deploy-RELEASE-standard.yml index f6f3d3c1db6..082fdd74df4 100644 --- a/.github/workflows/deploy-RELEASE-standard.yml +++ b/.github/workflows/deploy-RELEASE-standard.yml @@ -167,7 +167,7 @@ jobs: # https://octokit.github.io/rest.js/v18#issues-create github-token: ${{secrets.GITHUB_TOKEN}} script: | - const create = await github.issues.create({ + const create = await github.api.issues.create({ owner: context.repo.owner, repo: context.repo.repo, title: "Failed to deploy release to production", @@ -186,7 +186,7 @@ jobs: # https://octokit.github.io/rest.js/v18#issues-create github-token: ${{secrets.GITHUB_TOKEN}} script: | - github.issues.addAssignees({ + github.api.issues.addAssignees({ owner: context.repo.owner, repo: context.repo.repo, issue_number: "${{ steps.create-issue.outputs.result }}", diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 3523e8f9f48..6c98a731994 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -53,7 +53,7 @@ jobs: uses: actions/github-script@v5 with: script: | - github.issues.removeLabel({ + github.rest.issues.removeLabel({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,