1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00
Slimefun4/.github/workflows/close-invalid-issues.yml

35 lines
1.3 KiB
YAML
Raw Normal View History

2020-03-20 13:48:20 +00:00
name: Close invalid Issue
2020-03-21 11:58:04 +00:00
2020-07-30 11:30:20 +00:00
on:
issues:
2020-03-20 13:38:21 +00:00
types: [opened]
jobs:
comment:
runs-on: ubuntu-latest
2020-03-20 14:03:24 +00:00
if: contains(github.event.issue.labels.*.name, 'Bug Report') == false
2020-03-20 13:38:21 +00:00
steps:
2020-03-21 11:58:04 +00:00
- name: Close Issue
uses: maxkomarychev/octions/octions/issues/update@master
2020-03-20 13:40:20 +00:00
with:
token: ${{ secrets.ACCESS_TOKEN }}
issue_number: ${{ github.event.issue.number }}
state: closed
2020-03-21 11:58:04 +00:00
- name: Add invalid label
uses: maxkomarychev/octions/octions/issues/add-labels@master
2020-03-20 14:10:30 +00:00
with:
token: ${{ secrets.ACCESS_TOKEN }}
issue_number: ${{ github.event.issue.number }}
labels: 'invalid'
2020-03-21 11:58:04 +00:00
- name: Create a comment
uses: maxkomarychev/octions/octions/issues/create-comment@master
2020-03-20 13:40:20 +00:00
with:
token: ${{ secrets.ACCESS_TOKEN }}
issue_number: ${{ github.event.issue.number }}
2020-03-20 13:48:20 +00:00
body: |-
Your issue seems to be missing our template.
[Click here to create a bug report](https://github.com/TheBusyBiscuit/Slimefun4/issues/new/choose)
2020-07-30 11:30:20 +00:00
<br>
2020-03-20 13:48:20 +00:00
Please remember that this Bug Tracker is exclusively reserved for Bug reports, any other form
of discussion, like suggestions or questions should be posted on our discord server (You can find a link [on our main page](https://github.com/TheBusyBiscuit/Slimefun4#discord)).