Add plugin_habits_from option

This commit is contained in:
lowlighter
2020-10-23 14:09:19 +02:00
parent cdb7cc154a
commit 4ccefcae83
3 changed files with 6 additions and 3 deletions

View File

@@ -41,6 +41,9 @@ inputs:
plugin_habits:
description: Enable coding habits metrics
default: no
plugin_habits_from:
description: Number of activity events to base habits on (up to 100)
default: 100
plugin_selfskip:
description: Skip commits flagged with [Skip GitHub Action] from commits count
default: no

File diff suppressed because one or more lines are too long

View File

@@ -68,7 +68,7 @@
lines:{enabled:bool(core.getInput("plugin_lines"))},
traffic:{enabled:bool(core.getInput("plugin_traffic"))},
pagespeed:{enabled:bool(core.getInput("plugin_pagespeed"))},
habits:{enabled:bool(core.getInput("plugin_habits"))},
habits:{enabled:bool(core.getInput("plugin_habits")), from:Number(core.getInput("plugin_habits_from")) || 100},
selfskip:{enabled:bool(core.getInput("plugin_selfskip"))},
languages:{enabled:bool(core.getInput("plugin_languages"))},
followup:{enabled:bool(core.getInput("plugin_followup"))},
@@ -81,7 +81,7 @@
}
//Repositories to use
const repositories = Math.max(0, Number(core.getInput("repositories"))) || 100
const repositories = Number(core.getInput("repositories")) || 100
console.log(`Repositories to use | ${repositories}`)
q.repositories = repositories