diff --git a/.github/workflows/watch.yml b/.github/workflows/watch.yml index 1379ed92..64edecb4 100644 --- a/.github/workflows/watch.yml +++ b/.github/workflows/watch.yml @@ -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', @@ -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',