-
Notifications
You must be signed in to change notification settings - Fork 169
/
ace-team-issues-config.yml
307 lines (299 loc) · 17 KB
/
ace-team-issues-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
title: 'Issues detailed view - ACE Team'
output:
format: html
filename: 'docs/ace-team-issues.html'
setup: |
function sleep(milliseconds) {
const date = Date.now();
let currentDate = null;
do {currentDate = Date.now();}
while (currentDate - date < milliseconds);
}
userdata.count = async function(repo,label) {
sleep(2000)
var results;
if(label === "" ) {
results = await github.search.issuesAndPullRequests(
{ q: `repo:${repo} is:issue is:open -label:enhancement` }
)
}
else if(label === "closed"){
results = await github.search.issuesAndPullRequests(
{ q: `repo:${repo} is:issue is:closed closed:>${date("-30 days")}`}
)
}
else if(label === "stale") {
results = await github.search.issuesAndPullRequests(
{ q: `repo:${repo} is:issue is:open -label:enhancement created:<${date("-30 days")}`}
)
}
else {
results = await github.search.issuesAndPullRequests(
{ q: `repo:${repo} is:issue is:open label:${label}`}
)
}
if(results.data.items.length === 0){
return '0'
}
else{
return results.data.total_count
}
}
userdata.url = async function(repo,label) {
sleep(2000)
var url;
var today = new Date();
var pastDate = new Date(today);
if(label === "" ) {
url = 'https://github.com/'+repo+'/issues?q=is%3Aissue+is%3A'+ 'open'+ ' -label%3Aenhancement'
}
else if(label === "closed"){
pastDate.setDate(pastDate.getDate() - 30);
var closedDate = pastDate.toISOString().split("T")[0];
url = 'https://github.com/' + repo + '/issues?q=is%3Aissue+is%3A' + 'closed' + '+closed%3A>'+ closedDate
}
else if(label === "stale") {
pastDate.setDate(pastDate.getDate() - 30);
var staledate = pastDate.toISOString().split("T")[0];
url = 'https://github.com/' + repo + '/issues?q=is%3Aissue+is%3A' + 'open' + ' -label%3Aenhancement' + '+created%3A<'+ staledate
}
else{
url = 'https://github.com/'+repo+'/issues?q=is%3Aissue+is%3A'+'open'+'+label%3A'+label
}
return url
}
userdata.color = async function(value,label) {
var resultColor='#282A35'
if((label === '') && (value>=5))
resultColor='red'
else if((label === 'need-to-triage') && (value>=3))
resultColor='yellow'
else if((label === 'stale') && (value>=3))
resultColor='red'
return resultColor
}
sections:
- title: ''
widgets:
- type: 'table'
headers:
- 'Action'
- 'Open (excl. enhancements)'
- 'Need-to-triage'
- 'Enhancement'
- 'Question'
- 'Bug'
- 'Documentation'
- 'Performance-issue'
- 'Waiting-for-customer'
- 'External-dependency'
- 'Stale(30_days old)'
- 'Closed(last_30 days)'
elements:
- - value: 'azure login'
- value: '{{ userdata.count("Azure/login","") }}'
url: '{{ userdata.url("Azure/login","") }}'
- value: '{{ userdata.count("Azure/login","need-to-triage") }}'
url: '{{ userdata.url("Azure/login","need-to-triage") }}'
- value: '{{ userdata.count("Azure/login","enhancement") }}'
url: '{{ userdata.url("Azure/login","enhancement") }}'
- value: '{{ userdata.count("Azure/login","question") }}'
url: '{{ userdata.url("Azure/login","question") }}'
- value: '{{ userdata.count("Azure/login","bug") }}'
url: '{{ userdata.url("Azure/login","bug") }}'
- value: '{{ userdata.count("Azure/login","documentation") }}'
url: '{{ userdata.url("Azure/login","documentation") }}'
- value: '{{ userdata.count("Azure/login","performance-issue") }}'
url: '{{ userdata.url("Azure/login","performance-issue") }}'
- value: '{{ userdata.count("Azure/login","waiting-for-customer") }}'
url: '{{ userdata.url("Azure/login","waiting-for-customer") }}'
- value: '{{ userdata.count("Azure/login","external-dependency") }}'
url: '{{ userdata.url("Azure/login","external-dependency") }}'
- value: '{{ userdata.count("Azure/login","stale") }}'
url: '{{ userdata.url("Azure/login","stale") }}'
- value: '{{ userdata.count("Azure/login","closed") }}'
url: '{{ userdata.url("Azure/login","closed") }}'
- - value: 'aci-deploy'
- value: '{{ userdata.count("Azure/aci-deploy","") }}'
url: '{{ userdata.url("Azure/aci-deploy","") }}'
- value: '{{ userdata.count("Azure/aci-deploy","need-to-triage") }}'
url: '{{ userdata.url("Azure/aci-deploy","need-to-triage") }}'
- value: '{{ userdata.count("Azure/aci-deploy","enhancement") }}'
url: '{{ userdata.url("Azure/aci-deploy","enhancement") }}'
- value: '{{ userdata.count("Azure/aci-deploy","question") }}'
url: '{{ userdata.url("Azure/aci-deploy","question") }}'
- value: '{{ userdata.count("Azure/aci-deploy","bug") }}'
url: '{{ userdata.url("Azure/aci-deploy","bug") }}'
- value: '{{ userdata.count("Azure/aci-deploy","documentation") }}'
url: '{{ userdata.url("Azure/aci-deploy","documentation") }}'
- value: '{{ userdata.count("Azure/aci-deploy","performance-issue") }}'
url: '{{ userdata.url("Azure/aci-deploy","performance-issue") }}'
- value: '{{ userdata.count("Azure/aci-deploy","waiting-for-customer") }}'
url: '{{ userdata.url("Azure/aci-deploy","waiting-for-customer") }}'
- value: '{{ userdata.count("Azure/aci-deploy","external-dependency") }}'
url: '{{ userdata.url("Azure/aci-deploy","external-dependency") }}'
- value: '{{ userdata.count("Azure/aci-deploy","stale") }}'
url: '{{ userdata.url("Azure/aci-deploy","stale") }}'
- value: '{{ userdata.count("Azure/aci-deploy","closed") }}'
url: '{{ userdata.url("Azure/aci-deploy","closed") }}'
- - value: 'build-vm-image'
- value: '{{ userdata.count("Azure/build-vm-image","") }}'
url: '{{ userdata.url("Azure/build-vm-image","") }}'
- value: '{{ userdata.count("Azure/build-vm-image","need-to-triage") }}'
url: '{{ userdata.url("Azure/build-vm-image","need-to-triage") }}'
- value: '{{ userdata.count("Azure/build-vm-image","enhancement") }}'
url: '{{ userdata.url("Azure/build-vm-image","enhancement") }}'
- value: '{{ userdata.count("Azure/build-vm-image","question") }}'
url: '{{ userdata.url("Azure/build-vm-image","question") }}'
- value: '{{ userdata.count("Azure/build-vm-image","bug") }}'
url: '{{ userdata.url("Azure/build-vm-image","bug") }}'
- value: '{{ userdata.count("Azure/build-vm-image","documentation") }}'
url: '{{ userdata.url("Azure/build-vm-image","documentation") }}'
- value: '{{ userdata.count("Azure/build-vm-image","performance-issue") }}'
url: '{{ userdata.url("Azure/build-vm-image","performance-issue") }}'
- value: '{{ userdata.count("Azure/build-vm-image","waiting-for-customer") }}'
url: '{{ userdata.url("Azure/build-vm-image","waiting-for-customer") }}'
- value: '{{ userdata.count("Azure/build-vm-image","external-dependency") }}'
url: '{{ userdata.url("Azure/build-vm-image","external-dependency") }}'
- value: '{{ userdata.count("Azure/build-vm-image","stale") }}'
url: '{{ userdata.url("Azure/build-vm-image","stale") }}'
- value: '{{ userdata.count("Azure/build-vm-image","closed") }}'
url: '{{ userdata.url("Azure/build-vm-image","closed") }}'
- - value: 'powershell'
- value: '{{ userdata.count("Azure/powershell","") }}'
url: '{{ userdata.url("Azure/powershell","") }}'
- value: '{{ userdata.count("Azure/powershell","need-to-triage") }}'
url: '{{ userdata.url("Azure/powershell","need-to-triage") }}'
- value: '{{ userdata.count("Azure/powershell","enhancement") }}'
url: '{{ userdata.url("Azure/powershell","enhancement") }}'
- value: '{{ userdata.count("Azure/powershell","question") }}'
url: '{{ userdata.url("Azure/powershell","question") }}'
- value: '{{ userdata.count("Azure/powershell","bug") }}'
url: '{{ userdata.url("Azure/powershell","bug") }}'
- value: '{{ userdata.count("Azure/powershell","documentation") }}'
url: '{{ userdata.url("Azure/powershell","documentation") }}'
- value: '{{ userdata.count("Azure/powershell","performance-issue") }}'
url: '{{ userdata.url("Azure/powershell","performance-issue") }}'
- value: '{{ userdata.count("Azure/powershell","waiting-for-customer") }}'
url: '{{ userdata.url("Azure/powershell","waiting-for-customer") }}'
- value: '{{ userdata.count("Azure/powershell","external-dependency") }}'
url: '{{ userdata.url("Azure/powershell","external-dependency") }}'
- value: '{{ userdata.count("Azure/powershell","stale") }}'
url: '{{ userdata.url("Azure/powershell","stale") }}'
- value: '{{ userdata.count("Azure/powershell","closed") }}'
url: '{{ userdata.url("Azure/powershell","closed") }}'
- - value: 'policy-compliance-scan'
- value: '{{ userdata.count("Azure/policy-compliance-scan","") }}'
url: '{{ userdata.url("Azure/policy-compliance-scan","") }}'
- value: '{{ userdata.count("Azure/policy-compliance-scan","need-to-triage") }}'
url: '{{ userdata.url("Azure/policy-compliance-scan","need-to-triage") }}'
- value: '{{ userdata.count("Azure/policy-compliance-scan","enhancement") }}'
url: '{{ userdata.url("Azure/policy-compliance-scan","enhancement") }}'
- value: '{{ userdata.count("Azure/policy-compliance-scan","question") }}'
url: '{{ userdata.url("Azure/policy-compliance-scan","question") }}'
- value: '{{ userdata.count("Azure/policy-compliance-scan","bug") }}'
url: '{{ userdata.url("Azure/policy-compliance-scan","bug") }}'
- value: '{{ userdata.count("Azure/policy-compliance-scan","documentation") }}'
url: '{{ userdata.url("Azure/policy-compliance-scan","documentation") }}'
- value: '{{ userdata.count("Azure/policy-compliance-scan","performance-issue") }}'
url: '{{ userdata.url("Azure/policy-compliance-scan","performance-issue") }}'
- value: '{{ userdata.count("Azure/policy-compliance-scan","waiting-for-customer") }}'
url: '{{ userdata.url("Azure/policy-compliance-scan","waiting-for-customer") }}'
- value: '{{ userdata.count("Azure/policy-compliance-scan","external-dependency") }}'
url: '{{ userdata.url("Azure/policy-compliance-scan","external-dependency") }}'
- value: '{{ userdata.count("Azure/policy-compliance-scan","stale") }}'
url: '{{ userdata.url("Azure/policy-compliance-scan","stale") }}'
- value: '{{ userdata.count("Azure/policy-compliance-scan","closed") }}'
url: '{{ userdata.url("Azure/policy-compliance-scan","closed") }}'
- - value: 'manage-azure-policy'
- value: '{{ userdata.count("Azure/manage-azure-policy","") }}'
url: '{{ userdata.url("Azure/manage-azure-policy","") }}'
- value: '{{ userdata.count("Azure/manage-azure-policy","need-to-triage") }}'
url: '{{ userdata.url("Azure/manage-azure-policy","need-to-triage") }}'
- value: '{{ userdata.count("Azure/manage-azure-policy","enhancement") }}'
url: '{{ userdata.url("Azure/manage-azure-policy","enhancement") }}'
- value: '{{ userdata.count("Azure/manage-azure-policy","question") }}'
url: '{{ userdata.url("Azure/manage-azure-policy","question") }}'
- value: '{{ userdata.count("Azure/manage-azure-policy","bug") }}'
url: '{{ userdata.url("Azure/manage-azure-policy","bug") }}'
- value: '{{ userdata.count("Azure/manage-azure-policy","documentation") }}'
url: '{{ userdata.url("Azure/manage-azure-policy","documentation") }}'
- value: '{{ userdata.count("Azure/manage-azure-policy","performance-issue") }}'
url: '{{ userdata.url("Azure/manage-azure-policy","performance-issue") }}'
- value: '{{ userdata.count("Azure/manage-azure-policy","waiting-for-customer") }}'
url: '{{ userdata.url("Azure/manage-azure-policy","waiting-for-customer") }}'
- value: '{{ userdata.count("Azure/manage-azure-policy","external-dependency") }}'
url: '{{ userdata.url("Azure/manage-azure-policy","external-dependency") }}'
- value: '{{ userdata.count("Azure/manage-azure-policy","stale") }}'
url: '{{ userdata.url("Azure/manage-azure-policy","stale") }}'
- value: '{{ userdata.count("Azure/manage-azure-policy","closed") }}'
url: '{{ userdata.url("Azure/manage-azure-policy","closed") }}'
- - value: 'arm-deploy'
- value: '{{ userdata.count("Azure/arm-deploy","") }}'
url: '{{ userdata.url("Azure/arm-deploy","") }}'
- value: '{{ userdata.count("Azure/arm-deploy","need-to-triage") }}'
url: '{{ userdata.url("Azure/arm-deploy","need-to-triage") }}'
- value: '{{ userdata.count("Azure/arm-deploy","enhancement") }}'
url: '{{ userdata.url("Azure/arm-deploy","enhancement") }}'
- value: '{{ userdata.count("Azure/arm-deploy","question") }}'
url: '{{ userdata.url("Azure/arm-deploy","question") }}'
- value: '{{ userdata.count("Azure/arm-deploy","bug") }}'
url: '{{ userdata.url("Azure/arm-deploy","bug") }}'
- value: '{{ userdata.count("Azure/arm-deploy","documentation") }}'
url: '{{ userdata.url("Azure/arm-deploy","documentation") }}'
- value: '{{ userdata.count("Azure/arm-deploy","performance-issue") }}'
url: '{{ userdata.url("Azure/arm-deploy","performance-issue") }}'
- value: '{{ userdata.count("Azure/arm-deploy","waiting-for-customer") }}'
url: '{{ userdata.url("Azure/arm-deploy","waiting-for-customer") }}'
- value: '{{ userdata.count("Azure/arm-deploy","external-dependency") }}'
url: '{{ userdata.url("Azure/arm-deploy","external-dependency") }}'
- value: '{{ userdata.count("Azure/arm-deploy","stale") }}'
url: '{{ userdata.url("Azure/arm-deploy","stale") }}'
- value: '{{ userdata.count("Azure/arm-deploy","closed") }}'
url: '{{ userdata.url("Azure/arm-deploy","closed") }}'
- - value: 'Azure/cli'
- value: '{{ userdata.count("Azure/cli","") }}'
url: '{{ userdata.url("Azure/cli","") }}'
- value: '{{ userdata.count("Azure/cli","need-to-triage") }}'
url: '{{ userdata.url("Azure/cli","need-to-triage") }}'
- value: '{{ userdata.count("Azure/cli","enhancement") }}'
url: '{{ userdata.url("Azure/cli","enhancement") }}'
- value: '{{ userdata.count("Azure/cli","question") }}'
url: '{{ userdata.url("Azure/cli","question") }}'
- value: '{{ userdata.count("Azure/cli","bug") }}'
url: '{{ userdata.url("Azure/cli","bug") }}'
- value: '{{ userdata.count("Azure/cli","documentation") }}'
url: '{{ userdata.url("Azure/cli","documentation") }}'
- value: '{{ userdata.count("Azure/cli","performance-issue") }}'
url: '{{ userdata.url("Azure/cli","performance-issue") }}'
- value: '{{ userdata.count("Azure/cli","waiting-for-customer") }}'
url: '{{ userdata.url("Azure/cli","waiting-for-customer") }}'
- value: '{{ userdata.count("Azure/cli","external-dependency") }}'
url: '{{ userdata.url("Azure/cli","external-dependency") }}'
- value: '{{ userdata.count("Azure/cli","stale") }}'
url: '{{ userdata.url("Azure/cli","stale") }}'
- value: '{{ userdata.count("Azure/cli","closed") }}'
url: '{{ userdata.url("Azure/cli","closed") }}'
- - value: 'docker-login'
- value: '{{ userdata.count("Azure/docker-login","") }}'
url: '{{ userdata.url("Azure/docker-login","") }}'
- value: '{{ userdata.count("Azure/docker-login","need-to-triage") }}'
url: '{{ userdata.url("Azure/docker-login","need-to-triage") }}'
- value: '{{ userdata.count("Azure/docker-login","enhancement") }}'
url: '{{ userdata.url("Azure/docker-login","enhancement") }}'
- value: '{{ userdata.count("Azure/docker-login","question") }}'
url: '{{ userdata.url("Azure/docker-login","question") }}'
- value: '{{ userdata.count("Azure/docker-login","bug") }}'
url: '{{ userdata.url("Azure/docker-login","bug") }}'
- value: '{{ userdata.count("Azure/docker-login","documentation") }}'
url: '{{ userdata.url("Azure/docker-login","documentation") }}'
- value: '{{ userdata.count("Azure/docker-login","performance-issue") }}'
url: '{{ userdata.url("Azure/docker-login","performance-issue") }}'
- value: '{{ userdata.count("Azure/docker-login","waiting-for-customer") }}'
url: '{{ userdata.url("Azure/docker-login","waiting-for-customer") }}'
- value: '{{ userdata.count("Azure/docker-login","external-dependency") }}'
url: '{{ userdata.url("Azure/docker-login","external-dependency") }}'
- value: '{{ userdata.count("Azure/docker-login","stale") }}'
url: '{{ userdata.url("Azure/docker-login","stale") }}'
- value: '{{ userdata.count("Azure/docker-login","closed") }}'
url: '{{ userdata.url("Azure/docker-login","closed") }}'