Skip to content

Commit d6019d3

Browse files
authored
Create profanity-filter.yml (#284)
Adds a profanity filter to automatically remove profane content from issues and pull requests, including their titles, bodies, and comments. Observed self-filtered profanity in issue #273. For more information, see [Profanity filter](https://github.com/IEvangelist/profanity-filter).
1 parent c217f10 commit d6019d3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Profanity filter
2+
3+
on:
4+
issue_comment:
5+
types: [created, edited]
6+
issues:
7+
types: [opened, edited, reopened]
8+
pull_request:
9+
types: [opened, edited, reopened]
10+
11+
jobs:
12+
apply-filter:
13+
name: Apply profanity filter
14+
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
19+
steps:
20+
- name: Profanity filter
21+
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' }}
22+
uses: IEvangelist/profanity-filter@main
23+
id: profanity-filter
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
replacement-strategy: asterisk

0 commit comments

Comments
 (0)