X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/a07585a8f42fa39e81c25cd8112dbab4960e7c03..495689b83456c790c1634d46d245fcd14fdba5e0:/psmodules/edgithub.psm1?ds=sidebyside diff --git a/psmodules/edgithub.psm1 b/psmodules/edgithub.psm1 index 0f26e24..a1f7c7a 100644 --- a/psmodules/edgithub.psm1 +++ b/psmodules/edgithub.psm1 @@ -39,5 +39,42 @@ function Show-GHClosed() { } +<# +.SYNPOSIS + +Fetch GitHub issues I am working on. + +#> +function Get-GHMine() { + param( + [int]$days = -14 + ) + $repos = @('SecOps-Tools', 'secdev-job-aids', 'awscli-login') + $issueSearchParams = @{ Assignee = 'edthedev'; State = 'open'; OwnerName = 'techservicesillinois' } + $issues = @() + $repos | ForEach-Object { + $issues += Get-GitHubIssue -RepositoryName $_ @issueSearchParams + } + + return $issues +} + +<# +.SYNOPSIS + +Show GitHub issues I am working on. + +#> +function Show-GHMine() { + param( + ) + Get-GHMine | ForEach-Object { + # Markdown output + " + [" + $_.Title + " (" + $_.Number + ")](" + $_.html_url + ")" + } +} + + Export-ModuleMember -Function Get-GHClosed -Export-ModuleMember -Function Show-GHClosed \ No newline at end of file +Export-ModuleMember -Function Show-GHClosed +Export-ModuleMember -Function Show-GHMine \ No newline at end of file