diff --git a/.github/workflows/pr-checklist-on-draft.yml b/.github/workflows/pr-checklist-on-draft.yml new file mode 100644 index 00000000000..69421e19e06 --- /dev/null +++ b/.github/workflows/pr-checklist-on-draft.yml @@ -0,0 +1,21 @@ +name: "comment on pr with checklist" +on: + pull_request_target: + types: [ converted_to_draft ] + branches: [ main ] +jobs: + checklist: + name: "add checklist as a comment on newly opened PRs" + runs-on: [besu,Linux,self-hosted,nodocker] + 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 running CI.\n- + [ ] If I didn't run CI, I ran as much locally as possible before pushing.\n- + })