Skip to content

Commit

Permalink
workflows: add pr-auditor and test plans to PR templates (#34)
Browse files Browse the repository at this point in the history
Co-authored-by: Sourcegraph <batch-changes@sourcegraph.com>
  • Loading branch information
bobheadxi and Sourcegraph committed Feb 28, 2022
1 parent 3bcff3f commit d6f138c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Test plan

<!--
As part of SOC2/GN-104 and SOC2/GN-105 requirements, all pull requests are REQUIRED to
provide a "test plan". A test plan is a loose explanation of what you have done or
implemented to test this, as outlined in our Testing principles and guidelines:
https://docs.sourcegraph.com/dev/background-information/testing_principles
Write your test plan here after the "Test plan" header.
-->
19 changes: 19 additions & 0 deletions .github/workflows/pr-auditor.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit d6f138c

Please sign in to comment.