github: Add issue templates and action
authorBrian MacKinney <bmackinney@gmail.com>
Wed, 25 Sep 2019 06:40:04 +0000 (23:40 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 25 Sep 2019 06:40:04 +0000 (08:40 +0200)
.github/ISSUE_TEMPLATE/bug_report.md [new file with mode: 0644]
.github/ISSUE_TEMPLATE/feature_request.md [new file with mode: 0644]
.github/ISSUE_TEMPLATE/support.md [new file with mode: 0644]
.github/workflows/auto_close_support.yml [new file with mode: 0644]

diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644 (file)
index 0000000..f3f8a4f
--- /dev/null
@@ -0,0 +1,6 @@
+---
+name: 'Bug report'
+labels: ''
+assignees: ''
+about: Create a report to help us improve
+---
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644 (file)
index 0000000..272d3ec
--- /dev/null
@@ -0,0 +1,8 @@
+---
+name: Proposal
+about: Suggest an idea for Hugo
+title: ''
+labels: ''
+assignees: ''
+
+---
diff --git a/.github/ISSUE_TEMPLATE/support.md b/.github/ISSUE_TEMPLATE/support.md
new file mode 100644 (file)
index 0000000..3183733
--- /dev/null
@@ -0,0 +1,10 @@
+---
+name: Support (Do not use)
+about: Please do not use Github for support requests. Visit https://discourse.gohugo.io for support
+title: ''
+labels: support
+assignees: ''
+
+---
+
+Issues created with this template will be automatically closed. Please visit https://discourse.gohugo.io for the support you really, really, want!
\ No newline at end of file
diff --git a/.github/workflows/auto_close_support.yml b/.github/workflows/auto_close_support.yml
new file mode 100644 (file)
index 0000000..28a0e69
--- /dev/null
@@ -0,0 +1,14 @@
+on:
+  schedule:
+  - cron: 0 5 * * 3 
+name: Weekly Issue Closure
+jobs:
+  cycle-weekly-close:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@master
+    - name: weekly-issue-closure
+      uses: bdougie/close-issues-based-on-label@master
+      env:
+        LABEL: support
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file