Skip to content

Commit

Permalink
Fix github-script to v5 (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
wata727 committed Oct 14, 2021
1 parent 311e5c1 commit 35e87f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/watch.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const issues = await github.issues.listForRepo({
const issues = await github.rest.issues.listForRepo({
owner: 'terraform-linters',
repo: 'tflint-ruleset-azurerm',
state: 'open',
Expand All @@ -38,7 +38,7 @@ jobs:
return
}
github.issues.create({
github.rest.issues.create({
owner: 'terraform-linters',
repo: 'tflint-ruleset-azurerm',
title: '🤖 MicrosoftDocs/azure-docs Changes Report',
Expand Down

0 comments on commit 35e87f2

Please sign in to comment.