WSABuilds/.github/workflows/anti_spam.yml

38 lines
925 B
YAML
Raw Normal View History

2022-09-25 06:46:57 +02:00
name: Anti-spam
on:
issues:
types: [opened]
2022-09-25 06:48:10 +02:00
pull_request:
2022-09-25 06:46:57 +02:00
types: [opened, edited]
jobs:
autoclose:
runs-on: ubuntu-latest
steps:
2022-09-25 07:08:30 +02:00
- name: Check issue
2022-09-25 06:46:57 +02:00
uses: dessant/repo-lockdown@v2
with:
exclude-issue-labels: |
bug
enhancement
issue-lock-reason: spam
exclude-pr-labels: |
2022-09-25 06:58:18 +02:00
bugfix
2022-09-25 06:46:57 +02:00
enhancement
do-not-autoclose
pr-labels: spam
pr-lock-reason: spam
2022-09-25 06:58:18 +02:00
skip-closed-pr-comment: true
skip-closed-issue-comment: true
2022-09-25 07:08:30 +02:00
process-only: issues
2022-09-25 07:25:55 +02:00
- name: Check PR
uses: sumally/github-check-tasklist-action@v1
2022-09-25 06:51:14 +02:00
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 0