Skip to content

Commit ae81f77

Browse files
committed
chore: add reproduire workflows
1 parent fc98960 commit ae81f77

3 files changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Would you be able to provide a [reproduction](https://nuxt.com/docs/community/reporting-bugs/#create-a-minimal-reproduction)? 🙏
2+
3+
<details>
4+
<summary>More info</summary>
5+
6+
### Why do I need to provide a reproduction?
7+
8+
Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.
9+
10+
### What will happen?
11+
12+
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.
13+
14+
If `needs reproduction` labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
15+
16+
### How can I create a reproduction?
17+
18+
We have a template for starting with a minimal reproduction:
19+
20+
👉 https://stackblitz.com/github/nuxt/image/tree/main/example
21+
22+
A public GitHub repository is also perfect. 👌
23+
24+
Please ensure that the reproduction is as **minimal** as possible. See more details [in our guide](https://nuxt.com/docs/community/reporting-bugs/#create-a-minimal-reproduction).
25+
26+
You might also find these other articles interesting and/or helpful:
27+
28+
- [The Importance of Reproductions](https://antfu.me/posts/why-reproductions-are-required)
29+
- [How to Generate a Minimal, Complete, and Verifiable Example](https://stackoverflow.com/help/mcve)
30+
31+
</details>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Close incomplete issues
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '30 1 * * *' # run every day
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
15+
with:
16+
days-before-stale: -1 # Issues and PR will never be flagged stale automatically.
17+
stale-issue-label: 'needs reproduction' # Label that flags an issue as stale.
18+
only-labels: 'needs reproduction' # Only process these issues
19+
days-before-issue-close: 7
20+
ignore-updates: true
21+
remove-stale-when-updated: false
22+
close-issue-message: This issue was closed because it was open for 7 days without a reproduction.
23+
close-issue-label: closed-by-bot
24+
operations-per-run: 300 #default 30

.github/workflows/reproduction.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Reproduire
2+
on:
3+
issues:
4+
types: [labeled]
5+
6+
permissions:
7+
issues: write
8+
9+
jobs:
10+
reproduire:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
14+
- uses: Hebilicious/reproduire@4b686ae9cbb72dad60f001d278b6e3b2ce40a9ac # v0.0.9-mp
15+
with:
16+
label: needs reproduction

0 commit comments

Comments
 (0)