mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(fastapi): add configurable commit hash display
Two new options have been added: - [devel] commit_url - URL including an %s format specifier that can be used to link to a webpage for the commit. - [devel] commit_hash - HEAD's commit hash (produced via `git rev-parse HEAD`) If a `[devel] commit_hash` is configured, a link to the commit based on `[devel] commit_url` will be displayed in the aurweb footer in the form: `HEAD@<commit_hash>`. If no `[devel] commit_url` is configured, a non-linked hash will be displayed. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
da55aa6491
commit
0d734eb07d
6 changed files with 82 additions and 1 deletions
|
@ -62,3 +62,6 @@ bind_address = 127.0.0.1:8082
|
|||
|
||||
; Passphrase FastAPI uses to sign client-side sessions.
|
||||
session_secret = secret
|
||||
|
||||
[devel]
|
||||
;commit_hash = 1234567
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue