[buildbot] phase1: make change links clickable

LEDE Commits lede-commits at lists.infradead.org
Sat Mar 6 07:07:53 GMT 2021


ynezz pushed a commit to buildbot.git, branch master:
https://git.openwrt.org/5a5a2939867687b590e3c57eb58e7ed93ede9723

commit 5a5a2939867687b590e3c57eb58e7ed93ede9723
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Sat Jan 9 11:41:53 2021 -1000

    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 <mail at aparcar.org>
---
 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'] = {



More information about the lede-commits mailing list