diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 74a1cdcc57..11bac0fb92 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -5,17 +5,4 @@ ## Fixed Issue(s) - - -## Documentation - -- [ ] I thought about documentation and added the `doc-change-required` label to this PR if - [updates are required](https://wiki.hyperledger.org/display/BESU/Documentation). - -## Acceptance Tests (Non Mainnet) - -- [ ] I have considered running `./gradlew acceptanceTestNonMainnet` locally if my PR affects non-mainnet modules. - -## Changelog - -- [ ] I thought about the changelog and included a [changelog update if required](https://wiki.hyperledger.org/display/BESU/Changelog). \ No newline at end of file + \ No newline at end of file diff --git a/.github/workflows/pr-checklist-on-open.yml b/.github/workflows/pr-checklist-on-open.yml new file mode 100644 index 0000000000..24be387f0d --- /dev/null +++ b/.github/workflows/pr-checklist-on-open.yml @@ -0,0 +1,20 @@ +name: "comment on pr with checklist" +on: + pull_request_target: + types: [ opened ] + branches: [ main ] +jobs: + checklist: + name: "add checklist as a comment on newly opened PRs" + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v5 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: '- [ ] I thought about documentation and added the `doc-change-required` label to this PR if [updates are required](https://wiki.hyperledger.org/display/BESU/Documentation).\n- [ ] I have considered running `./gradlew acceptanceTestNonMainnet` locally if my PR affects non-mainnet modules.\n- [ ] I thought about the changelog and included a [changelog update if required](https://wiki.hyperledger.org/display/BESU/Changelog).' + }) \ No newline at end of file