This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
Hide user(s) based on blacklist / blocked user status #207
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
issues: | |
types: [labeled] | |
jobs: | |
moderate: | |
if: github.event.label.name == 'rejected (blatantly 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 "not planned" -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 }} |