@@ -306,6 +306,7 @@ filter Remove-GitHubRepository
306
306
DefaultParameterSetName='Elements',
307
307
ConfirmImpact="High")]
308
308
[Alias('Delete-GitHubRepository')]
309
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
309
310
param(
310
311
[Parameter(ParameterSetName='Elements')]
311
312
[string] $OwnerName,
@@ -329,7 +330,7 @@ filter Remove-GitHubRepository
329
330
330
331
Write-InvocationLog -Invocation $MyInvocation
331
332
332
-
$elements = Resolve-RepositoryElements -BoundParameters $PSBoundParameters
333
+
$elements = Resolve-RepositoryElements
333
334
$OwnerName = $elements.ownerName
334
335
$RepositoryName = $elements.repositoryName
335
336
@@ -548,7 +549,11 @@ filter Get-GitHubRepository
548
549
549
550
Write-InvocationLog -Invocation $MyInvocation
550
551
551
-
$elements = Resolve-RepositoryElements -BoundParameters $PSBoundParameters -DisableValidation
552
+
# We are explicitly disabling validation here because a valid parameter set for this function
553
+
# allows the OwnerName to be passed in, but not the RepositoryName. That would allow the caller
554
+
# to get all of the repositories owned by a specific username. Therefore, we don't want to fail
555
+
# if both have not been supplied...we'll do the extra validation within the function.
556
+
$elements = Resolve-RepositoryElements -DisableValidation
552
557
$OwnerName = $elements.ownerName
553
558
$RepositoryName = $elements.repositoryName
554
559
@@ -1012,7 +1017,7 @@ filter Update-GitHubRepository
1012
1017
1013
1018
Write-InvocationLog -Invocation $MyInvocation
1014
1019
1015
-
$elements = Resolve-RepositoryElements -BoundParameters $PSBoundParameters
1020
+
$elements = Resolve-RepositoryElements
1016
1021
$OwnerName = $elements.ownerName
1017
1022
$RepositoryName = $elements.repositoryName
1018
1023
@@ -1131,6 +1136,7 @@ filter Get-GitHubRepositoryTopic
1131
1136
DefaultParameterSetName='Elements')]
1132
1137
[OutputType({$script:GitHubRepositoryTopicTypeName})]
1133
1138
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "", Justification="Methods called within here make use of PSShouldProcess, and the switch is passed on to them inherently.")]
1139
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
1134
1140
param(
1135
1141
[Parameter(ParameterSetName='Elements')]
1136
1142
[string] $OwnerName,
@@ -1152,7 +1158,7 @@ filter Get-GitHubRepositoryTopic
1152
1158
1153
1159
Write-InvocationLog -Invocation $MyInvocation
1154
1160
1155
-
$elements = Resolve-RepositoryElements -BoundParameters $PSBoundParameters
1161
+
$elements = Resolve-RepositoryElements
1156
1162
$OwnerName = $elements.ownerName
1157
1163
$RepositoryName = $elements.repositoryName
1158
1164
@@ -1316,7 +1322,7 @@ function Set-GitHubRepositoryTopic
1316
1322
{
1317
1323
Write-InvocationLog -Invocation $MyInvocation
1318
1324
1319
-
$elements = Resolve-RepositoryElements -BoundParameters $PSBoundParameters
1325
+
$elements = Resolve-RepositoryElements
1320
1326
$OwnerName = $elements.ownerName
1321
1327
$RepositoryName = $elements.repositoryName
1322
1328
@@ -1434,6 +1440,7 @@ filter Get-GitHubRepositoryContributor
1434
1440
[OutputType({$script:GitHubUserTypeName})]
1435
1441
[OutputType({$script:GitHubRepositoryContributorStatisticsTypeName})]
1436
1442
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "", Justification="Methods called within here make use of PSShouldProcess, and the switch is passed on to them inherently.")]
1443
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
1437
1444
param(
1438
1445
[Parameter(ParameterSetName='Elements')]
1439
1446
[string] $OwnerName,
@@ -1459,7 +1466,7 @@ filter Get-GitHubRepositoryContributor
1459
1466
1460
1467
Write-InvocationLog -Invocation $MyInvocation
1461
1468
1462
-
$elements = Resolve-RepositoryElements -BoundParameters $PSBoundParameters
1469
+
$elements = Resolve-RepositoryElements
1463
1470
$OwnerName = $elements.ownerName
1464
1471
$RepositoryName = $elements.repositoryName
1465
1472
@@ -1577,8 +1584,9 @@ filter Get-GitHubRepositoryCollaborator
1577
1584
[CmdletBinding(
1578
1585
SupportsShouldProcess,
1579
1586
DefaultParameterSetName='Elements')]
1580
-
[OutputType({$script:GitHubUserTypeName})]
1581
-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "", Justification="Methods called within here make use of PSShouldProcess, and the switch is passed on to them inherently.")]
1587
+
[OutputType({$script:GitHubUserTypeName})]
1588
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "", Justification="Methods called within here make use of PSShouldProcess, and the switch is passed on to them inherently.")]
1589
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
1582
1590
param(
1583
1591
[Parameter(ParameterSetName='Elements')]
1584
1592
[string] $OwnerName,
@@ -1603,7 +1611,7 @@ filter Get-GitHubRepositoryCollaborator
1603
1611
1604
1612
Write-InvocationLog -Invocation $MyInvocation
1605
1613
1606
-
$elements = Resolve-RepositoryElements -BoundParameters $PSBoundParameters
1614
+
$elements = Resolve-RepositoryElements
1607
1615
$OwnerName = $elements.ownerName
1608
1616
$RepositoryName = $elements.repositoryName
1609
1617
@@ -1692,6 +1700,7 @@ filter Get-GitHubRepositoryLanguage
1692
1700
DefaultParameterSetName='Elements')]
1693
1701
[OutputType({$script:GitHubRepositoryLanguageTypeName})]
1694
1702
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "", Justification="Methods called within here make use of PSShouldProcess, and the switch is passed on to them inherently.")]
1703
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
1695
1704
param(
1696
1705
[Parameter(ParameterSetName='Elements')]
1697
1706
[string] $OwnerName,
@@ -1713,7 +1722,7 @@ filter Get-GitHubRepositoryLanguage
1713
1722
1714
1723
Write-InvocationLog -Invocation $MyInvocation
1715
1724
1716
-
$elements = Resolve-RepositoryElements -BoundParameters $PSBoundParameters
1725
+
$elements = Resolve-RepositoryElements
1717
1726
$OwnerName = $elements.ownerName
1718
1727
$RepositoryName = $elements.repositoryName
1719
1728
@@ -1798,6 +1807,7 @@ filter Get-GitHubRepositoryTag
1798
1807
DefaultParameterSetName='Elements')]
1799
1808
[OutputType({$script:GitHubRepositoryTagTypeName})]
1800
1809
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "", Justification="Methods called within here make use of PSShouldProcess, and the switch is passed on to them inherently.")]
1810
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
1801
1811
param(
1802
1812
[Parameter(ParameterSetName='Elements')]
1803
1813
[string] $OwnerName,
@@ -1819,7 +1829,7 @@ filter Get-GitHubRepositoryTag
1819
1829
1820
1830
Write-InvocationLog -Invocation $MyInvocation
1821
1831
1822
-
$elements = Resolve-RepositoryElements -BoundParameters $PSBoundParameters
1832
+
$elements = Resolve-RepositoryElements
1823
1833
$OwnerName = $elements.ownerName
1824
1834
$RepositoryName = $elements.repositoryName
1825
1835
@@ -1909,6 +1919,7 @@ filter Move-GitHubRepositoryOwnership
1909
1919
[OutputType({$script:GitHubRepositoryTypeName})]
1910
1920
[Alias('Transfer-GitHubRepositoryOwnership')]
1911
1921
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "", Justification="Methods called within here make use of PSShouldProcess, and the switch is passed on to them inherently.")]
1922
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
1912
1923
param(
1913
1924
[Parameter(ParameterSetName='Elements')]
1914
1925
[string] $OwnerName,
@@ -1936,7 +1947,7 @@ filter Move-GitHubRepositoryOwnership
1936
1947
1937
1948
Write-InvocationLog -Invocation $MyInvocation
1938
1949
1939
-
$elements = Resolve-RepositoryElements -BoundParameters $PSBoundParameters
1950
+
$elements = Resolve-RepositoryElements
1940
1951
$OwnerName = $elements.ownerName
1941
1952
$RepositoryName = $elements.repositoryName
1942
1953
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4