Skip to content

Commit 0772405

Browse files
authored
Feature: Auto-close wrong issues
This will auto-close issues that were not generated by our website: https://www.creative-tim.com/new-issue
1 parent 4d6fb27 commit 0772405

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: .github/workflows/main.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Autocloser
2+
on: [issues]
3+
jobs:
4+
autoclose:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Issue auto-closer
8+
uses: roots/[email protected]
9+
with:
10+
repo-token: ${{ secrets.GITHUB_TOKEN }}
11+
issue-close-message: "@${issue.user.login} this issue was automatically closed because it did not follow our rules:\n\n<pre>\n\n\n\nIMPORTANT: Please use the following link to create a new issue:\n\nhttps://www.creative-tim.com/new-issue/material-dashboard-react\n\n**If your issue was not created using the app above, it will be closed immediately.**\n\n\n\nLove Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:\n👉 https://www.creative-tim.com/bundles\n👉 https://www.creative-tim.com\n\n\n</pre>\n\n"
12+
issue-pattern: (\#\#\# Version([\S\s.*]*?)\#\#\# Reproduction link([\S\s.*]*?)\#\#\# Operating System([\S\s.*]*?)\#\#\# Device([\S\s.*]*?)\#\#\# Browser & Version([\S\s.*]*?)\#\#\# Steps to reproduce([\S\s.*]*?)\#\#\# What is expected([\S\s.*]*?)\#\#\# What is actually happening([\S\s.*]*?)---([\S\s.*]*?)\#\#\# Solution([\S\s.*]*?)\#\#\# Additional comments([\S\s.*]*?)\<\!-- generated by creative-tim-issues\. DO NOT REMOVE --\>)|(\#\#\# What is your enhancement([\S\s.*]*?)\<\!-- generated by creative-tim-issues\. DO NOT REMOVE --\>)

0 commit comments

Comments
 (0)