]> apps.delaporte.us Git - dotfiles.git/blobdiff - psmodules/dash.psm1
Add command to list all open pull requests
[dotfiles.git] / psmodules / dash.psm1
index f9caa56e09c9912cacd5db56b5dea54cf13b96fb..7e32ac4aa2487f28b83cddb1ca68b9b1f2489543 100644 (file)
@@ -10,13 +10,15 @@ function Measure-JournalTodos() {
 
 function Show-MyDashBoard() {
        param(
 
 function Show-MyDashBoard() {
        param(
-               [switch]$todocount=$true,
+               # [switch]$todocount=$true,
                [switch]$agenda=$true,
                [switch]$gitHub=$false,
                [switch]$agenda=$true,
                [switch]$gitHub=$false,
-               [switch]$bugs=$true,
-               [switch]$todolist=$false,
+               [switch]$bugs=$false,
+               [switch]$todo=$false,
+               [switch]$pr=$false,
                [switch]$orphans=$false
        )
                [switch]$orphans=$false
        )
+       $todocount = $true
        if($todocount){
                Measure-JournalTodos
                Write-Host ""
        if($todocount){
                Measure-JournalTodos
                Write-Host ""
@@ -38,11 +40,16 @@ function Show-MyDashBoard() {
                Write-Host "## Known Bugs"
                Invoke-AgileCmd "gh issue list -S 'label:bug'"
        }
                Write-Host "## Known Bugs"
                Invoke-AgileCmd "gh issue list -S 'label:bug'"
        }
-       if($todolist) {
+       if($todo) {
                Write-Host ""
                Write-Host "## Todo List" 
                todolist
        }
                Write-Host ""
                Write-Host "## Todo List" 
                todolist
        }
+       if($pr) {
+               Write-Host ""
+               Write-Host "## Open Pull Requests"
+               Invoke-AgileCmd "gh pr list"
+       }
        if($orphans) {
                Write-Host ""
                Write-Host "## Issues with No Milestone" 
        if($orphans) {
                Write-Host ""
                Write-Host "## Issues with No Milestone"