Skip to content

Commit 6695d58

Browse files
authored
chore: add reproduire actions (#178)
1 parent ac48adf commit 6695d58

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Would you be able to provide a 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 prioritize 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+
A link to a stackblitz project or public GitHub repository would be perfect. 👌
19+
20+
Please ensure that the reproduction is as **minimal** as possible.
21+
22+
You might also find these other articles interesting and/or helpful:
23+
24+
- [The Importance of Reproductions](https://antfu.me/posts/why-reproductions-are-required)
25+
- [How to Generate a Minimal, Complete, and Verifiable Example](https://stackoverflow.com/help/minimal-reproducible-example)
26+
27+
</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@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.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/reproduire.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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
14+
- uses: Hebilicious/reproduire@4b686ae9cbb72dad60f001d278b6e3b2ce40a9ac # v0.0.9-mp
15+
with:
16+
label: needs reproduction

0 commit comments

Comments
 (0)