Skip to content

Commit 45b11bb

Browse files
strugeeHainish
authored andcommitted
Implement issue labeller bot (EFForg#11615)
1 parent 5863af0 commit 45b11bb

31 files changed

+5727
-0
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!-- Please fill out ALL information here, and don't mess with the formatting. -->
2+
<!-- HTTPS Everywhere uses a bot to manage issues and if you change things, it won't be able to understand. -->
3+
4+
<!-- Delete all but one of the next five lines to indicate the type of issue you're filing. -->
5+
Type: ruleset issue
6+
Type: new ruleset
7+
Type: code issue
8+
Type: feature request
9+
Type: other
10+
11+
<!-- If you're reporting a ruleset issue, fill out this section. -->
12+
<!-- If you want to report subdomains, fill in the top-level domain here and make a note of the subdomain below. -->
13+
<!-- If you want to report two separate domains, please open two separate issues. -->
14+
Domain:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# The ID of your GitHub integration
2+
INTEGRATION_ID=
3+
WEBHOOK_SECRET=development
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 2017
4+
},
5+
"env": {
6+
"es6": true,
7+
"node": true
8+
},
9+
"extends": [
10+
"eslint:recommended"
11+
],
12+
"rules": {
13+
"array-callback-return": "error",
14+
"array-element-newline": "off",
15+
"arrow-parens": [
16+
"error",
17+
"as-needed"
18+
],
19+
"arrow-spacing": [
20+
"error",
21+
{
22+
"after": true,
23+
"before": true
24+
}
25+
],
26+
"block-spacing": "error",
27+
"brace-style": [
28+
"error",
29+
"1tbs"
30+
],
31+
"callback-return": "error",
32+
"camelcase": "error",
33+
"capitalized-comments": "off",
34+
"comma-dangle": "error",
35+
"comma-spacing": [
36+
"error",
37+
{
38+
"after": true,
39+
"before": false
40+
}
41+
],
42+
"comma-style": [
43+
"error",
44+
"last"
45+
],
46+
"complexity": "error",
47+
"consistent-return": "off",
48+
"curly": "off",
49+
"default-case": "off",
50+
"dot-notation": "error",
51+
"eol-last": "error",
52+
"eqeqeq": "error",
53+
"func-call-spacing": "error",
54+
"func-names": "off",
55+
"func-style": [
56+
"error",
57+
"declaration"
58+
],
59+
"handle-callback-err": "error",
60+
"indent": [2, 2],
61+
"key-spacing": "error",
62+
"keyword-spacing": [
63+
"error",
64+
{
65+
"after": true,
66+
"before": true
67+
}
68+
],
69+
"linebreak-style": [
70+
"error",
71+
"unix"
72+
],
73+
"lines-around-comment": "error",
74+
"no-await-in-loop": "error",
75+
"no-bitwise": "error",
76+
"no-buffer-constructor": "error",
77+
"no-caller": "error",
78+
"no-confusing-arrow": "error",
79+
"no-continue": "error",
80+
"no-eq-null": "error",
81+
"no-eval": "error",
82+
"no-extend-native": "error",
83+
"no-extra-bind": "error",
84+
"no-floating-decimal": "error",
85+
"no-implied-eval": "error",
86+
"no-invalid-this": "error",
87+
"no-label-var": "error",
88+
"no-labels": "error",
89+
"no-lonely-if": "error",
90+
"no-loop-func": "error",
91+
"no-mixed-operators": "error",
92+
"no-mixed-requires": "off",
93+
"no-mixed-spaces-and-tabs": "error",
94+
"no-multi-spaces": "error",
95+
"no-negated-in-lhs": "error",
96+
"no-nested-ternary": "error",
97+
"no-new": "error",
98+
"no-new-func": "error",
99+
"no-new-object": "error",
100+
"no-new-require": "error",
101+
"no-new-wrappers": "error",
102+
"no-path-concat": "error",
103+
"no-return-await": "error",
104+
"no-self-compare": "error",
105+
"no-sequences": "error",
106+
"no-spaced-func": "error",
107+
"no-sync": "error",
108+
"no-throw-literal": "error",
109+
"no-trailing-spaces": "error",
110+
"no-undef-init": "error",
111+
"no-unused-expressions": "error",
112+
"no-use-before-define": "error",
113+
"no-useless-call": "error",
114+
"no-useless-concat": "error",
115+
"no-var": "error",
116+
"no-warning-comments": "off",
117+
"no-whitespace-before-property": "error",
118+
"nonblock-statement-body-position": "error",
119+
"object-curly-spacing": [
120+
"error",
121+
"never"
122+
],
123+
"object-property-newline": "error",
124+
"one-var": "off",
125+
"one-var-declaration-per-line": "error",
126+
"prefer-arrow-callback": "error",
127+
"prefer-const": "error",
128+
"prefer-promise-reject-errors": "error",
129+
"quotes": [
130+
"error",
131+
"single"
132+
],
133+
"require-await": "error",
134+
"rest-spread-spacing": "error",
135+
"semi": [
136+
"error",
137+
"always"
138+
],
139+
"semi-spacing": "error",
140+
"semi-style": [
141+
"error",
142+
"last"
143+
],
144+
"space-before-blocks": "error",
145+
"space-in-parens": [
146+
"error",
147+
"never"
148+
],
149+
"space-infix-ops": "error",
150+
"spaced-comment": [
151+
"error",
152+
"always"
153+
],
154+
"strict": "error",
155+
"unicode-bom": [
156+
"error",
157+
"never"
158+
],
159+
"vars-on-top": "error",
160+
"yoda": [
161+
"error",
162+
"never"
163+
]
164+
}
165+
}

utils/issue-format-bot/.gitignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (http://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# Typescript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
*.pem

0 commit comments

Comments
 (0)