Bauke/tildes-issue-log
Bauke
/
tildes-issue-log
Archived
1
Fork 0

Minor changes, changed frequent users to ordered list

This commit is contained in:
Bauke 2018-07-11 00:53:20 +02:00
parent 0757b032b2
commit f981eba01f
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 3 additions and 1 deletions

View File

@ -171,8 +171,9 @@ function createStatistics() {
const topUsers = freqUsers(opened, 3)
statistics += 'Top 3 issue creators:\n\n'
let top3 = 1
for (const user in topUsers) {
statistics += `* [${user}](https://gitlab.com/${user}) `
statistics += `${top3++}. [${user}](https://gitlab.com/${user}) `
statistics += `with [${topUsers[user]} issues created](https://gitlab.com/tildes/tildes/issues?state=all&author_username=${user}).\n`
}

View File

@ -3,6 +3,7 @@
* @description Returns the average time it takes to close an issue in hours or days.
* @param {Array} data Array with paths leading to GitLab Issue .json files
* @param {string} time 'hours' or 'days'
* @returns {number}
*/
function avgTime(data, time) {