1 function Get-JournalAgenda() {
2 agenda.exe -path "$HOME/Journal/{YYYY}/{MM}-{DD}.md"
5 function Measure-JournalTodos() {
6 $todocount = todolist | Measure-Object -Line
8 $env:todocount += $todocount.lines
16 Get-CommitsSince -From 2023.01.01
19 function Show-GitRevList() {
23 Invoke-AgileCmd "git rev-list HEAD --count --since=$from"
26 Export-ModuleMember -Function Show-GitRevList
34 Show a text dashboard.
39 Show-MyDashboard -todo
42 function Show-MyDashBoard() {
44 # [switch]$todocount=$true,
60 Write-Host "## Todo items for today: $env:todocount"
66 Write-Host "## Agenda for today:"
71 Write-Host "## Blocked & Blocker Issues:"
72 $blockerQuery = "label:blocker,blight,bug,blocked"
73 Invoke-AgileCmd "gh issue list -S '$blockerQuery'"
75 Write-Host "## Open Questions"
76 $questionQuery = 'label:"phone a friend",question,"needs context"'
77 Invoke-AgileCmd "gh issue list -S '$questionQuery'"
82 Write-Host "## Known Bugs"
83 Invoke-AgileCmd "gh issue list -S 'label:bug'"
87 Write-Host "## GitHub Status (gh status)"
88 Invoke-Expression "gh status"
91 Write-Host "## Dasbhoard Help"
92 Get-Help Show-MyDashboard
96 Write-Host "## Leeroy Jenkins!:"
97 Invoke-AgileCmd "gh issue list -l 'leeroy jenkins'"
101 Write-Host "## Issues with No Milestone"
102 Invoke-AgileCmd "gh issue list -S 'is:open is:issue no:milestone'"
106 Write-Host "## Open Pull Requests"
107 Invoke-AgileCmd "gh pr list"
111 Write-Host "## Open Stakeholder Requests"
112 invoke-agilecmd "gh issue list -S 'label:requested'"
116 Write-Host "## Journal Todo Items"
119 Write-Host "## Todo.txt File"
124 function Write-AgileClosedData() {
125 $gh_cmd = 'gh issue list --state closed --json title,closedAt,milestone,url'
126 Write-AgileToFile -gh_command $gh_cmd
129 Export-ModuleMember -Function Write-AgileClosedData
130 Export-ModuleMember -Function Show-MyDashboard
131 Export-ModuleMember -Function Show-MyTeamWork