|
| 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