Modify PR template and document that tests are required (#49331)
* Update PULL_REQUEST_TEMPLATE.md to include a checklist item for adding/updating tests Added a new checklist item to the pull request template for contributors to confirm they have added or updated relevant tests (E2E, Unit, Integration, etc.) to ensure their fix or feature works as intended. This helps maintain the quality and reliability of the codebase by encouraging thorough testing. * Update workflow to request reviewers to check test coverage along with testing instructions Modified the review-testing-instructions workflow to enhance the review process by asking reviewers to not only review the testing instructions but also verify that relevant tests (E2E, Unit, Integration, etc.) have been added or updated as needed. This change ensures a more thorough review process and helps maintain high code quality. * Update action name * Remove changes from Template
This commit is contained in:
parent
dd411f53e4
commit
aa5d9debbf
|
@ -1,4 +1,4 @@
|
|||
name: Remind reviewers to also review the testing instructions.
|
||||
name: Remind reviewers to also review the testing instructions and test coverage
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [review_requested]
|
||||
|
@ -51,7 +51,7 @@ jobs:
|
|||
comment-author: 'github-actions[bot]'
|
||||
body-includes: please make sure to review the testing instructions
|
||||
|
||||
- name: Create or update PR comment asking for reviewers to review the testing instructions
|
||||
- name: Create or update PR comment asking for reviewers to review the testing instructions and test coverage
|
||||
uses: peter-evans/create-or-update-comment@67dcc547d311b736a8e6c5c236542148a47adc3d
|
||||
with:
|
||||
comment-id: ${{ steps.find-comment.outputs.comment-id }}
|
||||
|
@ -59,7 +59,7 @@ jobs:
|
|||
body: |
|
||||
Hi ${{ env.REVIEWERS }}, ${{ env.TEAMS }}
|
||||
|
||||
Apart from reviewing the code changes, please make sure to review the testing instructions as well.
|
||||
Apart from reviewing the code changes, please make sure to review the testing instructions and verify that relevant tests (E2E, Unit, Integration, etc.) have been added or updated as needed.
|
||||
|
||||
You can follow this guide to find out what good testing instructions should look like:
|
||||
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions
|
||||
|
|
Loading…
Reference in New Issue