-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
220 lines (187 loc) · 6.62 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="https://d26b395fwzu5fz.cloudfront.net/keen-dataviz-1.1.3.css" rel="stylesheet" />
<style>
*{
font-family: 'Gotham Rounded SSm A', 'Gotham Rounded SSm B', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
h1, h2, h3, h4, h5{
font-weight: normal;
text-decoration: none;
}
p, h2, h3{
margin: auto;
max-width: 1000px;
line-height: 1.5;
padding-bottom: 0.5em;
padding-top: 0.5em;
}
#avatar {
float: left;
width: 96px;
padding-right: 10px;
padding-bottom: 10px;
}
* {
box-sizing: border-box;
}
.flex-container {
margin-left: 25px;
resize: horizontal;
overflow: hidden;
display: flex;
}
.initial {
flex: initial;
}
.auto {
width: 30%;
margin: 10px;
flex: auto;
}
code {
background-color: #eee;
padding: 2px;
border: thin solid silver;
border-radius: 4px;
}
</style>
</head>
<body>
<!-- Target DOM Node -->
<a href='https://github.com/meeseeksbox'>
<img id='avatar' src='https://avatars2.githubusercontent.com/u/23667696?s=200&v=4'>
</a>
<h1>Meeseeks Box Usage</h1>
<div class='chart' id="keen-example-chart"> </div>
<div class="chart" id="backport-success">auto</div>
<div class="flex-container" style='height:340px'>
<div class="item initial chart" id="keen-chart-2">auto</div>
<div class="item auto chart" id="total-pr">auto</div>
</div>
<h2>Use MrMeeseeks on Your Own repo</h2>
<p>Head <a href='https://github.com/apps/lumberbot-app/'>here</a> and install and activate the bot on the repository you'd like.<p>
<p>Now any commiter on said repository can say <code>@meeseeksdev backport to
[BRANCHNAME]</code> on a merged PR, and Mr Meeseeks will attempt to
backport it, and issue a Pull Request if it was able to do so. You can also
set a <b>Label</b> or a <b>Milestone</b> which description wontains <code>
on-merge: backport to [BRANCHNAME]</code>, and MrMeeseeks will
automatically create the Backport once the PR is merged.<p/>
<h2> Help </h2>
<p>You can help by contributing code to Mr Meeseeks, or helping
by manually fixing conflicts, when MrMeeseeks cannot automatically apply the
backport. You can find all issues that still need manual backporting by
looking at the "Still Needs Manual Backport" tag on GitHub <a
href='https://github.com/search?q=label%3A%22Still+Needs+Manual+Backport%22+is%3Aopen&state=closed&type=Issues'>Click
Here</a> to See these.</p>
<h2> More ? </h3>
<p>MrMeeseeks is not limited to backport; it can add labels, remove labels, merge, open and close issues ...etc, and support per-repository and per user configuration. Thus if you like to give limited permission to a subset of your users, you can. See <a href='https://github.com/MeeseeksBox/MeeseeksDev#what-can-a-meeseeksbox-do-'> The README </a> for more informations</p>
<h2> Thanks </h2>
<p>Thanks to <a href='https://www.heroku.com/'> Heroku </a> for hosting, and
<a href='https://keen.io/'>Keen</a> for the metrics and Graph show above, Mr
Meeseeks is also friends with <a href='https://github.com/miss-islington'>Miss
Islington</a>.</p>
<script src="https://d26b395fwzu5fz.cloudfront.net/keen-analysis-1.2.2.js" type="text/javascript"></script>
<script src="https://d26b395fwzu5fz.cloudfront.net/keen-dataviz-1.1.3.js" type="text/javascript"></script>
<script type="text/javascript">
var client = new Keen({
projectId: "59e6286dc9e77c0001097979",
readKey: "3ED31C47C7576FB00C2150C4DFE176EC96B379CE631051B89F83243160668F201FF1FCE12B97A5B579B4ACDA4282CD71BE218EF858963B70E89ACDFAEFE80053E9B6900C2DA61BD277F107B05D3ED16240DC5527B3C9BCCA6895DA8CF479B9E3"
});
var chart = new Keen.Dataviz()
.el("#keen-example-chart")
.height(320)
.title("Activity / repository / week on a 52 week period")
.type("bar")
.stacked(true)
.prepare();
client
.query("count", {
event_collection: "dispatch",
filters:[{"operator":"not_contains","property_name":"mention.repository","property_value":"/test1"}],
group_by: ["mention.repository"],
interval: "weekly",
timeframe: "this_52_weeks",
timezone: "US/Pacific"
})
.then(function(res) {
chart.data(res).render();
})
.catch(function(err) {
chart.message(err.message);
});
var chart2 = new Keen.Dataviz()
.el("#keen-chart-2")
.height(340)
.width('400px')
.title("Number of backport/Year/Project.")
.type("table")
.prepare();
client
.query("count", {
event_collection: "dispatch",
filters: [{"operator":"contains","property_name":"mention.command","property_value":"backport"}],
group_by: ["mention.organisation"],
timeframe: "this_5_years",
timezone: "US/Pacific"
})
.then(function(res) {
var data = chart2.data(res);
console.log(data);
data.dataset = data.dataset.sortRows('desc', function(arr){
console.log(arr);
return arr[1]
}
);
data.dataset.matrix[0] = ['Organisation', 'Backports'];
data.render()
})
.catch(function(err) {
chart2.message(err.message);
});
var chart3 = new Keen.Dataviz()
.el("#total-pr")
.height(340)
.title("All attempted backports (excluding test repositories)")
.type("metric")
.prepare();
client
.query("count", {
event_collection: "dispatch",
filters: [{"operator":"contains","property_name":"mention.command","property_value":"backport"},{"operator":"not_contains","property_name":"mention.repository","property_value":"test1"}],
timeframe: "this_14_years",
timezone: "US/Pacific"
})
.then(function(res) {
chart3.data(res).render();
})
.catch(function(err) {
chart3.message(err.message);
});
var chart4 = new Keen.Dataviz()
.el("#backport-success")
.height(240)
.title("Backport Success")
.stacked(true)
.type("columnchart")
.prepare();
client
.query("count", {
event_collection: "backport_stats",
filters: [{"operator":"not_contains","property_name":"slug","property_value":"test1"},{"operator":"ne","property_name":"reason","property_value":"Sucess"}],
group_by: ["reason"],
interval: "weekly",
timeframe: "this_52_weeks",
timezone: "US/Pacific"
})
.then(function(res) {
chart4.data(res).render();
})
.catch(function(err) {
chart.message(err.message);
});
</script>
</body>
</html>