Skip to content

Commit 1bb640a

Browse files
authored
Create profanity.yml
1 parent d746f3a commit 1bb640a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/profanity.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# The name of the workflow
2+
name: Profanity filter
3+
4+
# Trigger on issue or pull requests, that are opened, edited, or reopened
5+
on:
6+
pull_request:
7+
types: [opened, edited, reopened]
8+
9+
# Required permissions
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
14+
jobs:
15+
# Name the job whatever you'd like
16+
apply-filter:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
22+
# Name the step anything that makes sense to you
23+
- name: Scan issue or pull request for profanity
24+
# Conditionally run the step if the actor isn't a bot
25+
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' }}
26+
uses: IEvangelist/profanity-filter@main
27+
id: profanity-filter
28+
with:
29+
token: ${{ secrets.GITHUB_TOKEN }}
30+
# See https://bit.ly/potty-mouth-replacement-strategies
31+
replacement-strategy: Emoji # See Replacement strategy

0 commit comments

Comments
 (0)