Skip to content

Commit 352e0bd

Browse files
committed
ci: add needs reproduction process
closes #1042
1 parent 2dfc0c3 commit 352e0bd

2 files changed

Lines changed: 65 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Issue Close Require
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
close-issues:
9+
if: github.repository == 'voidzero-dev/vite-plus'
10+
runs-on: ubuntu-slim
11+
permissions:
12+
issues: write # for actions-cool/issues-helper to update issues
13+
pull-requests: write # for actions-cool/issues-helper to update PRs
14+
steps:
15+
- name: needs reproduction
16+
uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3
17+
with:
18+
actions: 'close-issues'
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
labels: 'needs reproduction'
21+
inactive-day: 3
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Issue Labeled
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
jobs:
8+
reply-labeled:
9+
if: github.repository == 'voidzero-dev/vite-plus'
10+
runs-on: ubuntu-slim
11+
permissions:
12+
issues: write # for actions-cool/issues-helper to update issues
13+
pull-requests: write # for actions-cool/issues-helper to update PRs
14+
steps:
15+
- name: contribution welcome
16+
if: github.event.label.name == 'contribution welcome' || github.event.label.name == 'help wanted'
17+
uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3
18+
with:
19+
actions: 'remove-labels'
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
issue-number: ${{ github.event.issue.number }}
22+
labels: 'pending triage, needs reproduction'
23+
24+
- name: needs reproduction
25+
if: github.event.label.name == 'needs reproduction'
26+
uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3
27+
with:
28+
actions: 'create-comment, remove-labels'
29+
token: ${{ secrets.GITHUB_TOKEN }}
30+
issue-number: ${{ github.event.issue.number }}
31+
labels: 'pending triage'
32+
body: |
33+
Hello @${{ github.event.issue.user.login }} 👋
34+
35+
Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository. This helps us understand and resolve your issue much faster.
36+
37+
**A good reproduction should be:**
38+
- **Minimal** – include only the code necessary to demonstrate the issue
39+
- **Complete** – contain everything needed to run and observe the problem
40+
- **Reproducible** – consistently show the issue with clear steps
41+
42+
If no reproduction is provided, issues labeled `needs reproduction` will be closed after 3 days of inactivity.
43+
44+
For more context on why this is required, please read: https://antfu.me/posts/why-reproductions-are-required

0 commit comments

Comments
 (0)