1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-02 23:55:13 +00:00

[ci] Add issue tracker anti-spam protection (#10861)

Authored by: bashonly
This commit is contained in:
bashonly
2024-08-28 03:01:51 -05:00
committed by GitHub
parent 41be32e78c
commit ad9a8115aa
8 changed files with 55 additions and 0 deletions

20
.github/workflows/antispam.yaml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Anti-Spam
on:
issues:
types: [opened]
permissions:
issues: write
jobs:
lockdown:
name: Issue Lockdown
runs-on: ubuntu-latest
steps:
- name: "Lock new issue"
env:
GH_TOKEN: ${{ github.token }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
REPOSITORY: ${{ github.repository }}
run: |
gh issue lock "${ISSUE_NUMBER}" -r too_heated -R "${REPOSITORY}"