From 9d504ce8223a5f35a12b0c1e23c8d4aded1aba58 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Mon, 30 Mar 2026 10:23:36 +0200 Subject: [PATCH] chore: add ci actions for `maybe automated` label (#10011) --- .github/workflows/issue-close-require.yml | 7 +++++++ .github/workflows/issue-labeled.yml | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/.github/workflows/issue-close-require.yml b/.github/workflows/issue-close-require.yml index cb2f11853..e1bdfcf04 100644 --- a/.github/workflows/issue-close-require.yml +++ b/.github/workflows/issue-close-require.yml @@ -17,3 +17,10 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} labels: needs reproduction inactive-day: 3 + - name: maybe automated + uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3.7.6 + with: + actions: close-issues + token: ${{ secrets.GITHUB_TOKEN }} + labels: maybe automated + inactive-day: 3 diff --git a/.github/workflows/issue-labeled.yml b/.github/workflows/issue-labeled.yml index b2ab19ce5..258ed8cb5 100644 --- a/.github/workflows/issue-labeled.yml +++ b/.github/workflows/issue-labeled.yml @@ -3,6 +3,8 @@ name: Issue Labeled on: issues: types: [labeled] + pull_request: + types: [labeled] jobs: reply-labeled: @@ -19,3 +21,21 @@ jobs: issue-number: ${{ github.event.issue.number }} body: | Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository or [StackBlitz](https://vitest.new) (you can also use [examples](https://github.com/vitest-dev/vitest/tree/main/examples)). Issues marked with `needs reproduction` will be closed if they have no activity within 3 days. + - name: maybe automated + if: github.event.label.name == 'maybe automated' + uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3.7.6 + with: + actions: create-comment + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + Hello @${{ github.event.issue.user.login }}. Your content has been labeled `maybe automated` because it appears to have been fully generated by AI with no human involvement. It will be **closed automatically in 3 days** unless a real person responds. + + If you're a real person behind this contribution, please: + - Confirm you've personally reviewed and stand behind its content + - Make sure it follows our [contribution guidelines](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md) and uses the correct GitHub template ([PR](https://github.com/vitest-dev/vitest/blob/main/.github/PULL_REQUEST_TEMPLATE.md), [issue](https://github.com/vitest-dev/vitest/blob/main/.github/ISSUE_TEMPLATE/bug_report.yml)) + - Disclose any AI tools you used (e.g. Claude, Copilot, Codex) + + If you believe this was flagged by mistake, leave a comment. + + *These measures help us reduce maintenance burden and keep the team's work efficient. See our [AI contributions policy](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md#ai-contributions) for more context.* -- 2.51.2