]> us-delaporte.pagekite.me Git - dotfiles.git/blob - psmodules/sprint.psm1
Nicer H2 headers
[dotfiles.git] / psmodules / sprint.psm1
1
2 function Show-SprintCharts(){
3 $closed = Get-GHClosed
4 $closed_count = ($closed | Measure-Object).Count
5 Add-Content -Path ~/.chart_closed -Value "|$closed_count"
6 $env:closed = Get-Content -Path ~/.chart_closed
7
8 $orphans = Get-GHNoMilestone -repository SecOps-Tools
9 $orphans_count = ($orphans | Measure-Object -Property updated_at -Min -Max).Count
10 Add-Content -Path ~/.chart_orphans -Value "|$orphans_count"
11 $env:orphans = Get-Content -Path ~/.chart_orphans
12
13 $unsized = Get-GHUnsized
14 $unsized_count = ($unsized | Measure-Object).Count
15 Add-Content -Path ~/.chart_unsized -Value "|$unsized_count"
16 $env:unsized = Get-Content -Path ~/.chart_unsized
17
18 Write-Host "## Closed Issues this Sprint: $closed_count"
19 Write-Host "'''sh"
20 chart -var "closed"
21 Write-Host "''' "
22 Write-Host "## Count of Unsized Issues: $unsized_count"
23 Write-Host "'''sh"
24 chart -var "unsized"
25 Write-Host "''' "
26 Write-Host "## Count of Issues with no milestone: $orphans_count"
27 Write-Host "'''sh"
28 chart -var "orphans"
29 Write-Host "''' "
30
31 }
32
33 Export-ModuleMember -Function Show-SprintCharts