mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Make references to Git commits clickable
Automatically detect Git commit identifiers, shorten them, and make them link to the cgit interface. Implements FS#43290. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
a9ac385cb9
commit
bb623fc545
4 changed files with 57 additions and 5 deletions
|
@ -29,6 +29,7 @@ aur_location = https://aur.archlinux.org
|
|||
aur_request_ml = aur-requests@archlinux.org
|
||||
enable-maintenance = 0
|
||||
maintenance-exceptions = 127.0.0.1
|
||||
commit_uri = https://aur.archlinux.org/cgit/aur.git/log/?h=%s&id=%s
|
||||
|
||||
[notifications]
|
||||
notify-cmd = $NOTIFY
|
||||
|
|
|
@ -6,6 +6,7 @@ test_description='rendercomment tests'
|
|||
|
||||
test_expect_success 'Test comment rendering.' '
|
||||
cat <<-EOD | sqlite3 aur.db &&
|
||||
INSERT INTO PackageBases (ID, Name, PackagerUID, SubmittedTS, ModifiedTS, FlaggerComment) VALUES (1, "foobar", 1, 0, 0, "");
|
||||
INSERT INTO PackageComments (ID, PackageBaseID, Comments, RenderedComment) VALUES (1, 1, "Hello world!
|
||||
This is a comment.", "");
|
||||
EOD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue