From 95ad6764d4f40fa4c567ee67826bd015b6aff564 Mon Sep 17 00:00:00 2001 From: Robert Lin Date: Wed, 6 Jul 2022 14:25:13 -0700 Subject: [PATCH] workflows: update pr-auditor workflow (#829) --- .github/workflows/pr-auditor.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-auditor.yml b/.github/workflows/pr-auditor.yml index fa9c2f3fa..3fe422331 100644 --- a/.github/workflows/pr-auditor.yml +++ b/.github/workflows/pr-auditor.yml @@ -1,19 +1,20 @@ +# See https://docs.sourcegraph.com/dev/background-information/ci#pr-auditor name: pr-auditor on: - pull_request: - types: [closed, edited, opened] + pull_request_target: + types: [ closed, edited, opened, synchronize, ready_for_review ] jobs: - run: + check-pr: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - with: { repository: "sourcegraph/sourcegraph" } + with: { repository: 'sourcegraph/sourcegraph' } - uses: actions/setup-go@v2 - with: { go-version: "1.18" } + with: { go-version: '1.18' } - run: ./dev/pr-auditor/check-pr.sh env: GITHUB_EVENT_PATH: ${{ env.GITHUB_EVENT_PATH }} GITHUB_TOKEN: ${{ secrets.CODENOTIFY_GITHUB_TOKEN }} - GITHUB_RUN_URL: https://github.com/sourcegraph/infrastructure/actions/runs/${{ github.run_id }} + GITHUB_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}