File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ Set-MyInvokeCommandAlias -Alias CreateIssue -Command 'Invoke-CreateIssue -Reposi
33
44function New-ProjectIssueDirect {
55 [CmdletBinding ()]
6+ [Alias (" New-Issue" )]
67 param (
78 [Parameter (Mandatory , Position = 1 )][string ]$RepoOwner ,
89 [Parameter (Mandatory , Position = 2 )][string ]$RepoName ,
910 [Parameter (Mandatory , Position = 3 )][string ]$Title ,
10- [Parameter (Position = 4 )][string ]$Body
11+ [Parameter (Position = 4 )][string ]$Body ,
12+ [Parameter ()][switch ]$OpenOnCreation
1113 )
1214
1315 $repo = Get-Repository - Owner $RepoOwner - Name $RepoName
@@ -35,9 +37,13 @@ function New-ProjectIssueDirect {
3537
3638 $ret = $issue.url
3739
40+ if ( $OpenOnCreation ) {
41+ Open-Url $ret
42+ }
43+
3844 return $ret
3945
40- } Export-ModuleMember - Function New-ProjectIssueDirect
46+ } Export-ModuleMember - Function New-ProjectIssueDirect - Alias New-Issue
4147
4248function New-ProjectIssue {
4349 [CmdletBinding ()]
You can’t perform that action at this time.
0 commit comments