Skip to content

Commit bef9820

Browse files
committed
#12: Avoid offensive comments in pull requests
1 parent 617130a commit bef9820

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/profanity.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Configuration for probot-profanity - https://github.com/nickgarlis/probot-profanity
2+
3+
# Language to detect profanity in.
4+
# Choose one of the following: 'de', en', 'es', 'fr', 'it', 'nl', 'pt', 'ru'
5+
language: 'en'
6+
7+
# Set to true to censor issues (defaults to false)
8+
censor: false
9+
10+
# Placeholder to replace the letters of a forbidden word
11+
placeholder: '*'
12+
13+
# A list of extra forbidden words. Set to `[]` to disable
14+
extraWords: []
15+
16+
# A list of forbidden words to be ignored. Set to `[]` to disable
17+
exemptWords: []
18+
19+
# Number of days of inactivity before an inappropriate Issue or Pull Request is closed.
20+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as inappropriate.
21+
daysUntilClose: 2
22+
23+
# Issues or Pull Requests with these labels will never be considered inappropriate. Set to `[]` to disable
24+
exemptLabels: []
25+
26+
# Set to true to ignore issues in a project (defaults to false)
27+
exemptProjects: false
28+
29+
# Set to true to ignore issues in a milestone (defaults to false)
30+
exemptMilestones: false
31+
32+
# Label to use when marking as inappropriate
33+
profanityLabel: inappropriate
34+
35+
# Comment to post when marking as profanity. Set to `false` to disable
36+
markComment: >
37+
This issue has been automatically marked as inappropriate because
38+
it contains forbidden words. It will be closed if no further edit
39+
occurs. Thank you for your contributions.
40+
41+
# Comment to post when removing the inappropriate label.
42+
# unmarkComment: >
43+
# Your comment here.
44+
45+
# Comment to post when closing an inappropriate Issue or Pull Request.
46+
# closeComment: >
47+
# Your comment here.
48+
49+
# Limit the number of actions per hour, from 1-30. Default is 30
50+
limitPerRun: 30
51+
52+
# Limit to only `issues` or `pulls`
53+
# only: issues
54+
55+
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
56+
# pulls:
57+
# markComment: >
58+
# This issue has been automatically marked as inappropriate because
59+
# it contains forbidden words. It will be closed if no further edit
60+
# occurs. Thank you for your contributions.
61+
62+
# issues:
63+
# exemptLabels:
64+
# - somelabel

0 commit comments

Comments
 (0)