From 792ab6511ebf67bcc0246b94baebbd560d8c4730 Mon Sep 17 00:00:00 2001 From: Justin Florentine Date: Fri, 25 Aug 2023 14:50:15 -0400 Subject: [PATCH] checklist for drafts Signed-off-by: Justin Florentine --- .github/workflows/pr-checklist-on-draft.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pr-checklist-on-draft.yml 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- + })