···2222 body: |
2323 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.
2424 - name: maybe automated
2525- if: github.event.label.name == 'maybe automated'
2525+ if: github.event.label.name == 'maybe automated' && github.event_name == 'issues'
2626 uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3.7.6
2727 with:
2828 actions: create-comment
2929 token: ${{ secrets.GITHUB_TOKEN }}
3030- issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
3030+ issue-number: ${{ github.event.issue.number }}
3131 body: |
3232- Hello @${{ github.event.issue.user.login || github.event.pull_request.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.
3232+ Hello @${{ github.event.issue.user.login }}. Your issue 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.
33333434 If you're a real person behind this contribution, please:
3535 - Confirm you've personally reviewed and stand behind its content
3636- - 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))
3636+ - Make sure it follows our [contribution guidelines](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md) and uses the correct [GitHub template](https://github.com/vitest-dev/vitest/blob/main/.github/ISSUE_TEMPLATE/bug_report.yml)
3737+ - Disclose any AI tools you used (e.g. Claude, Copilot, Codex)
3838+3939+ If you believe this was flagged by mistake, leave a comment.
4040+4141+ *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.*
4242+ - name: maybe automated
4343+ if: github.event.label.name == 'maybe automated' && github.event_name == 'pull_request'
4444+ uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3.7.6
4545+ with:
4646+ actions: create-comment
4747+ token: ${{ secrets.GITHUB_TOKEN }}
4848+ issue-number: ${{ github.event.pull_request.number }}
4949+ body: |
5050+ Hello @${{ github.event.pull_request.user.login }}. Your PR 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.
5151+5252+ If you're a real person behind this contribution, please:
5353+ - Confirm you've personally reviewed and stand behind its content
5454+ - Make sure it follows our [contribution guidelines](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md) and uses the correct [GitHub template](https://github.com/vitest-dev/vitest/blob/main/.github/PULL_REQUEST_TEMPLATE.md)
3755 - Disclose any AI tools you used (e.g. Claude, Copilot, Codex)
38563957 If you believe this was flagged by mistake, leave a comment.