X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/3000302e7e283507dd67e77f6931d602e186e866..46849fde6a62ca8e12ca7726f2aa0abee064df0b:/psmodules/edgithub.psm1 diff --git a/psmodules/edgithub.psm1 b/psmodules/edgithub.psm1 index 949974e..2a844eb 100644 --- a/psmodules/edgithub.psm1 +++ b/psmodules/edgithub.psm1 @@ -95,8 +95,13 @@ function Show-GHMine() { } <# +.SYNOPSIS + +Get GitHub issues that need sized. -Target GitHub search: +.DESCRIPTION + +Runs this GitHub search: is:open is:issue -label:M -label:L -label:S -label:XL -label:XS #> @@ -118,6 +123,23 @@ function Get-GHUnsized() { return $issues } +function Get-GHNoMilestone() { + $repos = @('SecOps-Tools', 'secdev-job-aids', 'awscli-login') + $issueSearchParams = @{ State = 'open'; OwnerName = 'techservicesillinois' } + $issues = @() + $repos | ForEach-Object { + $issues += Get-GitHubIssue -RepositoryName $_ @issueSearchParams + } + + # Get open issues with empty milestone + $issues = $issues | Where-Object { $null -eq $_.milestone } + return $issues +} +function Show-GHNoMilestone(){ + Get-GHNoMilestone| Show-GHIssuesAsMarkdown +} + + function Show-GHUnsized() { Get-GHUnsized | ForEach-Object { # Markdown output @@ -125,6 +147,21 @@ function Show-GHUnsized() { } } +function Show-GHByAssignee() { + $repos = @('SecOps-Tools', 'secdev-job-aids', 'awscli-login') + $issueSearchParams = @{ State = 'open'; OwnerName = 'techservicesillinois' } + $issues = @() + $repos | ForEach-Object { + $issues += Get-GitHubIssue -RepositoryName $_ @issueSearchParams + } + + # TODO: Group output by assignee. + + return $issues +} + + + function Show-GHToDiscuss() { Get-GHToDiscuss | Show-GHIssuesAsMarkdown } @@ -134,7 +171,7 @@ function Show-GHIssuesAsMarkdown() { process { # Markdown output - " + [" + $_.Title + " (" + $_.Number + ")](" + $_.html_url + ")" + $_.labels + " + [" + $_.Title + " (" + $_.Number + ")](" + $_.html_url + ")" } } @@ -145,4 +182,5 @@ Export-ModuleMember -Function Get-GHMine Export-ModuleMember -Function Show-GHMine Export-ModuleMember -Function Get-GHUnsized Export-ModuleMember -Function Show-GHUnsized -Export-ModuleMember -Function Show-GHToDiscuss \ No newline at end of file +Export-ModuleMember -Function Show-GHToDiscuss +Export-ModuleMember -Function Show-GHNoMilestone \ No newline at end of file