Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit aab3968

Browse files
committed
Add bug fix statistics to the installer "updates" list.
Modify the release notes summary shown in the installer so that it includes a count of bugs fixed under each heading.
1 parent 08e150f commit aab3968

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

builder/release_notes_builder.livecodescript

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ private command V1BugGenerate pBugInfo, pBugCategory
11081108
GitSortTags tTags
11091109

11101110
local tVersion, tBugs, tCurrent, tLine, tId, tDesc, tUrl
1111-
local tPrettyVersion
1111+
local tPrettyVersion, tBugCount
11121112

11131113
put the number of lines in tTags into tTagCount
11141114
repeat tTagCount times
@@ -1141,12 +1141,20 @@ private command V1BugGenerate pBugInfo, pBugCategory
11411141

11421142
MarkdownAppend "notes", "<tr><td><a href=" & quote & tUrl & quote & ">" & tId & "</a>" & \
11431143
"</td><td>" & tDesc & "</td></tr>"
1144+
1145+
add 1 to tBugCount
11441146
end repeat
11451147

11461148
MarkDownAppend "notes", "</table>"
11471149

11481150
subtract 1 from tTagCount
11491151
end repeat
1152+
1153+
if tBugCount is 1 then
1154+
MarkDownAppend "updates", merge("1 [[pBugCategory]] bug fix.")
1155+
else if tBugCount > 1 then
1156+
MarkDownAppend "updates", merge("[[tBugCount]] [[pBugCategory]] bug fixes.")
1157+
end if
11501158
end V1BugGenerate
11511159

11521160
private command V2BugGenerate pBugInfo, pBugCategory

0 commit comments

Comments
 (0)