X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/495689b83456c790c1634d46d245fcd14fdba5e0..9ae21ab320e7b5b57c562ddce26d173da12d1cfa:/psmodules/edgithub.psm1?ds=sidebyside diff --git a/psmodules/edgithub.psm1 b/psmodules/edgithub.psm1 index a1f7c7a..2ccb330 100644 --- a/psmodules/edgithub.psm1 +++ b/psmodules/edgithub.psm1 @@ -46,9 +46,6 @@ 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 = @() @@ -56,6 +53,9 @@ function Get-GHMine() { $issues += Get-GitHubIssue -RepositoryName $_ @issueSearchParams } + # Ignore issues that have been updated in the last day. + $issues = $issues | Where-Object { $_.updated_at -lt (Get-Date).AddDays(-1) } + return $issues } @@ -66,8 +66,6 @@ Show GitHub issues I am working on. #> function Show-GHMine() { - param( - ) Get-GHMine | ForEach-Object { # Markdown output " + [" + $_.Title + " (" + $_.Number + ")](" + $_.html_url + ")" @@ -77,4 +75,5 @@ function Show-GHMine() { Export-ModuleMember -Function Get-GHClosed Export-ModuleMember -Function Show-GHClosed +Export-ModuleMember -Function Get-GHMine Export-ModuleMember -Function Show-GHMine \ No newline at end of file