You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforce ### Testing section in pull requests and check that the starter instructions were deleted/replaced (#37013)
* Add PR summary validation workflow and documentation.
Added documentation to CONTRIBUTING.md and created
a workflow that enforces a `### Testing` section.
* Fix odd md formatting
---------
Co-authored-by: Andrei Litvin <andreilitvin@google.com>
# body: 'Please make sure to delete starter instructions from your PR summary and replace them with a descriptive summary.'
38
+
# })
39
+
40
+
- name: Fail if PR instructions were not deleted
41
+
if: steps.check-instructions.outcome == 'failure'
42
+
run: |
43
+
python -c 'import sys; print("PR instructions were not replaced"); sys.exit(1)'
44
+
45
+
# - name: Add comment (missing testing)
46
+
# if: steps.check-testing.outcome == 'failure'
47
+
# uses: actions/github-script@v6
48
+
# with:
49
+
# github-token: ${{ secrets.GITHUB_TOKEN }}
50
+
# script: |
51
+
# github.rest.issues.createComment({
52
+
# issue_number: context.issue.number,
53
+
# owner: context.repo.owner,
54
+
# repo: context.repo.repo,
55
+
# body: 'Please add a `### Testing` section to your PR summary describing the testing performed. See https://github.com/project-chip/connectedhomeip/blob/master/CONTRIBUTING.md#pull-requests'
0 commit comments