X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/09ad9c3d49b6ba61ef9bd48ad9623877444ee888..93c98058039818dc7067ecd711376b80ce078566:/psmodules/edgithub.psm1 diff --git a/psmodules/edgithub.psm1 b/psmodules/edgithub.psm1 index 0f26e24..68c5e77 100644 --- a/psmodules/edgithub.psm1 +++ b/psmodules/edgithub.psm1 @@ -39,5 +39,38 @@ function Show-GHClosed() { } +<# +.SYNPOSIS + +Fetch GitHub issues I am working on. + +#> +function Get-GHMine() { + $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() { + 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 Get-GHMine +Export-ModuleMember -Function Show-GHMine \ No newline at end of file