Skip to content

Commit

Permalink
checklist for drafts
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Florentine <[email protected]>
  • Loading branch information
jflo committed Nov 16, 2023
1 parent f28f112 commit 792ab65
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pr-checklist-on-draft.yml
Original file line number Diff line number Diff line change
@@ -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-
})

0 comments on commit 792ab65

Please sign in to comment.