mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 12:42:09 -05:00
Fix calling GitHub API (github.api.~ -> github.rest.~) (#2116)
This commit is contained in:
parent
897185a4aa
commit
e0790b4835
4 changed files with 8 additions and 8 deletions
4
.github/workflows/deploy-PROD-slim.yml
vendored
4
.github/workflows/deploy-PROD-slim.yml
vendored
|
@ -133,7 +133,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const create = await github.api.issues.create({
|
||||
const create = await github.rest.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.api.issues.addAssignees({
|
||||
github.rest.issues.addAssignees({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: "${{ steps.create-issue.outputs.result }}",
|
||||
|
|
4
.github/workflows/deploy-PROD-standard.yml
vendored
4
.github/workflows/deploy-PROD-standard.yml
vendored
|
@ -133,7 +133,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const create = await github.api.issues.create({
|
||||
const create = await github.rest.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.api.issues.addAssignees({
|
||||
github.rest.issues.addAssignees({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: "${{ steps.create-issue.outputs.result }}",
|
||||
|
|
4
.github/workflows/deploy-RELEASE-slim.yml
vendored
4
.github/workflows/deploy-RELEASE-slim.yml
vendored
|
@ -167,7 +167,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const create = await github.api.issues.create({
|
||||
const create = await github.rest.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.apiissues.addAssignees({
|
||||
github.rest.issues.addAssignees({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: "${{ steps.create-issue.outputs.result }}",
|
||||
|
|
|
@ -167,7 +167,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const create = await github.api.issues.create({
|
||||
const create = await github.rest.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.api.issues.addAssignees({
|
||||
github.rest.issues.addAssignees({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: "${{ steps.create-issue.outputs.result }}",
|
||||
|
|
Loading…
Reference in a new issue