From 93ba7f9d8f7e2336dc4e94dce5a3a3851561a54c Mon Sep 17 00:00:00 2001 From: Robert Lin Date: Mon, 7 Mar 2022 09:52:18 -0800 Subject: [PATCH] workflows: add pr-auditor and test plans to PR templates (#147) Co-authored-by: Sourcegraph --- .github/PULL_REQUEST_TEMPLATE.md | 9 +++++++++ .github/workflows/pr-auditor.yml | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/pr-auditor.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000..a47c1642f --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,9 @@ +### Test plan + + diff --git a/.github/workflows/pr-auditor.yml b/.github/workflows/pr-auditor.yml new file mode 100644 index 000000000..3edc2741b --- /dev/null +++ b/.github/workflows/pr-auditor.yml @@ -0,0 +1,19 @@ +name: pr-auditor +on: + pull_request: + types: [ closed, edited, opened ] + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: { repository: 'sourcegraph/sourcegraph' } + - uses: actions/setup-go@v2 + with: { go-version: '1.17' } + + - 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 }}