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:
20
.github/workflows/antispam.yaml
vendored
Normal file
20
.github/workflows/antispam.yaml
vendored
Normal 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}"
|
||||
Reference in New Issue
Block a user