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 Invoke-AgileCmd "gh issue list -S 'label:blocked,blocker,needs context,question'"
75 Write-Host "## Known Bugs"
76 Invoke-AgileCmd "gh issue list -S 'label:bug'"
80 Write-Host "## GitHub Status (gh status)"
81 Invoke-Expression "gh status"
84 Write-Host "## Dasbhoard Help"
85 Get-Help Show-MyDashboard
89 Write-Host "## Leeroy Jenkins!:"
90 Invoke-AgileCmd "gh issue list -l 'leeroy jenkins'"
94 Write-Host "## Issues with No Milestone"
95 Invoke-AgileCmd "gh issue list -S 'is:open is:issue no:milestone'"
99 Write-Host "## Open Pull Requests"
100 Invoke-AgileCmd "gh pr list"
104 Write-Host "## Open Stakeholder Requests"
105 invoke-agilecmd "gh issue list -S 'label:requested'"
109 Write-Host "## Journal Todo Items"
112 Write-Host "## Todo.txt File"
117 function Show-MyTeamWork() {
118 $team = @('ddriddle', 'zcarrington', 'tzturner', 'mpitcel', 'edthedev')
119 $team | ForEach-Object {
120 "## $_ - Issues Assigned"
121 Get-AgileQuery -Assignee $_ | Invoke-AgileQuery | Show-MarkdownFromGitHub
125 function Write-AgileClosedData() {
126 $gh_cmd = 'gh issue list --state closed --json title,closedAt,milestone,url'
127 Write-AgileToFile -gh_command $gh_cmd
130 Export-ModuleMember -Function Write-AgileClosedData
131 Export-ModuleMember -Function Show-MyDashboard
132 Export-ModuleMember -Function Show-MyTeamWork