Skip to content

Commit

Permalink
add pr checklist
Browse files Browse the repository at this point in the history
  • Loading branch information
zk-steve committed Dec 1, 2023
1 parent 8709fca commit ed84fdb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/auto_create_pr_checklist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Auto Create PR Checklist

on:
pull_request:
types:
- opened

jobs:
create_checklist:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Create PR Checklist
run: |
echo "- [ ] Did you check your grammar / reader proof your document using ChatGPT?" >> $GITHUB_WORKSPACE/$GITHUB_EVENT_NAME.md
echo "- [ ] After merging this, please update your task status!" >> $GITHUB_WORKSPACE/$GITHUB_EVENT_NAME.md
- name: Commit and Push Changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add $GITHUB_EVENT_NAME.md
git commit -m "Add checklist to PR description" -a
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Empty file added .gitignore
Empty file.

0 comments on commit ed84fdb

Please sign in to comment.