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