-
Notifications
You must be signed in to change notification settings - Fork 17
36 lines (30 loc) · 1.07 KB
/
profanityFilter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# The name of the workflow
name: Profanity filter
# Trigger on issue or pull requests, that are opened, edited, or reopened
on:
issue_comment:
types: [created, edited]
issues:
types: [opened, edited, reopened]
pull_request:
types: [opened, edited, reopened]
# Required permissions
permissions:
issues: write
pull-requests: write
jobs:
# Name the job whatever you'd like
apply-filter:
runs-on: ubuntu-latest
steps:
# Name the step anything that makes sense to you
- name: Scan issue or pull request for profanity
# Conditionally run the step if the actor isn't a bot
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' }}
uses: IEvangelist/[email protected]
id: profanity-filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
# See https://bit.ly/potty-mouth-replacement-strategies
replacement-strategy: middle-asterisk # See Replacement strategy
custom-profane-words-url: https://github.com/Hesham-Elbadawi/list-of-banned-words/raw/refs/heads/master/ru