-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.