From 8151bcd8e80749f348e09e11bff6f209e65ee4aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=8B=E5=BE=8B=E5=B7=B2=E7=BB=8F=E6=AD=BB=E4=BA=86?= =?UTF-8?q?=E3=80=82?= <89735151+JohnsonRan@users.noreply.github.com> Date: Tue, 5 Aug 2025 16:50:46 +0800 Subject: [PATCH] feat: spam and nonsense go away --- .github/workflows/nomore-spam.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/nomore-spam.yml diff --git a/.github/workflows/nomore-spam.yml b/.github/workflows/nomore-spam.yml new file mode 100644 index 0000000..3c8db83 --- /dev/null +++ b/.github/workflows/nomore-spam.yml @@ -0,0 +1,33 @@ +name: NoMore Spam + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +permissions: + contents: read + issues: write + pull-requests: write + models: read + actions: write + +jobs: + spam-detection: + runs-on: ubuntu-latest + name: NoMore Spam + + steps: + - name: Fuck All the Shit + uses: JohnsonRan/nomore-spam@main + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Delete workflow runs + uses: Mattraks/delete-workflow-runs@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + repository: ${{ github.repository }} + retain_days: 0 + keep_minimum_runs: 2