Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit dc6d6a1

Browse files
author
Isaac Würth
committed
Bug
1 parent e7cbfa9 commit dc6d6a1

File tree

4 files changed

+156
-14
lines changed

4 files changed

+156
-14
lines changed

src/models/milestone.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,11 @@ class milestone extends hasTimes {
106106
this.get(`projects/${encodeURIComponent(this.project_id)}/issues/?milestone=${this.title}`)
107107
.then(data => data.body)
108108
.then(rawIssues => {
109-
let issues = []
109+
this.issues = []
110110
rawIssues.forEach(data => {
111111
let issue = new Issue(this.config, data)
112-
issues.push(issue)
112+
this.issues.push(issue)
113113
})
114-
this.issues = issues
115114
resolve()
116115
})
117116
})

src/output/charts.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const Base = require('./base');
22
const ChartJsImage = require('chartjs-to-image');
3+
const _ = require('underscore')
34

45
const format = {
56
headline: h => `\n## ${h}\n`,
@@ -54,12 +55,11 @@ class chart extends Base {
5455
return projectStats.getUrl()
5556
}
5657

57-
getMemeberLink() {
58+
getMilestoneLink() {
5859
const memberStats = new ChartJsImage();
59-
let milestones = {}
60-
this.report.milestones.forEach(milestone => {
61-
milestones[milestone.title] = milestone.stats;
62-
})
60+
let labels = _.pluck(this.report.milestones, 'title')
61+
let stats = _.pluck(this.report.milestones, 'stats')
62+
6363
memberStats.setConfig({
6464
type: 'bar',
6565
data: {
@@ -91,7 +91,7 @@ class chart extends Base {
9191
return memberStats.getUrl();
9292
}
9393

94-
getMilestoneLink(){
94+
getMemeberLink(){
9595
const memberStats = new ChartJsImage();
9696
memberStats.setConfig({
9797
type: 'bar',

src/output/epj.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ class epj extends Base {
4040
stats += `\n`;
4141
stats += "\n\n![alt Memebrs](" + this.chart.getMemeberLink() + ' "Members")\n\n'
4242

43-
this.headline('Milestones')
44-
45-
stats += `\n`;s
46-
stats += "\n\n![alt Milestone](" + this.chart.getMilestoneLink() + ' "Milestone")\n\n'
47-
4843

4944
this.write(stats.substr(1));
5045
}

src/timereport.md

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
2+
# Time Report
3+
Autogenerated with CI/CD and gtt.
4+
5+
## Project
6+
7+
* **total estimate**: 9d 7h 15m
8+
* **total spent**: 13d 5m
9+
* **spent**: 13d 5m
10+
11+
![alt Project summary](https://quickchart.io/chart?c=%7Btype%3A%27bar%27%2Cdata%3A%7Blabels%3A%5B%27total+estimate%27%2C%27total+spent%27%2C%27spent%27%5D%2Cdatasets%3A%5B%7Blabel%3A%27%5Bh%5D%27%2Cdata%3A%5B79.25%2C104.08%2C104.08%5D%2CminBarLength%3A107.08%7D%5D%7D%2Coptions%3A%7Bresponsive%3Atrue%2Clegend%3A%7Bposition%3A%27top%27%7D%2Ctitle%3A%7Bdisplay%3Atrue%2Ctext%3A%27Project%27%7D%2Cplugins%3A%7Bdatalabels%3A%7Bdisplay%3Atrue%2Calign%3A%27bottom%27%2CbackgroundColor%3A%27%23ccc%27%2CborderRadius%3A3%7D%7D%7D%7D&w=500&h=300&bkg=%23ffffff&f=png "Project summary")
12+
13+
## Members
14+
15+
* **timon.erhart**: 3d 5h 45m
16+
* **rafael.hangartner**: 2d 7h 45m
17+
* **isaac.wuerth**: 3d 3h
18+
* **jari.elmer**: 2d 7h 35m
19+
20+
21+
![alt Memebrs](https://quickchart.io/chart?c=%7Btype%3A%27bar%27%2Cdata%3A%7Blabels%3A%5B%27timon.erhart%27%2C%27rafael.hangartner%27%2C%27isaac.wuerth%27%2C%27jari.elmer%27%5D%2Cdatasets%3A%5B%7Blabel%3A%27%5Bh%5D%27%2Cdata%3A%5B29.75%2C23.75%2C27%2C23.58%5D%7D%5D%7D%2Coptions%3A%7Bresponsive%3Atrue%2Clegend%3A%7Bposition%3A%27top%27%7D%2Ctitle%3A%7Bdisplay%3Atrue%2Ctext%3A%27Members%27%7D%2Cplugins%3A%7Bdatalabels%3A%7Bdisplay%3Atrue%2Calign%3A%27bottom%27%2CbackgroundColor%3A%27%23ccc%27%2CborderRadius%3A3%7D%7D%7D%7D&w=500&h=300&bkg=%23ffffff&f=png "Members")
22+
23+
24+
25+
## Issues
26+
27+
| iid | title | spent | total estimate |
28+
| --- | -------------------------------------------------------- | --------- | -------------- |
29+
| 20 | Projektplan und AP-Plan aktualisieren | 1h 30m | |
30+
| 19 | Kick-Off Meeting M2 | 1h 30m | |
31+
| 18 | NF Anforderungen | 1h 35m | |
32+
| 17 | MVP/Features definieren | 2h 15m | 1d |
33+
| 16 | UI Entwurf | 2h 15m | |
34+
| 15 | Domain-Model entwerfen | 1h 45m | |
35+
| 14 | Use-Cases definieren | 4h | 1d |
36+
| 13 | Review M1, Vorbereitung, Besprechung und Nachbesprechung | 4h 15m | |
37+
| 12 | Risiken analysieren | 2h 15m | |
38+
| 11 | Verbesserung Projektplan: Umfang der Abgabe definieren | 15m | |
39+
| 10 | Verbesserung Projektplan: QM und CI | 15m | 15m |
40+
| 8 | Server beantragen und Zugang testen&dokumentieren | 1h | 1h |
41+
| 7 | Time Tracker | 5h 15m | |
42+
| 6 | Projekt Antrag schreiben und einreichen | 2d | |
43+
| 5 | Risiko Analyse | 6h 45m | 2d 4h |
44+
| 4 | Project Plan | 6d 7h 15m | 5d 2h |
45+
46+
## Merge request
47+
48+
No merge requests found
49+
50+
## Time records
51+
52+
| user | date | type | iid | time |
53+
| ----------------- | ------------------- | ----- | --- | ------ |
54+
| isaac.wuerth | 16.03.2021 00:00:00 | Issue | 14 | 15m |
55+
| jari.elmer | 16.03.2021 00:00:00 | Issue | 14 | 15m |
56+
| timon.erhart | 16.03.2021 00:00:00 | Issue | 14 | 15m |
57+
| jari.elmer | 16.03.2021 00:00:00 | Issue | 14 | 15m |
58+
| timon.erhart | 16.03.2021 00:00:00 | Issue | 20 | 1h 30m |
59+
| isaac.wuerth | 16.03.2021 00:00:00 | Issue | 16 | -3d 1h |
60+
| isaac.wuerth | 16.03.2021 00:00:00 | Issue | 16 | 15m |
61+
| jari.elmer | 16.03.2021 00:00:00 | Issue | 16 | 15m |
62+
| timon.erhart | 16.03.2021 00:00:00 | Issue | 16 | 15m |
63+
| isaac.wuerth | 16.03.2021 00:00:00 | Issue | 15 | 15m |
64+
| jari.elmer | 16.03.2021 00:00:00 | Issue | 15 | 15m |
65+
| timon.erhart | 16.03.2021 00:00:00 | Issue | 15 | 15m |
66+
| jari.elmer | 16.03.2021 00:00:00 | Issue | 15 | 1h |
67+
| isaac.wuerth | 16.03.2021 00:00:00 | Issue | 18 | 15m |
68+
| jari.elmer | 16.03.2021 00:00:00 | Issue | 18 | 15m |
69+
| timon.erhart | 16.03.2021 00:00:00 | Issue | 18 | 15m |
70+
| jari.elmer | 16.03.2021 00:00:00 | Issue | 18 | 20m |
71+
| jari.elmer | 16.03.2021 00:00:00 | Issue | 12 | 30m |
72+
| jari.elmer | 16.03.2021 00:00:00 | Issue | 12 | 15m |
73+
| timon.erhart | 16.03.2021 00:00:00 | Issue | 12 | 45m |
74+
| isaac.wuerth | 16.03.2021 00:00:00 | Issue | 12 | 15m |
75+
| isaac.wuerth | 16.03.2021 00:00:00 | Issue | 12 | 30m |
76+
| timon.erhart | 16.03.2021 00:00:00 | Issue | 5 | 30m |
77+
| timon.erhart | 15.03.2021 00:00:00 | Issue | 18 | 30m |
78+
| timon.erhart | 10.03.2021 08:37:36 | Issue | 19 | -30m |
79+
| rafael.hangartner | 10.03.2021 00:00:00 | Issue | 19 | 30m |
80+
| timon.erhart | 10.03.2021 00:00:00 | Issue | 19 | 30m |
81+
| isaac.wuerth | 10.03.2021 00:00:00 | Issue | 19 | 30m |
82+
| isaac.wuerth | 10.03.2021 00:00:00 | Issue | 19 | 30m |
83+
| isaac.wuerth | 10.03.2021 00:00:00 | Issue | 19 | -30m |
84+
| rafael.hangartner | 10.03.2021 00:00:00 | Issue | 14 | 1h |
85+
| timon.erhart | 10.03.2021 00:00:00 | Issue | 14 | 1h |
86+
| isaac.wuerth | 10.03.2021 00:00:00 | Issue | 14 | 1h |
87+
| rafael.hangartner | 10.03.2021 00:00:00 | Issue | 16 | 30m |
88+
| timon.erhart | 10.03.2021 00:00:00 | Issue | 16 | 30m |
89+
| isaac.wuerth | 10.03.2021 00:00:00 | Issue | 16 | 30m |
90+
| rafael.hangartner | 10.03.2021 00:00:00 | Issue | 17 | 45m |
91+
| timon.erhart | 10.03.2021 00:00:00 | Issue | 17 | 45m |
92+
| isaac.wuerth | 10.03.2021 00:00:00 | Issue | 17 | 45m |
93+
| jari.elmer | 09.03.2021 11:59:29 | Issue | 13 | 1h 15m |
94+
| rafael.hangartner | 09.03.2021 00:00:00 | Issue | 13 | 1h 15m |
95+
| isaac.wuerth | 09.03.2021 00:00:00 | Issue | 13 | 1h 15m |
96+
| timon.erhart | 09.03.2021 00:00:00 | Issue | 13 | 1h 15m |
97+
| rafael.hangartner | 09.03.2021 00:00:00 | Issue | 13 | 30m |
98+
| rafael.hangartner | 09.03.2021 00:00:00 | Issue | 11 | 15m |
99+
| jari.elmer | 09.03.2021 00:00:00 | Issue | 10 | 15m |
100+
| timon.erhart | 09.03.2021 00:00:00 | Issue | 8 | 1h |
101+
| jari.elmer | 03.03.2021 00:00:00 | Issue | 4 | 15m |
102+
| rafael.hangartner | 03.03.2021 00:00:00 | Issue | 4 | 2h 45m |
103+
| rafael.hangartner | 03.03.2021 00:00:00 | Issue | 4 | 45m |
104+
| jari.elmer | 03.03.2021 00:00:00 | Issue | 4 | 1h |
105+
| isaac.wuerth | 03.03.2021 00:00:00 | Issue | 4 | 2h |
106+
| rafael.hangartner | 03.03.2021 00:00:00 | Issue | 4 | 1h |
107+
| isaac.wuerth | 03.03.2021 00:00:00 | Issue | 4 | -30m |
108+
| timon.erhart | 03.03.2021 00:00:00 | Issue | 4 | 2h |
109+
| isaac.wuerth | 03.03.2021 00:00:00 | Issue | 7 | 2h |
110+
| isaac.wuerth | 03.03.2021 00:00:00 | Issue | 7 | -2h |
111+
| jari.elmer | 03.03.2021 00:00:00 | Issue | 5 | 15m |
112+
| rafael.hangartner | 03.03.2021 00:00:00 | Issue | 5 | 1h |
113+
| isaac.wuerth | 02.03.2021 00:00:00 | Issue | 4 | 4h |
114+
| jari.elmer | 02.03.2021 00:00:00 | Issue | 4 | 2h 30m |
115+
| timon.erhart | 02.03.2021 00:00:00 | Issue | 5 | 1h |
116+
| jari.elmer | 02.03.2021 00:00:00 | Issue | 5 | 1h |
117+
| timon.erhart | 02.03.2021 00:00:00 | Issue | 5 | 3h |
118+
| isaac.wuerth | 01.03.2021 00:00:00 | Issue | 7 | 3h |
119+
| timon.erhart | 26.02.2021 12:51:49 | Issue | 8 | 15m |
120+
| jari.elmer | 26.02.2021 00:00:00 | Issue | 4 | 1h |
121+
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 4 | 30m |
122+
| timon.erhart | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
123+
| jari.elmer | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
124+
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
125+
| timon.erhart | 26.02.2021 00:00:00 | Issue | 4 | 2h 15m |
126+
| isaac.wuerth | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
127+
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 7 | 1h 30m |
128+
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 7 | 45m |
129+
| isaac.wuerth | 25.02.2021 00:00:00 | Issue | 6 | 4h |
130+
| jari.elmer | 25.02.2021 00:00:00 | Issue | 4 | 1h 30m |
131+
| jari.elmer | 24.02.2021 09:09:13 | Issue | 4 | -3h |
132+
| timon.erhart | 24.02.2021 00:00:00 | Issue | 6 | 2d |
133+
| timon.erhart | 24.02.2021 00:00:00 | Issue | 6 | -1d 4h |
134+
| jari.elmer | 24.02.2021 00:00:00 | Issue | 6 | 4h |
135+
| rafael.hangartner | 24.02.2021 00:00:00 | Issue | 6 | 4h |
136+
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
137+
| timon.erhart | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
138+
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
139+
| rafael.hangartner | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
140+
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
141+
| isaac.wuerth | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
142+
| timon.erhart | 24.02.2021 00:00:00 | Issue | 4 | 4h 30m |
143+
| rafael.hangartner | 24.02.2021 00:00:00 | Issue | 4 | 4h |
144+
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 4h 30m |
145+
| timon.erhart | 24.02.2021 00:00:00 | Issue | 4 | 1h 15m |
146+
| isaac.wuerth | 24.02.2021 00:00:00 | Issue | 4 | 4h 30m |
147+
| isaac.wuerth | 26.02.2020 00:00:00 | Issue | 4 | 1h 30m |
148+
| isaac.wuerth | 20.03.2011 00:00:00 | Issue | 16 | 3d 1h |

0 commit comments

Comments
 (0)