Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Custom Badges

Custom Badges #1

on:
issues:
types: [labeled]
jobs:
lock:
if: github.event.label.name == "blatant duplicate"

Check failure on line 7 in .github/workflows/blatant-duplicates.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/blatant-duplicates.yml

Invalid workflow file

The workflow is not valid. .github/workflows/blatant-duplicates.yml (Line: 7, Col: 9): Unexpected symbol: '"blatant'. Located at position 28 within expression: github.event.label.name == "blatant duplicate"
runs-on: ubuntu-latest
steps:
- run: |
url="${{ github.event.issue.html_url }}"
message="This issue has been marked as blatant duplicate, which means you have made no effort to try to check for existing issues.
For example a simple search for your issue title or the `Existing Plugin for other mod` link yields results.
As a consequence you are now banned from opening more requests."
gh issue close "$url" --reason spam -c "$message" ||
gh issue comment "$url" -b "$message"
gh issue lock "$url" -r spam || true
GH_TOKEN="$TOKEN_WITH_BLOCK_PERMISSIONS" gh api -X PUT /orgs/Vencord/blocks/"${{ github.event.issue.user.login }}"
env:
GH_TOKEN: ${{ github.token }}
TOKEN_WITH_BLOCK_PERMISSIONS: ${{ secrets.TOKEN_WITH_BLOCK_PERMISSIONS }}