WSABuilds/.github/workflows/anti_spam.yml

33 lines
731 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:
- name: Anti-spam
uses: dessant/repo-lockdown@v2
with:
exclude-issue-labels: |
bug
enhancement
issue-lock-reason: spam
exclude-pr-labels: |
bug
enhancement
do-not-autoclose
pr-labels: spam
pr-lock-reason: spam
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