Skip to content

Commit 2ee2a64

Browse files
committed
Include contributors section in release notes only if there is at least one contributor
1 parent cee34ed commit 2ee2a64

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/GitReleaseManager.Core/Templates/default/contributors.sbn

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ __Contributors__
66

77
{{ for contributor in contributors.items
88
include 'contributor-details'
9-
end }}
10-
9+
end }}

src/GitReleaseManager.Core/Templates/default/index.sbn

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
include 'milestone'
55
end
66
include 'issues' | string.rstrip
7-
include 'contributors'
7+
if contributors.count > 0
8+
include 'contributors'
9+
end
810
if template_kind == "CREATE"
911
include 'create/footer'
1012
end

0 commit comments

Comments
 (0)