]> git.kaiwu.me - haproxy.git/commit
DEV: patchbot: pass the branch version to the generated page
authorWilly Tarreau <w@1wt.eu>
Mon, 6 Jul 2026 14:20:50 +0000 (16:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Jul 2026 08:58:38 +0000 (10:58 +0200)
commitfcbea9e0d02328d26f673589f0bb47d2839fd666
treeb6e5e8cd08ea2312babfced4adba7841e8254b51
parente4e99282caa3046d3f24d474960a8505daa7de54
DEV: patchbot: pass the branch version to the generated page

The review page will need to exchange its state with the update.cgi
service sitting next to it, and for this it must know which branch it
covers since all branches' pages may share a directory. post-ai.sh
takes a new "-v <version>" argument and emits it as a "branch" JS
variable; when absent the variable is empty and the page will simply
not offer syncing, keeping the output standalone as today.

update-3.0.sh deduces the version from its own name (update-3.0.sh ->
3.0), so that adding a symlink with another version for a new branch
continues to work with no other change, and passes it to post-ai.sh.
dev/patchbot/scripts/post-ai.sh
dev/patchbot/scripts/update-3.0.sh