From 057c3c0c552189fc7719c80910bdf9faa7bf8d73 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Sat, 28 Oct 2023 17:25:03 +0200 Subject: [PATCH] Add a GitHub Action to close and lock issues which have a /spam comment --- .github/workflows/spam.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/spam.yaml diff --git a/.github/workflows/spam.yaml b/.github/workflows/spam.yaml new file mode 100644 index 000000000..2a8b12798 --- /dev/null +++ b/.github/workflows/spam.yaml @@ -0,0 +1,12 @@ +name: Spam + +on: issue_comment +jobs: + mark-as-spam: + name: Check for Spam + runs-on: ubuntu-latest + steps: + - name: Close & Lock any issues with a /spam comment + uses: balevine/mark-as-spam@production + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}