mirror of https://github.com/hyperledger/besu
[GHA] Checklist action (#5225)
This GHA will add the checklist that's currently in the PR template, as a comment, on newly opened PRs. Because it needs write access (to add the comment), it needs to run on the `pull_request_target` action, which means you won't see the outcome on _this_ PR, but only once it's merged in, you'll see it on subsequent PRs - example - https://github.com/daisy-row/vigilant-octo-umbrella/pull/51 --------- Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>pull/5231/head
parent
d736203a9d
commit
57df469e0e
@ -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).' |
||||
}) |
Loading…
Reference in new issue