X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/514dd4387a94e5b9b1eed5354d2667737d5af093..f2562a307496028edbcb6c337bc5fcd69ca2ffc2:/psmodules/dash.psm1 diff --git a/psmodules/dash.psm1 b/psmodules/dash.psm1 index b300366..b2b1e09 100644 --- a/psmodules/dash.psm1 +++ b/psmodules/dash.psm1 @@ -8,6 +8,25 @@ function Measure-JournalTodos() { $env:todocount += $todocount.lines } + +<# + +.EXAMPLE + +Get-CommitsSince -From 2023.01.01 + +#> +function Show-GitRevList() { + param( + [string]$from + ) + Invoke-AgileCmd "git rev-list HEAD --count --since=$from" +} + +Export-ModuleMember -Function Show-GitRevList + + + <# .SYNOPSIS @@ -49,7 +68,7 @@ function Show-MyDashBoard() { if($blocked){ Write-Host "" Write-Host "## Blocked & Blocker Issues:" - Invoke-AgileCmd "gh issue list -S 'label:blocked,blocker'" + Invoke-AgileCmd "gh issue list -S 'label:blocked,blocker,needs context'" } if($bugs) { Write-Host "" @@ -100,5 +119,11 @@ function Show-MyTeamWork() { } } +function Write-AgileClosedData() { + $gh_cmd = 'gh issue list --state closed --json title,closedAt,milestone,url' + Write-AgileToFile -gh_command $gh_cmd +} + +Export-ModuleMember -Function Write-AgileClosedData Export-ModuleMember -Function Show-MyDashboard Export-ModuleMember -Function Show-MyTeamWork \ No newline at end of file