GitHub action that adds a custom message to incomplete issues.
This action is intended to be in repositories where contributors needs to submit issues with a reproduction.
It enables an automated message to be added to issues that are missing a reproduction, based on a defined label.
Setup the Reproduire action with a workflow file in your repository (e.g. .github/workflows/reproduire.yml) :
name: Reproduire
on:
issues:
types: [labeled]
permissions:
issues: write
jobs:
reproduire:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Hebilicious/reproduire@v1
with:
label: needs-reproduction # Optional, will default to this value.
You can create a custom markdown message by creating a .github/reproduire/needs-reproduction.md in your repository.
You can use another action to automatically close labeled issues after a certain amount of time.
Setup a stale action in your repository (e.g. .github/workflows/reproduire-close.yml) :
name: Close incomplete issues
on:
workflow_dispatch:
schedule:
- cron: '30 1 * * *' # run every day
permissions:
issues: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
days-before-stale: -1 # Issues and PR will never be flagged stale automatically.
stale-issue-label: needs-reproduction # Label that flags an issue as stale.
only-labels: needs-reproduction # Only process these issues
days-before-issue-close: 7
ignore-updates: true
remove-stale-when-updated: false
close-issue-message: This issue was closed because it was open for 7 days without a valid reproduction.
close-issue-label: closed-by-reproduire
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.