From 5a5a2939867687b590e3c57eb58e7ed93ede9723 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sat, 9 Jan 2021 11:41:53 -1000 Subject: [PATCH] phase1: make change links clickable 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 --- phase1/master.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phase1/master.cfg b/phase1/master.cfg index 49ce32f..5a20804 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -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'] = { -- 2.30.2