From 06a7e53f67712e60834d3eef0a019234f55240cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 12:20:38 +0800 Subject: [PATCH 01/15] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=20issue=20?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=A4=84=E7=90=86=E5=A4=8D=E7=94=A8=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/reusable-issue-help-wanted.yml | 31 +++++++++ .../reusable-issue-mark-duplicate.yml | 32 +++++++++ .github/workflows/reusable-issue-reply.yml | 31 +++++++++ .github/workflows/reusable-issue-shoot.yml | 68 +++++++++++++++++++ .github/workflows/reusable-issue-welcome.yml | 32 +++++++++ 5 files changed, 194 insertions(+) create mode 100644 .github/workflows/reusable-issue-help-wanted.yml create mode 100644 .github/workflows/reusable-issue-mark-duplicate.yml create mode 100644 .github/workflows/reusable-issue-reply.yml create mode 100644 .github/workflows/reusable-issue-shoot.yml create mode 100644 .github/workflows/reusable-issue-welcome.yml diff --git a/.github/workflows/reusable-issue-help-wanted.yml b/.github/workflows/reusable-issue-help-wanted.yml new file mode 100644 index 0000000..fe8a9ef --- /dev/null +++ b/.github/workflows/reusable-issue-help-wanted.yml @@ -0,0 +1,31 @@ +# 当打上 "help wanted" 标签时,自动留言引导社区贡献 +name: Issue Help Wanted + +on: + workflow_call: + inputs: + issue-number: + required: true + type: number + token: + required: false + type: string + default: '' + secrets: + GITHUB_TOKEN: + required: false + +jobs: + add-comment: + runs-on: ubuntu-latest + steps: + - uses: TDesignOteam/workflows/actions/issues-helper@main + with: + actions: create-comment + token: ${{ inputs.token }} + issue-number: ${{ inputs.issue-number }} + body: | + 任何人都可以处理此问题。 + **请务必在您的 `pull request` 中引用此问题。** :sparkles: + 感谢你的贡献! :sparkles: + emoji: heart diff --git a/.github/workflows/reusable-issue-mark-duplicate.yml b/.github/workflows/reusable-issue-mark-duplicate.yml new file mode 100644 index 0000000..49c1d4a --- /dev/null +++ b/.github/workflows/reusable-issue-mark-duplicate.yml @@ -0,0 +1,32 @@ +# 当 comment 中回复类似 "Duplicate of #111" 时,自动打标签并关闭 issue +name: Issue Mark Duplicate + +on: + workflow_call: + inputs: + token: + required: false + type: string + default: '' + duplicate-labels: + required: false + type: string + default: duplicate + close-issue: + required: false + type: boolean + default: true + secrets: + GITHUB_TOKEN: + required: false + +jobs: + mark-duplicate: + runs-on: ubuntu-latest + steps: + - uses: TDesignOteam/workflows/actions/issues-helper@main + with: + actions: mark-duplicate + token: ${{ inputs.token || secrets.GITHUB_TOKEN }} + duplicate-labels: ${{ inputs.duplicate-labels }} + close-issue: ${{ inputs.close-issue }} diff --git a/.github/workflows/reusable-issue-reply.yml b/.github/workflows/reusable-issue-reply.yml new file mode 100644 index 0000000..62ffeb5 --- /dev/null +++ b/.github/workflows/reusable-issue-reply.yml @@ -0,0 +1,31 @@ +# 当打上 "Need Reproduce" 标签时,自动提示提供重现实例 +name: Issue Reply + +on: + workflow_call: + inputs: + issue-number: + required: true + type: number + login: + required: true + type: string + token: + required: false + type: string + default: '' + secrets: + GITHUB_TOKEN: + required: false + +jobs: + issue-reply: + runs-on: ubuntu-latest + steps: + - uses: TDesignOteam/workflows/actions/issues-helper@main + with: + actions: create-comment + token: ${{ inputs.token || secrets.GITHUB_TOKEN }} + issue-number: ${{ inputs.issue-number }} + body: | + 你好 @${{ inputs.login }}, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 [此处](https://codesandbox.io/) 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。 diff --git a/.github/workflows/reusable-issue-shoot.yml b/.github/workflows/reusable-issue-shoot.yml new file mode 100644 index 0000000..16227cb --- /dev/null +++ b/.github/workflows/reusable-issue-shoot.yml @@ -0,0 +1,68 @@ +# 当打上 easy/middle/hard 标签时,追加难度分级模板 +name: Issue Shoot + +on: + workflow_call: + inputs: + issue-number: + required: true + type: number + label-name: + required: true + type: string + template-path: + required: false + type: string + default: .github/issue-shoot.md + token: + required: false + type: string + default: '' + secrets: + GITHUB_TOKEN: + required: false + +jobs: + add-template: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: Get level config + id: config + run: | + label=${{ inputs.label-name }} + if [[ $label = "easy" ]] + then + echo "level=低" >> $GITHUB_OUTPUT + echo "duration=1" >> $GITHUB_OUTPUT + echo "deadline=$(date -d '+3 days' +'%Y-%m-%d')" >> $GITHUB_OUTPUT + elif [[ $label = "middle" ]] + then + echo "level=中" >> $GITHUB_OUTPUT + echo "duration=3" >> $GITHUB_OUTPUT + echo "deadline=$(date -d '+7 days' +'%Y-%m-%d')" >> $GITHUB_OUTPUT + else + echo "level=高" >> $GITHUB_OUTPUT + echo "duration=5" >> $GITHUB_OUTPUT + echo "deadline=$(date -d '+10 days' +'%Y-%m-%d')" >> $GITHUB_OUTPUT + fi + + - name: Render template + id: template + uses: chuhlomin/render-template@v1.4 + with: + template: ${{ inputs.template-path }} + vars: | + level: ${{ steps.config.outputs.level }} + duration: ${{ steps.config.outputs.duration }} + deadline: ${{ steps.config.outputs.deadline }} + + - name: Update issue + uses: TDesignOteam/workflows/actions/issues-helper@main + with: + actions: update-issue + token: ${{ inputs.token }} + issue-number: ${{ inputs.issue-number }} + body: ${{ steps.template.outputs.result }} + update-mode: append diff --git a/.github/workflows/reusable-issue-welcome.yml b/.github/workflows/reusable-issue-welcome.yml new file mode 100644 index 0000000..c60c17a --- /dev/null +++ b/.github/workflows/reusable-issue-welcome.yml @@ -0,0 +1,32 @@ +# 当 issue 被创建时,自动回复引导完善信息 +name: Issue Welcome + +on: + workflow_call: + inputs: + issue-number: + required: true + type: number + login: + required: true + type: string + token: + required: false + type: string + default: '' + secrets: + GITHUB_TOKEN: + required: false + +jobs: + add-comment: + runs-on: ubuntu-latest + steps: + - uses: TDesignOteam/workflows/actions/issues-helper@main + with: + actions: create-comment + token: ${{ inputs.token }} + issue-number: ${{ inputs.issue-number }} + body: | + 👋 @${{ inputs.login }},感谢给 TDesign 提出了 issue。 + 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。 From 046b892284a3e5de85baa3d6527a67f946d97202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 12:30:01 +0800 Subject: [PATCH 02/15] =?UTF-8?q?ci:=20=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84=20GITHUB=5FTOKEN=20secrets=20?= =?UTF-8?q?=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-welcome.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/reusable-issue-welcome.yml b/.github/workflows/reusable-issue-welcome.yml index c60c17a..aa2ce38 100644 --- a/.github/workflows/reusable-issue-welcome.yml +++ b/.github/workflows/reusable-issue-welcome.yml @@ -14,9 +14,6 @@ on: required: false type: string default: '' - secrets: - GITHUB_TOKEN: - required: false jobs: add-comment: From 8804f7b33c056c2484a10c7df759e106c8fa3c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 12:33:53 +0800 Subject: [PATCH 03/15] =?UTF-8?q?ci(issue-welcome):=20=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=BB=A4=E7=89=8C=E4=B8=BA=20github.token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-welcome.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-issue-welcome.yml b/.github/workflows/reusable-issue-welcome.yml index aa2ce38..d34be03 100644 --- a/.github/workflows/reusable-issue-welcome.yml +++ b/.github/workflows/reusable-issue-welcome.yml @@ -13,7 +13,7 @@ on: token: required: false type: string - default: '' + default: ${{ github.token }} jobs: add-comment: From da9b95043e1046a37aea249dcf258c1d919aa34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 13:02:13 +0800 Subject: [PATCH 04/15] =?UTF-8?q?ci:=20=E5=B0=86=20issue=20welcome=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=9A=84=20token=20=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=20secrets=20=E4=BC=A0=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-welcome.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/reusable-issue-welcome.yml b/.github/workflows/reusable-issue-welcome.yml index d34be03..418e4d5 100644 --- a/.github/workflows/reusable-issue-welcome.yml +++ b/.github/workflows/reusable-issue-welcome.yml @@ -10,10 +10,9 @@ on: login: required: true type: string - token: - required: false - type: string - default: ${{ github.token }} + secrets: + GITHUB_TOKEN: + required: true jobs: add-comment: @@ -22,7 +21,7 @@ jobs: - uses: TDesignOteam/workflows/actions/issues-helper@main with: actions: create-comment - token: ${{ inputs.token }} + token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ inputs.issue-number }} body: | 👋 @${{ inputs.login }},感谢给 TDesign 提出了 issue。 From 9482594289b75b05829b6f0265db30e8f8d8d2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 13:06:38 +0800 Subject: [PATCH 05/15] t --- .github/workflows/reusable-issue-welcome.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/reusable-issue-welcome.yml b/.github/workflows/reusable-issue-welcome.yml index 418e4d5..e55501d 100644 --- a/.github/workflows/reusable-issue-welcome.yml +++ b/.github/workflows/reusable-issue-welcome.yml @@ -10,9 +10,9 @@ on: login: required: true type: string - secrets: - GITHUB_TOKEN: - required: true + token: + required: false + type: string jobs: add-comment: @@ -21,7 +21,7 @@ jobs: - uses: TDesignOteam/workflows/actions/issues-helper@main with: actions: create-comment - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ github.token }} issue-number: ${{ inputs.issue-number }} body: | 👋 @${{ inputs.login }},感谢给 TDesign 提出了 issue。 From caaaffebc890bb3565ddf99b4d1c96378290410b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 14:11:48 +0800 Subject: [PATCH 06/15] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E9=87=8D=E7=8E=B0=E5=AE=9E=E4=BE=8B=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E5=B9=B6=E4=BF=AE=E5=A4=8D=E6=AC=A2=E8=BF=8E=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E4=BB=A4=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-welcome.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-issue-welcome.yml b/.github/workflows/reusable-issue-welcome.yml index e55501d..7a19d5b 100644 --- a/.github/workflows/reusable-issue-welcome.yml +++ b/.github/workflows/reusable-issue-welcome.yml @@ -21,7 +21,7 @@ jobs: - uses: TDesignOteam/workflows/actions/issues-helper@main with: actions: create-comment - token: ${{ github.token }} + token: ${{ inputs.token || secrets.GITHUB_TOKEN }} issue-number: ${{ inputs.issue-number }} body: | 👋 @${{ inputs.login }},感谢给 TDesign 提出了 issue。 From 816aa3eadce4ca47aae57fdf6a1908f6365bc662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 14:15:25 +0800 Subject: [PATCH 07/15] =?UTF-8?q?ci(issue-welcome):=20=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E8=BE=93=E5=85=A5=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-welcome.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/reusable-issue-welcome.yml b/.github/workflows/reusable-issue-welcome.yml index 7a19d5b..62c3b10 100644 --- a/.github/workflows/reusable-issue-welcome.yml +++ b/.github/workflows/reusable-issue-welcome.yml @@ -5,14 +5,17 @@ on: workflow_call: inputs: issue-number: - required: true + required: false type: number + default: ${{ github.event.issue.number }} login: - required: true + required: false type: string + default: ${{ github.event.issue.user.login }} token: required: false type: string + default: ${{ secrets.GITHUB_TOKEN }} jobs: add-comment: @@ -21,7 +24,7 @@ jobs: - uses: TDesignOteam/workflows/actions/issues-helper@main with: actions: create-comment - token: ${{ inputs.token || secrets.GITHUB_TOKEN }} + token: ${{ inputs.token }} issue-number: ${{ inputs.issue-number }} body: | 👋 @${{ inputs.login }},感谢给 TDesign 提出了 issue。 From d199a64fcfe8abd6e57d438b6ae9f5ead28f7a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 14:21:58 +0800 Subject: [PATCH 08/15] =?UTF-8?q?ci:=20=E7=AE=80=E5=8C=96=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E4=BB=A4=E7=89=8C=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-welcome.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/reusable-issue-welcome.yml b/.github/workflows/reusable-issue-welcome.yml index 62c3b10..99ac3af 100644 --- a/.github/workflows/reusable-issue-welcome.yml +++ b/.github/workflows/reusable-issue-welcome.yml @@ -12,10 +12,6 @@ on: required: false type: string default: ${{ github.event.issue.user.login }} - token: - required: false - type: string - default: ${{ secrets.GITHUB_TOKEN }} jobs: add-comment: @@ -24,7 +20,7 @@ jobs: - uses: TDesignOteam/workflows/actions/issues-helper@main with: actions: create-comment - token: ${{ inputs.token }} + token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ inputs.issue-number }} body: | 👋 @${{ inputs.login }},感谢给 TDesign 提出了 issue。 From d4733de572a3136af53d03a93f59e43a0bee7b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 14:34:46 +0800 Subject: [PATCH 09/15] =?UTF-8?q?ci(workflow):=20=E4=BC=98=E5=8C=96Issue?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=B9=B6=E6=96=B0=E5=A2=9ENeed=20Re?= =?UTF-8?q?produce=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-help-wanted.yml | 10 ++-------- .../workflows/reusable-issue-mark-duplicate.yml | 9 +-------- ...ply.yml => reusable-issue-need-reproduce.yml} | 11 +++-------- .github/workflows/reusable-issue-shoot.yml | 16 ++++++---------- 4 files changed, 12 insertions(+), 34 deletions(-) rename .github/workflows/{reusable-issue-reply.yml => reusable-issue-need-reproduce.yml} (86%) diff --git a/.github/workflows/reusable-issue-help-wanted.yml b/.github/workflows/reusable-issue-help-wanted.yml index fe8a9ef..92885fb 100644 --- a/.github/workflows/reusable-issue-help-wanted.yml +++ b/.github/workflows/reusable-issue-help-wanted.yml @@ -5,15 +5,9 @@ on: workflow_call: inputs: issue-number: - required: true - type: number - token: - required: false - type: string - default: '' - secrets: - GITHUB_TOKEN: required: false + type: number + default: ${{ github.event.issue.number }} jobs: add-comment: diff --git a/.github/workflows/reusable-issue-mark-duplicate.yml b/.github/workflows/reusable-issue-mark-duplicate.yml index 49c1d4a..42b1179 100644 --- a/.github/workflows/reusable-issue-mark-duplicate.yml +++ b/.github/workflows/reusable-issue-mark-duplicate.yml @@ -4,10 +4,6 @@ name: Issue Mark Duplicate on: workflow_call: inputs: - token: - required: false - type: string - default: '' duplicate-labels: required: false type: string @@ -16,9 +12,6 @@ on: required: false type: boolean default: true - secrets: - GITHUB_TOKEN: - required: false jobs: mark-duplicate: @@ -27,6 +20,6 @@ jobs: - uses: TDesignOteam/workflows/actions/issues-helper@main with: actions: mark-duplicate - token: ${{ inputs.token || secrets.GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} duplicate-labels: ${{ inputs.duplicate-labels }} close-issue: ${{ inputs.close-issue }} diff --git a/.github/workflows/reusable-issue-reply.yml b/.github/workflows/reusable-issue-need-reproduce.yml similarity index 86% rename from .github/workflows/reusable-issue-reply.yml rename to .github/workflows/reusable-issue-need-reproduce.yml index 62ffeb5..a83af23 100644 --- a/.github/workflows/reusable-issue-reply.yml +++ b/.github/workflows/reusable-issue-need-reproduce.yml @@ -5,18 +5,13 @@ on: workflow_call: inputs: issue-number: - required: true + required: false type: number + default: ${{ github.event.issue.number }} login: - required: true - type: string - token: required: false type: string - default: '' - secrets: - GITHUB_TOKEN: - required: false + default: ${{ github.event.issue.user.login }} jobs: issue-reply: diff --git a/.github/workflows/reusable-issue-shoot.yml b/.github/workflows/reusable-issue-shoot.yml index 16227cb..d42381c 100644 --- a/.github/workflows/reusable-issue-shoot.yml +++ b/.github/workflows/reusable-issue-shoot.yml @@ -5,25 +5,21 @@ on: workflow_call: inputs: issue-number: - required: true + required: false type: number + default: ${{ github.event.issue.number }} label-name: - required: true + required: false type: string + default: ${{ github.event.label.name }} template-path: required: false type: string default: .github/issue-shoot.md - token: - required: false - type: string - default: '' - secrets: - GITHUB_TOKEN: - required: false jobs: add-template: + if: contains(fromJSON('["easy", "middle", "hard"]'), inputs.label-name) runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 @@ -62,7 +58,7 @@ jobs: uses: TDesignOteam/workflows/actions/issues-helper@main with: actions: update-issue - token: ${{ inputs.token }} + token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ inputs.issue-number }} body: ${{ steps.template.outputs.result }} update-mode: append From 65961ed87f3d3325b09f68d08f8c204ced569085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 14:40:01 +0800 Subject: [PATCH 10/15] =?UTF-8?q?ci(issue):=20=E4=BB=85=E5=9C=A8=20help=20?= =?UTF-8?q?wanted=20=E6=A0=87=E7=AD=BE=E6=97=B6=E6=B7=BB=E5=8A=A0=E8=AF=84?= =?UTF-8?q?=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-help-wanted.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/reusable-issue-help-wanted.yml b/.github/workflows/reusable-issue-help-wanted.yml index 92885fb..b8974be 100644 --- a/.github/workflows/reusable-issue-help-wanted.yml +++ b/.github/workflows/reusable-issue-help-wanted.yml @@ -11,6 +11,7 @@ on: jobs: add-comment: + if: github.event.label.name == 'help wanted' runs-on: ubuntu-latest steps: - uses: TDesignOteam/workflows/actions/issues-helper@main From 565d02b751bd78653d5f36bae8f33f34ee233835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 14:41:51 +0800 Subject: [PATCH 11/15] =?UTF-8?q?fix(ci):=20=E4=BB=85=E5=9C=A8=20Need=20Re?= =?UTF-8?q?produce=20=E6=A0=87=E7=AD=BE=E6=97=B6=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-need-reproduce.yml | 1 + .github/workflows/reusable-issue-shoot.yml | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/reusable-issue-need-reproduce.yml b/.github/workflows/reusable-issue-need-reproduce.yml index a83af23..521c477 100644 --- a/.github/workflows/reusable-issue-need-reproduce.yml +++ b/.github/workflows/reusable-issue-need-reproduce.yml @@ -15,6 +15,7 @@ on: jobs: issue-reply: + if: github.event.label.name == 'Need Reproduce' runs-on: ubuntu-latest steps: - uses: TDesignOteam/workflows/actions/issues-helper@main diff --git a/.github/workflows/reusable-issue-shoot.yml b/.github/workflows/reusable-issue-shoot.yml index d42381c..4d216c7 100644 --- a/.github/workflows/reusable-issue-shoot.yml +++ b/.github/workflows/reusable-issue-shoot.yml @@ -8,10 +8,6 @@ on: required: false type: number default: ${{ github.event.issue.number }} - label-name: - required: false - type: string - default: ${{ github.event.label.name }} template-path: required: false type: string @@ -19,7 +15,7 @@ on: jobs: add-template: - if: contains(fromJSON('["easy", "middle", "hard"]'), inputs.label-name) + if: contains(fromJSON('["easy", "middle", "hard"]'), github.event.label.name) runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 @@ -27,7 +23,7 @@ jobs: - name: Get level config id: config run: | - label=${{ inputs.label-name }} + label=${{ github.event.label.name }} if [[ $label = "easy" ]] then echo "level=低" >> $GITHUB_OUTPUT From b9e6b1c1952cdb029269f2bcd05c8e6a649db5ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 14:46:57 +0800 Subject: [PATCH 12/15] =?UTF-8?q?ci:=20=E4=BD=BF=E7=94=A8=E9=BB=98?= =?UTF-8?q?=E8=AE=A4GITHUB=5FTOKEN=E6=9B=BF=E6=8D=A2inputs.token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-help-wanted.yml | 2 +- .github/workflows/reusable-issue-need-reproduce.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-issue-help-wanted.yml b/.github/workflows/reusable-issue-help-wanted.yml index b8974be..97679b4 100644 --- a/.github/workflows/reusable-issue-help-wanted.yml +++ b/.github/workflows/reusable-issue-help-wanted.yml @@ -17,7 +17,7 @@ jobs: - uses: TDesignOteam/workflows/actions/issues-helper@main with: actions: create-comment - token: ${{ inputs.token }} + token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ inputs.issue-number }} body: | 任何人都可以处理此问题。 diff --git a/.github/workflows/reusable-issue-need-reproduce.yml b/.github/workflows/reusable-issue-need-reproduce.yml index 521c477..4805302 100644 --- a/.github/workflows/reusable-issue-need-reproduce.yml +++ b/.github/workflows/reusable-issue-need-reproduce.yml @@ -21,7 +21,7 @@ jobs: - uses: TDesignOteam/workflows/actions/issues-helper@main with: actions: create-comment - token: ${{ inputs.token || secrets.GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ inputs.issue-number }} body: | 你好 @${{ inputs.login }}, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 [此处](https://codesandbox.io/) 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。 From ac69f621f0c0d90575ae0f987cdbf0e8d41f2092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 14:58:58 +0800 Subject: [PATCH 13/15] =?UTF-8?q?ci:=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E5=8F=AF=E5=A4=8D=E7=94=A8=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-help-wanted.yml | 2 +- .github/workflows/reusable-issue-mark-duplicate.yml | 2 +- .github/workflows/reusable-issue-need-reproduce.yml | 2 +- .github/workflows/reusable-issue-shoot.yml | 2 +- .github/workflows/reusable-issue-welcome.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/reusable-issue-help-wanted.yml b/.github/workflows/reusable-issue-help-wanted.yml index 97679b4..6a8b7ec 100644 --- a/.github/workflows/reusable-issue-help-wanted.yml +++ b/.github/workflows/reusable-issue-help-wanted.yml @@ -1,5 +1,5 @@ # 当打上 "help wanted" 标签时,自动留言引导社区贡献 -name: Issue Help Wanted +name: reusable-issue-help-wanted on: workflow_call: diff --git a/.github/workflows/reusable-issue-mark-duplicate.yml b/.github/workflows/reusable-issue-mark-duplicate.yml index 42b1179..9754a8c 100644 --- a/.github/workflows/reusable-issue-mark-duplicate.yml +++ b/.github/workflows/reusable-issue-mark-duplicate.yml @@ -1,5 +1,5 @@ # 当 comment 中回复类似 "Duplicate of #111" 时,自动打标签并关闭 issue -name: Issue Mark Duplicate +name: reusable-issue-mark-duplicate on: workflow_call: diff --git a/.github/workflows/reusable-issue-need-reproduce.yml b/.github/workflows/reusable-issue-need-reproduce.yml index 4805302..f729adf 100644 --- a/.github/workflows/reusable-issue-need-reproduce.yml +++ b/.github/workflows/reusable-issue-need-reproduce.yml @@ -1,5 +1,5 @@ # 当打上 "Need Reproduce" 标签时,自动提示提供重现实例 -name: Issue Reply +name: Issue Need Reproduce on: workflow_call: diff --git a/.github/workflows/reusable-issue-shoot.yml b/.github/workflows/reusable-issue-shoot.yml index 4d216c7..a86fed4 100644 --- a/.github/workflows/reusable-issue-shoot.yml +++ b/.github/workflows/reusable-issue-shoot.yml @@ -1,5 +1,5 @@ # 当打上 easy/middle/hard 标签时,追加难度分级模板 -name: Issue Shoot +name: reusable-issue-shoot on: workflow_call: diff --git a/.github/workflows/reusable-issue-welcome.yml b/.github/workflows/reusable-issue-welcome.yml index 99ac3af..0f7492b 100644 --- a/.github/workflows/reusable-issue-welcome.yml +++ b/.github/workflows/reusable-issue-welcome.yml @@ -1,5 +1,5 @@ # 当 issue 被创建时,自动回复引导完善信息 -name: Issue Welcome +name: reusable-issue-welcome on: workflow_call: From f5f6b94f17e10563f2775b71ace902f9712d58f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 15:00:10 +0800 Subject: [PATCH 14/15] =?UTF-8?q?ci:=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=90=8D=E7=A7=B0=E4=BB=A5=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-need-reproduce.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-issue-need-reproduce.yml b/.github/workflows/reusable-issue-need-reproduce.yml index f729adf..9de3bbe 100644 --- a/.github/workflows/reusable-issue-need-reproduce.yml +++ b/.github/workflows/reusable-issue-need-reproduce.yml @@ -1,5 +1,5 @@ # 当打上 "Need Reproduce" 标签时,自动提示提供重现实例 -name: Issue Need Reproduce +name: reusable-issue-need-reproduce on: workflow_call: From f205e699bb0f373213e831a1a5786c039b9e4cdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 26 May 2026 15:04:48 +0800 Subject: [PATCH 15/15] =?UTF-8?q?ci(deps):=20=E9=94=81=E5=AE=9A=20actions/?= =?UTF-8?q?checkout=20=E7=89=88=E6=9C=AC=E8=87=B3=20v6.0.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-issue-shoot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-issue-shoot.yml b/.github/workflows/reusable-issue-shoot.yml index a86fed4..a80a0a4 100644 --- a/.github/workflows/reusable-issue-shoot.yml +++ b/.github/workflows/reusable-issue-shoot.yml @@ -18,7 +18,7 @@ jobs: if: contains(fromJSON('["easy", "middle", "hard"]'), github.event.label.name) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Get level config id: config