Skip to content

Commit 73ab2af

Browse files
bobheadxiSourcegraph
andauthored
workflows: add pr-auditor and test plans to PR templates (#14)
* workflows: add pr-auditor and test plans to PR templates * Update .tool-versions * Update .prettierignore Co-authored-by: Sourcegraph <batch-changes@sourcegraph.com>
1 parent 9269a58 commit 73ab2af

4 files changed

Lines changed: 30 additions & 0 deletions

File tree

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 9 additions & 0 deletions
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‎

Lines changed: 19 additions & 0 deletions
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 }}

‎.prettierignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ lib/
66
dist/
77
package.json
88
package-lock.json
9+
.github/

‎.tool-versions‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
python system
22
yarn 1.22.11
3+
nodejs 16.7.0

0 commit comments

Comments
 (0)