]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - psmodules/sprint.psm1
Setup bash
[dotfiles.git] / psmodules / sprint.psm1
index d891b45d99217469ddc2a26a15a05bdaac87643b..74040fb938eab542f17b63d31ac78b0ab425dbd3 100644 (file)
@@ -1,16 +1,33 @@
-function Show-SprintPlan(){
-    Write-Host "## Stats"
+
+function Show-SprintCharts(){
     $closed = Get-GHClosed
     $closed_count = ($closed | Measure-Object).Count
-    $orphans = (Get-GHNoMilestone -repository SecOps-Tools | Measure-Object -Property updated_at -Min -Max).Count
+       Add-Content -Path ~/.chart_closed -Value "|$closed_count"
+       $env:closed =  Get-Content -Path ~/.chart_closed
+
+    $orphans = Get-GHNoMilestone -repository SecOps-Tools
+    $orphans_count = ($orphans | Measure-Object -Property updated_at -Min -Max).Count
+       Add-Content -Path ~/.chart_orphans -Value "|$orphans_count"
+       $env:orphans =  Get-Content -Path ~/.chart_orphans
+
     $unsized = Get-GHUnsized
     $unsized_count = ($unsized | Measure-Object).Count
-    Write-Host "Closed Issues this Sprint: $closed_count"
-    Write-Host "Count of Unsized Issues: $unsized_count"
-    Write-Host "Count of Issues with no milestone: $orphans"
-    Write-Host "## Closed Issues Updated this Sprint (Show-GHClosed)"
-    $closed | Show-GHIssuesAsMarkdown
-    Write-Host "## Unsized Issues (Show-GHUnsized)"
-    $unsized | Show-GHIssuesAsMarkdown
+       Add-Content -Path ~/.chart_unsized -Value "|$unsized_count"
+       $env:unsized =  Get-Content -Path ~/.chart_unsized
+
+    Write-Host "## Closed Issues this Sprint: $closed_count"
+    Write-Host "'''sh"
+    chart -var "closed"
+    Write-Host "''' "
+    Write-Host "## Count of Unsized Issues: $unsized_count"
+    Write-Host "'''sh"
+    chart -var "unsized"
+    Write-Host "''' "
+    Write-Host "## Count of Issues with no milestone: $orphans_count"
+    Write-Host "'''sh"
+    chart -var "orphans"
+    Write-Host "''' "
+
 }
-Export-ModuleMember -Function Show-SprintPlan
\ No newline at end of file
+
+Export-ModuleMember -Function Show-SprintCharts
\ No newline at end of file