phase1: make change links clickable
authorPaul Spooren <mail@aparcar.org>
Sat, 9 Jan 2021 21:41:53 +0000 (11:41 -1000)
committerPetr Štetiar <ynezz@true.cz>
Tue, 2 Mar 2021 11:47:11 +0000 (12:47 +0100)
Adding a `revlink` allows to click on changes leading to the
git.openwrt.org commit package. This feature works automatically for
pages like GitHub, however requires this manual step for custom urls.

Signed-off-by: Paul Spooren <mail@aparcar.org>
phase1/master.cfg

index 49ce32f6a4a83d602effe89fd961d21a24a89e6f..5a20804e9cd49be31940ffcc6f6922da7942a185 100644 (file)
@@ -1365,6 +1365,11 @@ if ini.has_option("irc", "host") and ini.has_option("irc", "nickname") and ini.h
 
        c['services'].append(irc)
 
+c['revlink'] = util.RevlinkMatch([
+       r'https://git.openwrt.org/openwrt/(.*).git'
+       ],
+       r'https://git.openwrt.org/?p=openwrt/\1.git;a=commit;h=%s')
+
 ####### DB URL
 
 c['db'] = {