]> apps.delaporte.us Git - dotfiles.git/blob - psmodules/dash.psm1
Fixes for dashboard
[dotfiles.git] / psmodules / dash.psm1
1 function Get-JournalAgenda() {
2 agenda.exe -path "$HOME/Journal/{YYYY}/{MM}-{DD}.md"
3 }
4
5 function Show-MyDashBoard() {
6 param(
7 [bool]$gitHub=$false
8 )
9 Write-Host ""
10 Write-Host "## Todo items for today:"
11 # Measure-JournalTodos
12 chart
13 # Get-JournalTodayTodos
14 Write-Host ""
15 Write-Host "## Agenda for today:"
16 Get-JournalAgenda
17 Write-Host ""
18 if($github) {
19 Write-Host "## GitHub Issues Assigned (Show-AgileMine)"
20 Show-AgileMine
21 Show-AgileMine -DaysAgo 6
22 Write-Host ""
23 Write-Host "## GitHub Issues with no milestone. (Select-AgileNoMilestone)"
24 Write-Host "(Get-AgileQuery -state 'Open' | Invoke-AgileQuery | Select-AgileNoMilestone | Show-MarkdownFromGitHub)"
25 $milestone_repos = $env:github_repos.split(' ') | Where-Object { $_ -Match 'techservicesillinois' }
26 $queries = Get-AgileQuery -state 'Open' -repos $milestone_repos
27 Invoke-AgileQuery -queries $queries | Select-AgileNoMilestone | Show-MarkdownFromGitHub
28 }
29 Write-Host ""
30 Write-Host "Use command 'todo' to list more tasks."
31 Write-Host "Use command 'chart' to show todo item progress."
32 Write-Host "Use command 'agenda' to list the plan for today."
33 }
34
35 function Show-MyTeamWork() {
36 $team = @('ddriddle', 'zcarrington', 'tzturner', 'mpitcel', 'edthedev')
37 $team | ForEach-Object {
38 "## $_ - Issues Assigned"
39 Get-AgileQuery -Assignee $_ | Invoke-AgileQuery | Show-MarkdownFromGitHub
40 }
41 }
42
43 Export-ModuleMember -Function Show-MyDashboard
44 Export-ModuleMember -Function Show-MyTeamWork