On Sun, 23 Apr 2017 at 18:53:02, Lukas Fleischer wrote:
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> --- aurweb/scripts/rendercomment.py | 59 +++++++++++++++++++++++++++++++++++++---- conf/config.proto | 1 + 2 files changed, 55 insertions(+), 5 deletions(-) [...] diff --git a/conf/config.proto b/conf/config.proto index 094d821..84351d9 100644 --- a/conf/config.proto +++ b/conf/config.proto @@ -30,6 +30,7 @@ auto_orphan_age = 15552000 auto_delete_age = 86400 source_file_uri = https://aur.archlinux.org/cgit/aur.git/tree/%s?h=%s log_uri = https://aur.archlinux.org/cgit/aur.git/log/?h=%s +commit_uri = https://aur.archlinux.org/cgit/aur.git/log/?h=%s&id=%s
Small typo here, this should link to the commit page instead of the log page. I queued a fixed version on pu which also includes some test suite changes.
snapshot_uri = /cgit/aur.git/snapshot/%s.tar.gz enable-maintenance = 1 maintenance-exceptions = 127.0.0.1 -- 2.12.2