Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ body:
- Issue is not related to your app that has multiple dependencies
- Can isolate the problem
- Allow us to reproduce in minutes
placeholder: https://github.com
placeholder: https://github.com (without reproduction the issue will be automatically closed)
validations:
required: true

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/validate-issue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Validate issue

on:
issues:
types:
- opened

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUMBER: ${{ github.event.issue.number }}
REPO: "uni-stack/uniwind"

jobs:
autoclose:
if: ${{ !contains(github.event.issue.body, 'github.com') }}
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Close Issue
run: gh issue close "$NUMBER" --comment "This issue has been automatically closed because it **lacks a clear, minimal reproduction** that we can use to verify the reported bug." --repo "$REPO"
- name: Label Issue
run: gh issue edit "$NUMBER" --add-label "invalid" --repo "$REPO"