Skip to content

Commit b44ce5d

Browse files
committed
Merge branch 'hotfix/0.17.2'
2 parents a556f42 + a825b5f commit b44ce5d

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [vNext]
88

9+
## [0.17.2] / 2019-02-24
10+
- Fixed parsing of changelog
11+
912
## [0.17.1] / 2019-02-23
1013
- Fixed attributes in build tasks
1114

@@ -311,7 +314,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
311314
- Added CLT tasks for Git
312315
- Fixed background color in console output
313316

314-
[vNext]: https://github.com/nuke-build/common/compare/0.17.1...HEAD
317+
[vNext]: https://github.com/nuke-build/common/compare/0.17.2...HEAD
318+
[0.17.2]: https://github.com/nuke-build/common/compare/0.17.1...0.17.2
315319
[0.17.1]: https://github.com/nuke-build/common/compare/0.17.0...0.17.1
316320
[0.17.0]: https://github.com/nuke-build/common/compare/0.16.0...0.17.0
317321
[0.16.0]: https://github.com/nuke-build/common/compare/0.15.0...0.16.0

build/Build.GitFlow.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ partial class Build
2828

2929
Target Release => _ => _
3030
.DependsOn(Changelog)
31-
.Requires(() => GitHasCleanWorkingCopy())
31+
.Requires(() => !GitRepository.IsOnReleaseBranch() || GitHasCleanWorkingCopy())
3232
.Executes(() =>
3333
{
3434
if (!GitRepository.IsOnReleaseBranch())
@@ -39,7 +39,7 @@ partial class Build
3939

4040
Target Hotfix => _ => _
4141
.DependsOn(Changelog)
42-
.Requires(() => GitHasCleanWorkingCopy())
42+
.Requires(() => !GitRepository.IsOnHotfixBranch() || GitHasCleanWorkingCopy())
4343
.Executes(() =>
4444
{
4545
var masterVersion = GitVersion(s => s

source/Nuke.Common/ChangeLog/ChangeLogTasks.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ string GetCaption(string str)
202202
{
203203
Caption = caption,
204204
StartIndex = index,
205-
EndIndex = nextNonReleaseContentIndex != 1
205+
EndIndex = nextNonReleaseContentIndex != -1
206206
? nextNonReleaseContentIndex - 1
207207
: content.Count - 1
208208
};

0 commit comments

Comments
 (0)