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

Get notified when a user reacts to your message #212

Get notified when a user reacts to your message

Get notified when a user reacts to your message #212

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 }}