Skip to content

Commit a8213b1

Browse files
bobheadxiSourcegraph
and
Sourcegraph
authored
workflows: add pr-auditor and test plans to PR templates (#188)
Co-authored-by: Sourcegraph <[email protected]>
1 parent 2794542 commit a8213b1

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Test plan
2+
3+
<!--
4+
As part of SOC2/GN-104 and SOC2/GN-105 requirements, all pull requests are REQUIRED to
5+
provide a "test plan". A test plan is a loose explanation of what you have done or
6+
implemented to test this, as outlined in our Testing principles and guidelines:
7+
https://docs.sourcegraph.com/dev/background-information/testing_principles
8+
Write your test plan here after the "Test plan" header.
9+
-->

.github/workflows/pr-auditor.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: pr-auditor
2+
on:
3+
pull_request:
4+
types: [ closed, edited, opened ]
5+
6+
jobs:
7+
run:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with: { repository: 'sourcegraph/sourcegraph' }
12+
- uses: actions/setup-go@v2
13+
with: { go-version: '1.17' }
14+
15+
- run: ./dev/pr-auditor/check-pr.sh
16+
env:
17+
GITHUB_EVENT_PATH: ${{ env.GITHUB_EVENT_PATH }}
18+
GITHUB_TOKEN: ${{ secrets.CODENOTIFY_GITHUB_TOKEN }}
19+
GITHUB_RUN_URL: https://github.com/sourcegraph/infrastructure/actions/runs/${{ github.run_id }}

0 commit comments

Comments
 (0)