mirror of
https://github.com/ZCShou/GoGoGo.git
synced 2026-06-05 21:00:50 +08:00
update(actions):update issue actions
This commit is contained in:
parent
c31db10107
commit
5e3371066f
37
.github/workflows/issue-check.yml
vendored
Normal file
37
.github/workflows/issue-check.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
name: Issue Check
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
issue-close-require:
|
||||
permissions:
|
||||
issues: write # for actions-cool/issues-helper to update issues
|
||||
pull-requests: write # for actions-cool/issues-helper to update PRs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: check-inactive
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'check-inactive'
|
||||
inactive-label: 'inactive'
|
||||
inactive-day: 15
|
||||
body: |
|
||||
The issue has not received any updates for 15 consecutive days. Please follow the progress of this issue in time.
|
||||
|
||||
该 issue 已经连续 15 天未收到任何更新。请及时关注该 ISSUE 进展。
|
||||
|
||||
- name: inactive
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'close-issues'
|
||||
labels: 'inactive'
|
||||
inactive-day: 7
|
||||
body: |
|
||||
Since the issue do not response in 7 days. This issue will be closed. If you have any questions, you can comment and reply.
|
||||
|
||||
由于该 issue 在 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
|
||||
33
.github/workflows/issue-close.yml
vendored
33
.github/workflows/issue-close.yml
vendored
@ -1,33 +0,0 @@
|
||||
name: Issue Close
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
issue-close-require:
|
||||
permissions:
|
||||
issues: write # for actions-cool/issues-helper to update issues
|
||||
pull-requests: write # for actions-cool/issues-helper to update PRs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: need reproduce
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'close-issues'
|
||||
labels: 'need reproduce'
|
||||
inactive-day: 3
|
||||
|
||||
- name: needs more info
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'close-issues'
|
||||
labels: 'needs-more-info'
|
||||
inactive-day: 3
|
||||
body: |
|
||||
Since the issue do not response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
|
||||
|
||||
由于该 issue 在 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
|
||||
22
.github/workflows/issue-inactive-check.yml
vendored
22
.github/workflows/issue-inactive-check.yml
vendored
@ -1,22 +0,0 @@
|
||||
name: Issue Inactive Check
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 */15 * *"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
issue-check-inactive:
|
||||
permissions:
|
||||
issues: write # for actions-cool/issues-helper to update issues
|
||||
pull-requests: write # for actions-cool/issues-helper to update PRs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: check-inactive
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'check-inactive'
|
||||
inactive-label: 'inactive'
|
||||
inactive-day: 30
|
||||
25
.github/workflows/issue-inactive-remove.yml
vendored
25
.github/workflows/issue-inactive-remove.yml
vendored
@ -1,25 +0,0 @@
|
||||
name: Issue Inactive Remove
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [edited]
|
||||
issue_comment:
|
||||
types: [created, edited]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
issue-remove-inactive:
|
||||
permissions:
|
||||
issues: write # for actions-cool/issues-helper to update issues
|
||||
pull-requests: write # for actions-cool/issues-helper to update PRs
|
||||
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, needs-more-info'
|
||||
71
.github/workflows/issue-labeled.yml
vendored
71
.github/workflows/issue-labeled.yml
vendored
@ -14,7 +14,31 @@ jobs:
|
||||
pull-requests: write # for actions-cool/issues-helper to update PRs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: help wanted
|
||||
- name: Comment Feature
|
||||
if: github.event.label.name == 'feature'
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'create-comment'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
body: |
|
||||
Hello @${{ github.event.issue.user.login }}, thanks for your suggestions. We will have someone to follow up your suggestions.
|
||||
|
||||
你好 @${{ github.event.issue.user.login }},感谢提交建议!我们会有专人来跟踪该建议。
|
||||
|
||||
- name: Comment Bug
|
||||
if: github.event.label.name == 'bug'
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'create-comment'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
body: |
|
||||
Hello @${{ github.event.issue.user.login }}, thanks for your feedback. We will have someone to follow up your feedback.
|
||||
|
||||
你好 @${{ github.event.issue.user.login }},感谢提交反馈!我们会有专人来跟踪该反馈。
|
||||
|
||||
- name: Comment Help Wanted
|
||||
if: github.event.label.name == 'help wanted'
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
@ -22,47 +46,35 @@ jobs:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
body: |
|
||||
Hello @${{ github.event.issue.user.login }}, Thanks for your feedback. welcome to [send us a Pull Request](https://help.github.com/en/articles/creating-a-pull-request) for it. Please fill the [Pull Request Template](https://github.com/ZCShou/GoGoGo/blob/master/.github/PULL_REQUEST_TEMPLATE.md) here, and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!
|
||||
Sorry @${{ github.event.issue.user.login }}, we do not have a good solution now. welcome to [send us a Pull Request](https://help.github.com/en/articles/creating-a-pull-request) for it. Make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!
|
||||
|
||||
你好 @${{ github.event.issue.user.login }},感谢您提交反馈。欢迎直接在此仓库 [创建一个 Pull Request](https://help.github.com/en/articles/creating-a-pull-request) 来解决这个问题。请务必填写 Pull Request 内的[预设模板](https://github.com/ZCShou/GoGoGo/blob/master/.github/PULL_REQUEST_TEMPLATE.md),并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。
|
||||
抱歉 @${{ github.event.issue.user.login }},目前,我们并没有很好地解决方法!欢迎直接在此仓库 [创建一个 Pull Request](https://help.github.com/en/articles/creating-a-pull-request) 来帮助我们解决这个问题。确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。
|
||||
|
||||
- name: need reproduce
|
||||
if: github.event.label.name == 'need reproduce'
|
||||
- name: Comment Reproduce
|
||||
if: github.event.label.name == 'reproduce'
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'create-comment'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
body: |
|
||||
Hello @${{ github.event.issue.user.login }}. Please provide a reproduction in order to address the issue. Issues labeled by `need reproduce` will be closed if no activities in 3 days.
|
||||
Hello @${{ github.event.issue.user.login }}, we can not reproduce you feedback.Please provide a reproduction in order to address the issue.
|
||||
|
||||
你好 @${{ github.event.issue.user.login }}, 我们需要你提供一个复现步骤以便于我们排查问题。3 天内未跟进此 issue 将会被自动关闭。
|
||||
你好 @${{ github.event.issue.user.login }}, 我们未能复现你的反馈。请提供一个复现步骤以便于我们排查问题。
|
||||
|
||||
- name: Usage
|
||||
- name: Comment Usage
|
||||
if: github.event.label.name == 'usage' || github.event.label.name == 'question'
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'create-comment,close-issue'
|
||||
actions: 'create-comment'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
body: |
|
||||
Hello @${{ github.event.issue.user.login }}, Thanks for your using GoGoGo. It is recommended that you first check whether the corresponding document can solve your feedback. For a while, there is someone to reply.
|
||||
Hello @${{ github.event.issue.user.login }}, Thanks for your using GoGoGo. It is recommended that you first check whether the corresponding document can solve your feedback.
|
||||
|
||||
你好 @${{ github.event.issue.user.login }},感谢您使用影梭,建议您首先查看对应的文档是否可以解决您的反馈。稍后我们会有专人对该问题进行回复。
|
||||
你好 @${{ github.event.issue.user.login }},感谢您使用影梭,建议您首先查看对应的文档是否可以解决您的反馈。
|
||||
|
||||
# - name: 1.x
|
||||
# if: github.event.label.name == '1.x'
|
||||
# uses: actions-cool/issues-helper@v3
|
||||
# with:
|
||||
# actions: 'create-comment,close-issue'
|
||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# issue-number: ${{ github.event.issue.number }}
|
||||
# body: |
|
||||
# Hi @${{ github.event.issue.user.login }}. Current version (1.10) is off the maintenance period. We may not accept pull request or fix bug with it anymore. This topic will be auto closed.
|
||||
|
||||
# 你好 @${{ github.event.issue.user.login }},当前版本(1.10)已经过了维护期。我们不会再接受对其的相关 PR 与 issue。当前 topic 会被自动关闭。
|
||||
|
||||
- name: invalid
|
||||
- name: Comment Invalid
|
||||
if: github.event.label.name == 'invalid'
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
@ -70,13 +82,6 @@ jobs:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
body: |
|
||||
Hello @${{ github.event.issue.user.login }}, your issue has been closed because it does not conform to our issue requirements. Please use the [Issue Helper](http://new-issue.ant.design) to create an issue, thank you!
|
||||
Hello @${{ github.event.issue.user.login }}, your issue has been closed because it does not conform to our issue requirements. Please use the issue template to create an issue, thank you!
|
||||
|
||||
你好 @${{ github.event.issue.user.login }},为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 [issue 助手](http://new-issue.ant.design) 来创建 issue 以方便我们定位错误。谢谢配合!
|
||||
|
||||
# - name: rtl
|
||||
# if: github.event.label.name == 'rtl'
|
||||
# uses: actions-cool/issues-helper@v3
|
||||
# with:
|
||||
# actions: 'add-assignees'
|
||||
# assignees: 'ZCShou'
|
||||
你好 @${{ github.event.issue.user.login }},为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。请务必根据 issue 模板来创建 issue,以方便我们定位问题,谢谢!
|
||||
|
||||
52
.github/workflows/issue-open.yml
vendored
52
.github/workflows/issue-open.yml
vendored
@ -1,52 +0,0 @@
|
||||
name: Issue Open
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
issue-open-check:
|
||||
permissions:
|
||||
contents: read # for visiky/dingtalk-release-notify to get latest release
|
||||
issues: write # for actions-cool/issues-helper to update issues
|
||||
pull-requests: write # for actions-cool/issues-helper to update PRs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions-cool/check-user-permission@v2
|
||||
id: checkUser
|
||||
with:
|
||||
require: 'write'
|
||||
check-bot: true
|
||||
|
||||
- name: check invalid
|
||||
if: (contains(github.event.issue.body, 'issue-helper') == false) && (steps.checkUser.outputs.require-result == 'false')
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'create-comment,add-labels,close-issue'
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
labels: 'invalid'
|
||||
body: |
|
||||
Hello @${{ github.event.issue.user.login }}, your issue has been closed because it does not conform to our issue requirements. Please fill the content in the template, thank you!
|
||||
|
||||
你好 @${{ github.event.issue.user.login }},为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。请认真填写 ISSUE 模板内容。谢谢配合!
|
||||
|
||||
- name: Add bug label
|
||||
if: contains(github.event.issue.body, '__BUG__') == true
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'add-labels'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
labels: 'bug'
|
||||
|
||||
- name: Add feature label
|
||||
if: contains(github.event.issue.body, '__FEATURE_REQUEST__') == true
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'add-labels'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
labels: 'feature'
|
||||
Loading…
Reference in New Issue
Block a user