Skip to content

Commit

Permalink
Add UX tagging and change log retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexikos committed Mar 23, 2024
1 parent bebf060 commit 701af1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _RELEASE.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,12 @@ if FileExist(InstDataDir "\UX")
git("pull --ff-only", InstDataDir "\UX")
if ErrorLevel
Prompt("Error updating UX; check log", 0)
if committing && branch ~= "^v[\d\.]+$"
{
D("! Tagging UX v" version)
git("tag -m v" version " v" RegExReplace(version, "-\Q" cid "\E$"), InstDataDir "\UX")
git("push origin tag v" RegExReplace(version, "-\Q" cid "\E$"), InstDataDir "\UX")
}
}


Expand Down
2 changes: 2 additions & 0 deletions prepare-docs.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ PrepareDocsBegin(last_tag, version)

; Get all commit messages since the last tag.
log := git("log --format=format:%s%n%n%b --reverse " last_tag "..HEAD")
if FileExist(InstDataDir "\UX")
log .= git("log --format=format:%s%n%n%b --reverse " last_tag "..HEAD", InstDataDir "\UX")

; Unwrap. | Remove empty lines.
log := RegExReplace(log, "`n (?= \S)|`n(?=`n|$)")
Expand Down

0 comments on commit 701af1f

Please sign in to comment.