4 Fetch closed GitHub issues that were updated in the last 14 days.
7 function Get-GHClosed {
11 $repos = @('SecOps-Tools', 'secdev-job-aids', 'awscli-login')
12 $issueSearchParams = @{ State = 'closed'; OwnerName = 'techservicesillinois' }
14 $repos | ForEach-Object {
15 $closed += Get-GitHubIssue -RepositoryName $_ @issueSearchParams
18 # Limit to past two weeks
19 $issues = $closed | Where-Object { $_.updated_at -gt (Get-Date).AddDays($days) }
27 Show closed GitHub issues that were updated in the last 14 days.
30 function Show-GHClosed() {
34 Get-GHClosed -days $days | ForEach-Object {
36 " + [" + $_.Title + " (" + $_.Number + ")](" + $_.html_url + ")"
38 # Format-Table -Property Number, Title, Url
45 Fetch GitHub issues I am working on.
48 function Get-GHMine() {
49 $repos = @('SecOps-Tools', 'secdev-job-aids', 'awscli-login')
50 $issueSearchParams = @{ Assignee = 'edthedev'; State = 'open'; OwnerName = 'techservicesillinois' }
52 $repos | ForEach-Object {
53 $issues += Get-GitHubIssue -RepositoryName $_ @issueSearchParams
62 Show GitHub issues I am working on.
65 function Show-GHMine() {
66 Get-GHMine | ForEach-Object {
68 " + [" + $_.Title + " (" + $_.Number + ")](" + $_.html_url + ")"
73 Export-ModuleMember -Function Get-GHClosed
74 Export-ModuleMember -Function Show-GHClosed
75 Export-ModuleMember -Function Get-GHMine
76 Export-ModuleMember -Function Show-GHMine