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,
45 [switch]$agenda=$true,
60 Write-Host "## Todo items for today: $env:todocount"
65 Write-Host "## Agenda for today:"
70 Write-Host "## Blocked & Blocker Issues:"
71 $blockerQuery = "label:blocker,blight,bug,blocked"
72 Invoke-AgileCmd "gh issue list -S '$blockerQuery'"
74 Write-Host "## Open Questions"
75 $questionQuery = 'label:"phone a friend",question,"needs context"'
76 Invoke-AgileCmd "gh issue list -S '$questionQuery'"
81 Write-Host "## Known Bugs"
82 Invoke-AgileCmd "gh issue list -S 'label:bug'"
86 Write-Host "## GitHub Status (gh status)"
87 Invoke-Expression "gh status"
90 Write-Host "## Dasbhoard Help"
91 Get-Help Show-MyDashboard
95 Write-Host "## Leeroy Jenkins!:"
96 Invoke-AgileCmd "gh issue list -l 'leeroy jenkins'"
100 Write-Host "## Issues with No Milestone"
101 Invoke-AgileCmd "gh issue list -S 'is:open is:issue no:milestone'"
105 Write-Host "## Open Pull Requests"
106 Invoke-AgileCmd "gh pr list"
110 Write-Host "## Open Stakeholder Requests"
111 invoke-agilecmd "gh issue list -S 'label:requested'"
115 Write-Host "## Journal Todo Items"
118 Write-Host "## Todo.txt File"
123 function Write-AgileClosedData() {
124 $gh_cmd = 'gh issue list --state closed --json title,closedAt,milestone,url'
125 Write-AgileToFile -gh_command $gh_cmd
128 Export-ModuleMember -Function Write-AgileClosedData
129 Export-ModuleMember -Function Show-MyDashboard
130 Export-ModuleMember -Function Show-MyTeamWork