Skip to content

Commit 1850227

Browse files
committed
Merge branch 'hotfix/0.4.4'
2 parents 1cd6a29 + 513c2d3 commit 1850227

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

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+
1014
## [0.4.3] / 2023-07-10
1115
### 🔧 Fixes
1216
- 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
111115
[0.3.0]: https://github.com/candoumbe/Pipelines/compare/0.2.0...0.3.0
112116
[0.2.0]: https://github.com/candoumbe/Pipelines/compare/0.1.0...0.2.0
113117
[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

src/Candoumbe.Pipelines/Components/GitHub/IGitFlowWithPullRequest.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ async ValueTask IWorkflow.FinishFeature()
4747
string owner = GitRepository.GetGitHubOwner();
4848

4949
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+
};
5157

5258
Information("Creating {PullRequestName} for {Repository}", title, repositoryName);
5359
string token = Token ?? PromptForInput("Token (leave empty to exit)", string.Empty);

src/Candoumbe.Pipelines/Components/GitHub/IGitHubFlowWithPullRequest.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,13 @@ async ValueTask IWorkflow.FinishFeature()
8383
string owner = GitRepository.GetGitHubOwner();
8484

8585
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+
};
8793

8894
Information("Creating {PullRequestName} for {Repository}", title, repositoryName);
8995
string token = Token ?? PromptForInput("Token (leave empty to exit)", string.Empty);

0 commit comments

Comments
 (0)