Skip to content

Commit 41dbc7a

Browse files
committed
chore(ci): split command in two
1 parent a377788 commit 41dbc7a

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

.github/workflows/issue-labeled.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,36 @@ jobs:
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
25-
if: github.event.label.name == 'maybe automated'
25+
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 }}
30-
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
30+
issue-number: ${{ github.event.issue.number }}
31+
body: |
32+
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.
33+
34+
If you're a real person behind this contribution, please:
35+
- Confirm you've personally reviewed and stand behind its content
36+
- 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)
37+
- Disclose any AI tools you used (e.g. Claude, Copilot, Codex)
38+
39+
If you believe this was flagged by mistake, leave a comment.
40+
41+
*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.*
42+
- name: maybe automated
43+
if: github.event.label.name == 'maybe automated' && github.event_name == 'pull_request'
44+
uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3.7.6
45+
with:
46+
actions: create-comment
47+
token: ${{ secrets.GITHUB_TOKEN }}
48+
issue-number: ${{ github.event.pull_request.number }}
3149
body: |
32-
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.
50+
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.
3351
3452
If you're a real person behind this contribution, please:
3553
- Confirm you've personally reviewed and stand behind its content
36-
- 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))
54+
- 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)
3856
3957
If you believe this was flagged by mistake, leave a comment.

0 commit comments

Comments
 (0)