File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments