File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed
src/Candoumbe.Pipelines/Components/GitHub Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ## [ 0.4.4] / 2023-07-15
11
+ ### 🔧 Fixes
12
+ - Fixed prompt to set the title of the PR to accept spaces ([ #74 ] ( https://github.com/candoumbe/Pipelines/issues/74 ) )
13
+
10
14
## [ 0.4.3] / 2023-07-10
11
15
### 🔧 Fixes
12
16
- Fixed ` NullReferenceException ` thrown when calling ` IMutationTest.MutationTests ` target ([ #69 ] ( https://github.com/candoumbe/Pipelines/issues/69 ) )
@@ -111,3 +115,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
111
115
[ 0.3.0 ] : https://github.com/candoumbe/Pipelines/compare/0.2.0...0.3.0
112
116
[ 0.2.0 ] : https://github.com/candoumbe/Pipelines/compare/0.1.0...0.2.0
113
117
[ 0.1.0 ] : https://github.com/candoumbe/Pipelines/tree/0.1.0
118
+
119
+ [ Unreleased ] : https://github.com/candoumbe/Pipelines/compare/0.4.4...HEAD
120
+ [ 0.4.4 ] : https://github.com/candoumbe/Pipelines/compare/0.4.3...0.4.4
121
+ [ 0.4.3 ] : https://github.com/candoumbe/Pipelines/compare/0.4.2...0.4.3
122
+ [ 0.4.2 ] : https://github.com/candoumbe/Pipelines/compare/0.4.1...0.4.2
123
+ [ 0.4.1 ] : https://github.com/candoumbe/Pipelines/compare/0.4.0...0.4.1
124
+ [ 0.4.0 ] : https://github.com/candoumbe/Pipelines/compare/0.3.0...0.4.0
125
+ [ 0.3.0 ] : https://github.com/candoumbe/Pipelines/compare/0.2.0...0.3.0
126
+ [ 0.2.0 ] : https://github.com/candoumbe/Pipelines/compare/0.1.0...0.2.0
127
+ [ 0.1.0 ] : https://github.com/candoumbe/Pipelines/tree/0.1.0
Original file line number Diff line number Diff line change @@ -47,7 +47,13 @@ async ValueTask IWorkflow.FinishFeature()
47
47
string owner = GitRepository . GetGitHubOwner ( ) ;
48
48
49
49
Information ( "Creating a pull request for {Repository}" , repositoryName ) ;
50
- string title = PromptForInput ( "Title of the pull request :" , Title ) ;
50
+ Information ( @"Title of the pull request (or ""{PullRequestName}"" if empty)" , Title ) ;
51
+
52
+ string title = ( Console . ReadLine ( ) ) switch
53
+ {
54
+ string value when ! string . IsNullOrWhiteSpace ( value ) => value . Trim ( ) ,
55
+ _ => Title
56
+ } ;
51
57
52
58
Information ( "Creating {PullRequestName} for {Repository}" , title , repositoryName ) ;
53
59
string token = Token ?? PromptForInput ( "Token (leave empty to exit)" , string . Empty ) ;
Original file line number Diff line number Diff line change @@ -83,7 +83,13 @@ async ValueTask IWorkflow.FinishFeature()
83
83
string owner = GitRepository . GetGitHubOwner ( ) ;
84
84
85
85
Information ( "Creating a pull request for {Repository}" , repositoryName ) ;
86
- string title = PromptForInput ( "Title of the pull request :" , Title ) ;
86
+ Information ( @"Title of the pull request (or ""{PullRequestName}"" if empty)" , Title ) ;
87
+
88
+ string title = ( Console . ReadLine ( ) ) switch
89
+ {
90
+ string value when ! string . IsNullOrWhiteSpace ( value ) => value . Trim ( ) ,
91
+ _ => Title
92
+ } ;
87
93
88
94
Information ( "Creating {PullRequestName} for {Repository}" , title , repositoryName ) ;
89
95
string token = Token ?? PromptForInput ( "Token (leave empty to exit)" , string . Empty ) ;
You can’t perform that action at this time.
0 commit comments