A GitHub Action to filter comments for suspicious content.
Example worflow:
Path: /.github/workflows/comment-filter.yml
name: Check for Spammy Issue Comments
on:
issue_comment:
types: [created, edited]
permissions:
issues: write
jobs:
comment-filter:
runs-on: ubuntu-latest
steps:
- name: Comment filter
uses: DecimalTurn/Comment-Filter@v0
By using the version with the v0
tag, you make sure to always have the most up-to-date rules for the filter.
Yes, normally the action will be fast enough to change the content of the comment before it gets picked up by the GitHub background job in charge of sending the email notification (Demo).
Contributions to this project (such as pull requests, bug reports, etc.) are welcomed!
If you do, please make your PR against the dev
branch.