-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: add pr-auditor and test plans to PR templates (#147)
Co-authored-by: Sourcegraph <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |