From 765935e92d031c20e5a444239481bd01b6b7e644 Mon Sep 17 00:00:00 2001 From: ILoveScratch Date: Fri, 25 Sep 2026 21:56:02 +0800 Subject: [PATCH 1/3] feat(ci): process issues automatically --- .github/workflows/issue_comment.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/issue_comment.yml b/.github/workflows/issue_comment.yml index f8b209035f..4f017c8ef4 100644 --- a/.github/workflows/issue_comment.yml +++ b/.github/workflows/issue_comment.yml @@ -5,13 +5,17 @@ on: types: [opened] permissions: + contents: read issues: write jobs: auto-reply: runs-on: ubuntu-latest + outputs: + closed: ${{ steps.compliance.outputs.closed }} steps: - name: Check issue for unchecked tasks and reply + id: compliance uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 with: script: | @@ -54,6 +58,7 @@ jobs: } else { return; } + core.setOutput('closed', String(closeIssue)); await github.rest.issues.createComment({ ...context.repo, @@ -73,3 +78,32 @@ jobs: issue_number: context.issue.number }); } + + ai-triage: + needs: auto-reply + # an issue the form check closed, and [Announcements], are left to the script alone + if: needs.auto-reply.outputs.closed != 'true' && !startsWith(github.event.issue.title, '[Announcements]') + runs-on: ubuntu-latest + steps: + - uses: ILoveScratch2/action-auto-issue@main + with: + token: ${{ secrets.CUSTOM_GH_TOKEN || github.token }} + ai-base-url: ${{ secrets.CUSTOM_API_BASE_URL }} + ai-key: ${{ secrets.CUSTOM_API_KEY }} + model: ${{ secrets.CUSTOM_API_MODEL }} + max-tokens: '300000' + content-max-chars: '50000' + reference-repos: OpenListTeam/OpenList-Frontend,OpenList/OpenList-Docs + search-history: 'true' + issue-code-access: 'read' + pr-code-access: 'full' + apply-labels: 'true' + language: 'en' + answer-language: 'both' + extra-prompt: | + 如果 Issue 是在请求支持新的存储驱动(新的 Driver、新的云盘或对象存储后端),请分类为 needs-discussion(优先级高于 bug 和 Module: Driver)。 + 驱动相关的故障报告、配置问题不要用 needs-discussion,照常用 bug 或 Module: Driver。 + label-outcomes: | + {"needs-discussion": {"comment": "新存储驱动支持请在 Discussion #170 中提出:https://github.com/OpenListTeam/OpenList/discussions/170\n\nNew storage driver support requests are collected in Discussion #170: https://github.com/OpenListTeam/OpenList/discussions/170", "close": true, "lock": true}} + title-prefixes: 'bug=[Bug],enhancement=[Feature]' + labels: 'bug,duplicated,enhancement,info-needed,invalid,Module: Driver,Module: Filesystem,needs-discussion,needs-transfer: doc,needs-transfer: frontend,needs-triage/needs-confirm,WIP' From fa8673ac5c395f624515fe0df071b3ce3ae94e1b Mon Sep 17 00:00:00 2001 From: ILoveScratch Date: Sat, 26 Sep 2026 08:15:24 +0800 Subject: [PATCH 2/3] chore(ci): repo typo --- .github/workflows/issue_comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue_comment.yml b/.github/workflows/issue_comment.yml index 4f017c8ef4..930c6d230f 100644 --- a/.github/workflows/issue_comment.yml +++ b/.github/workflows/issue_comment.yml @@ -93,7 +93,7 @@ jobs: model: ${{ secrets.CUSTOM_API_MODEL }} max-tokens: '300000' content-max-chars: '50000' - reference-repos: OpenListTeam/OpenList-Frontend,OpenList/OpenList-Docs + reference-repos: OpenListTeam/OpenList-Frontend,OpenListTeam/OpenList-Docs search-history: 'true' issue-code-access: 'read' pr-code-access: 'full' From c2934c4d9b99ad6d73a005497de6ff27007fc530 Mon Sep 17 00:00:00 2001 From: ILoveScratch Date: Mon, 28 Sep 2026 18:49:58 +0800 Subject: [PATCH 3/3] fix(ci): pin deps for issue workflow Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: ILoveScratch --- .github/workflows/issue_comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue_comment.yml b/.github/workflows/issue_comment.yml index 930c6d230f..65cd25fa24 100644 --- a/.github/workflows/issue_comment.yml +++ b/.github/workflows/issue_comment.yml @@ -85,7 +85,7 @@ jobs: if: needs.auto-reply.outputs.closed != 'true' && !startsWith(github.event.issue.title, '[Announcements]') runs-on: ubuntu-latest steps: - - uses: ILoveScratch2/action-auto-issue@main + - uses: ILoveScratch2/action-auto-issue@66c4f23146ad9f76bc2fc0e4bf306de4f784e89d # reviewed commit with: token: ${{ secrets.CUSTOM_GH_TOKEN || github.token }} ai-base-url: ${{ secrets.CUSTOM_API_BASE_URL }}