Skip to content

Commit de3762a

Browse files
committed
✨ feat: init project
1 parent 2dcfbfb commit de3762a

19 files changed

+367
-0
lines changed

.commitlintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@lobehub/lint').commitlint;
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: '🐛 反馈缺陷 Bug Report'
2+
description: '反馈一个问题缺陷 | Report an bug'
3+
title: '[Bug] '
4+
labels: '🐛 Bug'
5+
body:
6+
- type: dropdown
7+
attributes:
8+
label: '💻 系统环境 | Operating System'
9+
options:
10+
- Windows
11+
- macOS
12+
- Ubuntu
13+
- Other Linux
14+
- Other
15+
validations:
16+
required: true
17+
- type: dropdown
18+
attributes:
19+
label: '🌐 浏览器 | Browser'
20+
options:
21+
- Chrome
22+
- Edge
23+
- Safari
24+
- Firefox
25+
- Other
26+
validations:
27+
required: true
28+
- type: textarea
29+
attributes:
30+
label: '🐛 问题描述 | Bug Description'
31+
description: A clear and concise description of the bug.
32+
validations:
33+
required: true
34+
- type: textarea
35+
attributes:
36+
label: '🚦 期望结果 | Expected Behavior'
37+
description: A clear and concise description of what you expected to happen.
38+
- type: textarea
39+
attributes:
40+
label: '📷 复现步骤 | Recurrence Steps'
41+
description: A clear and concise description of how to recurrence.
42+
- type: textarea
43+
attributes:
44+
label: '📝 补充信息 | Additional Information'
45+
description: If your problem needs further explanation, or if the issue you're seeing cannot be reproduced in a gist, please add more information here.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: '🌠 功能需求 Feature Request'
2+
description: '需求或建议 | Suggest an idea'
3+
title: '[Request] '
4+
labels: '🌠 Feature Request'
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: '🥰 需求描述 | Feature Description'
9+
description: Please add a clear and concise description of the problem you are seeking to solve with this feature request.
10+
validations:
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: '🧐 解决方案 | Proposed Solution'
15+
description: Describe the solution you'd like in a clear and concise manner.
16+
validations:
17+
required: true
18+
- type: textarea
19+
attributes:
20+
label: '📝 补充信息 | Additional Information'
21+
description: Add any other context about the problem here.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: '😇 疑问或帮助 Help Wanted'
2+
description: '疑问或需要帮助 | Need help'
3+
title: '[Question] '
4+
labels: '😇 Help Wanted'
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: '🧐 问题描述 | Proposed Solution'
9+
description: A clear and concise description of the proplem.
10+
validations:
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: '📝 补充信息 | Additional Information'
15+
description: Add any other context about the problem here.

.github/ISSUE_TEMPLATE/other.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: '📝 其他 Other'
3+
about: '其他问题 | Other issues'
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---

.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: 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: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Contributor Helper
2+
3+
on:
4+
schedule: [{ cron: '0 18 * * *' }]
5+
workflow_dispatch:
6+
jobs:
7+
contributor:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
12+
- uses: actions-cool/contributor-helper@v1
13+
with:
14+
token: ${{ secrets.GH_TOKEN }}
15+
style: 'simple'
16+
update-files: 'README.md'
17+
update-places: '<!-- CONTRIBUTION GROUP -->/<!-- CONTRIBUTION END -->'
18+
19+
- name: Commit and push if changed
20+
run: |-
21+
git diff
22+
git config --global user.name "lobehubbot"
23+
git config --global user.email "[email protected]"
24+
git pull
25+
git add -A
26+
git commit -m "🤖 docs: Auto update contributors" || exit 0
27+
git push
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Issue Check Inactive
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 */15 * *'
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
issue-check-inactive:
12+
permissions:
13+
issues: write # for actions-cool/issues-helper to update issues
14+
pull-requests: write # for actions-cool/issues-helper to update PRs
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: check-inactive
18+
uses: actions-cool/issues-helper@v3
19+
with:
20+
actions: 'check-inactive'
21+
inactive-label: 'Inactive'
22+
inactive-day: 30
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Issue Close Require
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
issue-close-require:
12+
permissions:
13+
issues: write # for actions-cool/issues-helper to update issues
14+
pull-requests: write # for actions-cool/issues-helper to update PRs
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: need reproduce
18+
uses: actions-cool/issues-helper@v3
19+
with:
20+
actions: 'close-issues'
21+
labels: '✅ Fixed'
22+
inactive-day: 3
23+
body: |
24+
Since the issue was labeled with `✅ Fixed`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
25+
26+
由于该 issue 被标记为已修复,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
27+
- name: need reproduce
28+
uses: actions-cool/issues-helper@v3
29+
with:
30+
actions: 'close-issues'
31+
labels: '🤔 Need Reproduce'
32+
inactive-day: 3
33+
body: |
34+
Since the issue was labeled with `🤔 Need Reproduce`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
35+
36+
由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
37+
- name: need reproduce
38+
uses: actions-cool/issues-helper@v3
39+
with:
40+
actions: 'close-issues'
41+
labels: "🙅🏻‍♀️ WON'T DO"
42+
inactive-day: 3
43+
body: |
44+
Since the issue was labeled with `🙅🏻‍♀️ WON'T DO`, and no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
45+
46+
由于该 issue 被标记为暂不处理,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

0 commit comments

Comments
 (0)