You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GitHubReferences.ps1
+32-17Lines changed: 32 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,8 @@ function Get-GitHubReference
25
25
them individually.
26
26
27
27
.PARAMETERReference
28
-
Name of the reference, for example: "heads/<branch name>" for branches and "tags/<tag name>" for tags
28
+
Name of the reference, for example: "heads/<branch name>" for branches and "tags/<tag name>" for tags.
29
+
Gets all the references if not provided
29
30
30
31
.PARAMETERAccessToken
31
32
If provided, this will be used as the AccessToken for authentication with the
@@ -36,7 +37,7 @@ function Get-GitHubReference
36
37
with no commandline status update. When not specified, those commands run in
37
38
the background, enabling the command prompt to provide status information.
38
39
If not supplied here, the DefaultNoStatus configuration property value will be used.
39
-
40
+
40
41
.OUTPUTS
41
42
[PSCustomObject]
42
43
Details of the git reference in the given repository
@@ -47,7 +48,8 @@ function Get-GitHubReference
47
48
[CmdletBinding(
48
49
SupportsShouldProcess,
49
50
DefaultParametersetName='Elements')]
50
-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess","", Justification="Methods called within here make use of PSShouldProcess, and the switch is passed on to them inherently.")]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess","", Justification="Methods called within here make use of PSShouldProcess, and the switch is passed on to them inherently.")]
0 commit comments