Skip to content

Commit

Permalink
[ci] Add issue tracker anti-spam protection (yt-dlp#10861)
Browse files Browse the repository at this point in the history
Authored by: bashonly
  • Loading branch information
bashonly authored Aug 28, 2024
1 parent 41be32e commit ad9a811
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/1_broken_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,8 @@ body:
render: shell
validations:
required: true
- type: markdown
attributes:
value: |
### NOTE: Due to a recent increase in malicious spam activity, this issue will be automatically locked until it is triaged by a maintainer.
### If you receive any replies asking you download a file, do NOT follow the download links!
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/2_site_support_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,8 @@ body:
render: shell
validations:
required: true
- type: markdown
attributes:
value: |
### NOTE: Due to a recent increase in malicious spam activity, this issue will be automatically locked until it is triaged by a maintainer.
### If you receive any replies asking you download a file, do NOT follow the download links!
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/3_site_feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,8 @@ body:
render: shell
validations:
required: true
- type: markdown
attributes:
value: |
### NOTE: Due to a recent increase in malicious spam activity, this issue will be automatically locked until it is triaged by a maintainer.
### If you receive any replies asking you download a file, do NOT follow the download links!
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/4_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,8 @@ body:
render: shell
validations:
required: true
- type: markdown
attributes:
value: |
### NOTE: Due to a recent increase in malicious spam activity, this issue will be automatically locked until it is triaged by a maintainer.
### If you receive any replies asking you download a file, do NOT follow the download links!
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/5_feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,8 @@ body:
[youtube] Extracting URL: https://www.youtube.com/watch?v=BaW_jenozKc
<more lines>
render: shell
- type: markdown
attributes:
value: |
### NOTE: Due to a recent increase in malicious spam activity, this issue will be automatically locked until it is triaged by a maintainer.
### If you receive any replies asking you download a file, do NOT follow the download links!
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/6_question.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,8 @@ body:
[youtube] Extracting URL: https://www.youtube.com/watch?v=BaW_jenozKc
<more lines>
render: shell
- type: markdown
attributes:
value: |
### NOTE: Due to a recent increase in malicious spam activity, this issue will be automatically locked until it is triaged by a maintainer.
### If you receive any replies asking you download a file, do NOT follow the download links!
20 changes: 20 additions & 0 deletions .github/workflows/antispam.yaml
Original file line number Diff line number Diff line change
@@ -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}"
5 changes: 5 additions & 0 deletions devscripts/make_issue_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
render: shell
validations:
required: true
- type: markdown
attributes:
value: |
### NOTE: Due to a recent increase in malicious spam activity, this issue will be automatically locked until it is triaged by a maintainer.
### If you receive any replies asking you download a file, do NOT follow the download links!
'''.strip()

NO_SKIP = '''
Expand Down

0 comments on commit ad9a811

Please sign in to comment.