-
Notifications
You must be signed in to change notification settings - Fork 2k
34 lines (31 loc) · 1.2 KB
/
close-incomplete-issues.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Close incomplete issue templates
on:
issues:
types:
- opened
permissions:
issues: write
jobs:
close-issues-if-invalid:
runs-on: ubuntu-latest
steps:
- uses: queengooborg/[email protected]
id: spam-check
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
labels: "spam"
# lock: "spam"
comment: |
This issue has been identified as spam and has been automatically closed.
normalize-newlines: true
body-is-blank: true
- uses: queengooborg/[email protected]
if: steps.spam-check.outputs.was-closed == 'false'
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
labels: "invalid"
comment: |
This issue was automatically closed because the title was left as the default, and a summary was not added.
If this is not a spam issue, please replace the `<SUMMARIZE THE PROBLEM>` part of the title with a short summary of the reported issue, and then post a follow-up comment. A maintainer will review your issue and reopen it if needed.
normalize-newlines: true
title-contains: "<SUMMARIZE THE PROBLEM>"