Skip to content

Commit

Permalink
chore: Add issue template checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
llfbandit committed Nov 5, 2023
1 parent 2240f3b commit cdaf434
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ assignees: ''

**Package version**


**Environment**
- OS: [e.g. iOS/Windows/...]
- Browser [e.g. chrome, safari]

**Record configuration**
RecordConfig(...)

**Describe the bug**
A clear and concise description of what the bug is.
Expand All @@ -24,16 +30,5 @@ Steps to reproduce the behavior:
**Expected behavior**
A clear and concise description of what you expected to happen.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
16 changes: 16 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
issues:
types: [opened, edited]

jobs:
auto_close_issues:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Automatically close issues that don't follow the issue template
uses: lucasbento/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-close-message: "@${issue.user.login}: \n\nThis issue is being automatically closed because it does not follow the issue template. Fix it to automatically re-open the issue."
closed-issues-label: "Not following issue template"

0 comments on commit cdaf434

Please sign in to comment.