Skip to content

Group GitHubIssue

Howard Wolosky edited this page Oct 5, 2020 · 1 revision

Group-GitHubIssue

SYNOPSIS

Groups the provided issues based on the specified grouping criteria.

SYNTAX

Group-GitHubIssue -Issue <PSObject[]> -Weeks <Int32> [-DateType <String>] [<CommonParameters>]

DESCRIPTION

Groups the provided issues based on the specified grouping criteria.

Currently able to group Issues by week.

The Git repo for this module can be found here: http://aka.ms/PowerShellForGitHub

EXAMPLES

EXAMPLE 1

$issues = @()
$issues += Get-GitHubIssue -Uri 'https://github.com/powershell/xpsdesiredstateconfiguration'
$issues += Get-GitHubIssue -Uri 'https://github.com/powershell/xactivedirectory'
$issues | Group-GitHubIssue -Weeks 12 -DateType Closed

PARAMETERS

-DateType

The date property that should be inspected when determining which week grouping the issue if part of.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: Created
Accept pipeline input: False
Accept wildcard characters: False

-Issue

The Issue(s) to be grouped.

Type: System.Management.Automation.PSObject[]
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Weeks

The number of weeks to group the Issues by.

Type: System.Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

GitHub.Issue

OUTPUTS

[PSCustomObject[]]

Collection of issues and counts, by week, along with the total count of issues.

NOTES

RELATED LINKS

PowerShellForGitHub

Docs

PowerShellForGitHub

Functions

Clone this wiki locally