Skip to content

Commit 15ac439

Browse files
committed
✨ feat: Add contributor-helper workflow and PR template
1 parent de92198 commit 15ac439

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#### 💻 变更类型 | Change Type
2+
3+
<!-- For change type, change [ ] to [x]. -->
4+
5+
- \[ ] ✨ feat
6+
- \[ ] 🐛 fix
7+
- \[ ] 💄 style
8+
- \[ ] 🔨 chore
9+
- \[ ] 📝 docs
10+
11+
#### 🔀 变更说明 | Description of Change
12+
13+
<!-- Thank you for your Pull Request. Please provide a description above. -->
14+
15+
#### 📝 补充信息 | Additional Information
16+
17+
<!-- Add any other context about the Pull Request here. -->
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Contributor Helper
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
contributor:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
13+
- uses: actions-cool/contributor-helper@v1
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}
16+
style: 'simple'
17+
update-files: 'README.md'
18+
update-places: '<!-- CONTRIBUTION GROUP -->/<!-- CONTRIBUTION END -->'
19+
20+
- name: Commit and push if changed
21+
run: |-
22+
git diff
23+
git config --global user.email "actions@github.com"
24+
git config --global user.name "github-actions"
25+
git pull
26+
git add -A
27+
git commit -m "🤖 docs: Auto update contributors" || exit 0
28+
git push

0 commit comments

Comments
 (0)