From: Edward Delaporte Date: Tue, 30 Nov 2021 21:23:01 +0000 (-0600) Subject: sprint dashboard X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/339cc64a5a3b6e8a31ef561815d3cbc4bf7461f6?ds=inline sprint dashboard --- diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index bed5671..6d88b6a 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -106,7 +106,8 @@ function Get-GitStatus() { # Tell my scripts which GitHub repositories to look in. $env:GITHUB_USERNAME = 'edthedev' $env:GITHUB_ORG = 'techservicesillinois' -$env:GITHUB_REPOS = @('SecOps-Tools', 'secdev-job-aids', 'awscli-login') +$env:GITHUB_REPOS = @('SecOps-Tools', 'secdev-job-aids', + 'awscli-login', 'farmit') # Nice for git New-Alias ol Get-GitLog diff --git a/psmodules/sprint.psm1 b/psmodules/sprint.psm1 new file mode 100644 index 0000000..d891b45 --- /dev/null +++ b/psmodules/sprint.psm1 @@ -0,0 +1,16 @@ +function Show-SprintPlan(){ + Write-Host "## Stats" + $closed = Get-GHClosed + $closed_count = ($closed | Measure-Object).Count + $orphans = (Get-GHNoMilestone -repository SecOps-Tools | Measure-Object -Property updated_at -Min -Max).Count + $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 +} +Export-ModuleMember -Function Show-SprintPlan \ No newline at end of file