-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add automatic management for issues (#3291)
- Loading branch information
Showing
4 changed files
with
138 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,17 @@ | ||
name: Issue Mark Duplicate | ||
|
||
on: | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
jobs: | ||
mark-duplicate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: mark-duplicate | ||
uses: actions-cool/issues-helper@v2 | ||
with: | ||
actions: 'mark-duplicate' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
duplicate-labels: "🔄 Duplicate" | ||
close-issue: true |
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,57 @@ | ||
name: Issue Labeled | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
issue-labeled: | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PR Welcome | ||
if: github.event.label.name == '❤️ PR Welcome' || github.event.label.name == '🙏 Help wanted' | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'create-comment' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
我们完全同意该提议/反馈,欢迎直接在此仓库创建 Pull Request 来解决这个问题。贡献前请务必阅读[贡献指南](https://github.com/arco-design/arco-design-vue/blob/main/CONTRIBUTING.zh-CN.md),Pull Request 时根据需改动内容填写[预设模板](https://github.com/arco-design/arco-design-vue/blob/main/.github/PULL_REQUEST_TEMPLATE.md),我们会尽快进行 Review,感谢您的贡献! | ||
We agree with this suggestion/feedback and welcome to create a Pull Request in this repository to help address the issue. Before contributing, please make sure to read the [Contributing Guide](https://github.com/arco-design/arco-design-vue/blob/main/CONTRIBUTING.md). When submitting a Pull Request, kindly use the appropriate [PR template](https://github.com/arco-design/arco-design-vue/blob/main/.github/PULL_REQUEST_TEMPLATE.md) based on the changes you’re making. We’ll review it as soon as possible. Thank you for your contribution! | ||
- name: Need more info | ||
if: github.event.label.name == '📄 Need more info' | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'create-comment' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
你好 @${{ github.event.issue.user.login }},我们需要你提供更多的信息或复现链接以便于我们帮你排查定位问题。7 天内未跟进此 issue 将会被自动关闭。 | ||
Hello @${{ github.event.issue.user.login }}, we need more information or a reproducible link from you to help us investigate and pinpoint the issue. If there is no follow-up within 7 days, this issue will be automatically closed. | ||
- name: Invalid | ||
if: github.event.label.name == '🙅 Invalid' | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'create-comment,close-issue' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
你好 @${{ github.event.issue.user.login }}, | ||
您的 Issue 已被标记为无效而自动关闭,原因可能如下: | ||
- 不符合我们的格式要求、可能缺少足够的上下文或关键信息,无法有效解决问题。 | ||
- 非 bug 反馈和需求讨论(如询问如何使用等问题)。 | ||
- 它可能是已有 Issue 的重复项。请在提交新的 Issue 之前检查现有的 Issue。 | ||
可点击加入[Arco Design 飞书用户群](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=0c2qaa71-ed40-40e7-9389-9f3e182011a5)询问,感谢您的理解与配合! |
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,42 @@ | ||
name: Issue Manager | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
issue-close: | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository_owner == 'arco-design-vue' }} | ||
steps: | ||
- name: Needs more info | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issues' | ||
labels: '📄 Need more info' | ||
inactive-day: 7 | ||
body: | | ||
由于该 issue 被标记为需要更多信息,却 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复或点击加入[Arco Design 飞书用户群](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=0c2qaa71-ed40-40e7-9389-9f3e182011a5)询问。 | ||
This issue has been marked as needing more information, but there hasn’t been a response for 7 days, so we’re closing it for now. If you have any questions, feel free to comment here or join the [Arco Design Feishu user group](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=0c2qaa71-ed40-40e7-9389-9f3e182011a5) to ask for help. | ||
check-inactive: | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository_owner == 'arco-design-vue' }} | ||
steps: | ||
- name: check-inactive | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'check-inactive' | ||
inactive-label: '💤 Inactive' | ||
inactive-day: 30 | ||
|
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,22 @@ | ||
name: Issue Remove Inactive | ||
|
||
on: | ||
issues: | ||
types: [edited] | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
issue-remove-inactive: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: remove inactive | ||
if: github.event.issue.state == 'open' && github.actor == github.event.issue.user.login | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'remove-labels' | ||
issue-number: ${{ github.event.issue.number }} | ||
labels: '💤 Inactive' |