https://github.com/liamg/antispam-action
GitHub action to autoclose spam issues + PRs
https://github.com/liamg/antispam-action
Last synced: 10 months ago
JSON representation
GitHub action to autoclose spam issues + PRs
- Host: GitHub
- URL: https://github.com/liamg/antispam-action
- Owner: liamg
- Created: 2023-03-07T19:00:47.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T22:15:07.000Z (about 2 years ago)
- Last Synced: 2025-03-15T10:49:19.828Z (10 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# antispam-action
GitHub action to automatically close spam issues and pull requests.
Currently I use this to close PRs from Russian bots on [traitor](https://github.com/liamg/traitor).
## Usage
Add the following to `.github/workflows/antispam.yml` in your repository:
```
name: antispam
on:
issues:
types:
- opened
- edited
- reopened
pull_request:
types:
- opened
- edited
- reopened
- synchronize
permissions:
pull-requests: write
issues: write
jobs:
build:
name: Antispam
runs-on: ubuntu-latest
steps:
- uses: liamg/antispam-action@1
with:
token: ${{ github.token }}
```