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