Group GitHubIssue - X-Guardian/PowerShellForGitHub GitHub Wiki

Group-GitHubIssue

SYNOPSIS

Groups the provided issues based on the specified grouping criteria.

SYNTAX

Group-GitHubIssue -Issue <PSObject[]> -Weeks <Int32> [-DateType <String>] [-WhatIf] [-Confirm]
 [<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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
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

⚠️ **GitHub.com Fallback** ⚠️