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

Commit 5e6786c

Browse files
committed
[[ Notes ]] Filter notes with version metadata
This patch ensures that notes with version metadata are filtered correctly from release notes collation even if they have been touched, modified etc between newer release tags (i.e. metadata header has precedence over git log)
1 parent cf864c3 commit 5e6786c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

builder/release_notes_builder.livecodescript

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,15 @@ private command NotesScanVersion pType, pVersion, pFiles, @xScan
482482
put tFileInfo["metadata"]["version"] into tVersion
483483
if tVersion is empty then
484484
put pVersion into tVersion
485+
else
486+
-- filter out touched files with version headers
487+
set the itemDelimiter to "-"
488+
if item 1 of tVersion is not item 1 of pVersion then
489+
builderLog "report", "Filtering touched file with version header" && tFile
490+
next repeat
491+
end if
485492
end if
493+
486494
put tFileInfo["metadata"]["basename"] into tBasename
487495
if tBasename is empty then
488496
put FileGetBasename(tFile) into tBasename

0 commit comments

Comments
 (0)