Minor changes, changed frequent users to ordered list
This commit is contained in:
parent
0757b032b2
commit
f981eba01f
3
main.js
3
main.js
|
@ -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`
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Reference in New Issue