diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 13d6da21..07550885 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -14,20 +14,20 @@ jobs: - uses: actions/checkout@v2 - run: | git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master - - uses: actions/github-script@v1 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const path = require('path') - const { isUsingAlertBlock } = require(path.resolve(process.cwd(), 'scripts/tag-alert-blocks.js')) + # - uses: actions/github-script@v1 + # with: + # github-token: ${{secrets.GITHUB_TOKEN}} + # script: | + # const path = require('path') + # const { isUsingAlertBlock } = require(path.resolve(process.cwd(), 'scripts/tag-alert-blocks.js')) - isUsingAlertBlock().then(ok => { - if (ok) { - github.issues.addLabels({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['review-alert-box'] - }) - } - }) + # isUsingAlertBlock().then(ok => { + # if (ok) { + # github.issues.addLabels({ + # issue_number: context.issue.number, + # owner: context.repo.owner, + # repo: context.repo.repo, + # labels: ['review-alert-box'] + # }) + # } + # })