From 897536b1055690480f4ef23b04e11aa812e47e82 Mon Sep 17 00:00:00 2001 From: Christoffer Date: Fri, 28 Dec 2018 00:03:39 +0000 Subject: [PATCH] rfc8416.php, roagen.php: add full url to commit in _comments --- rfc8416.php | 2 ++ roagen.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/rfc8416.php b/rfc8416.php index fcd00a3..5c4788b 100755 --- a/rfc8416.php +++ b/rfc8416.php @@ -11,6 +11,8 @@ $roas["_comments"]["modified"]["merge"] = shell_exec ("/usr/bin/git -C ../regist $roas["_comments"]["modified"]["author"] = shell_exec ("/usr/bin/git -C ../registry/ log -n 1 --pretty='format:%an <%ae>'"); $roas["_comments"]["modified"]["date"] = shell_exec ("/usr/bin/git -C ../registry/ log -n 1 --pretty='format:%aD'"); $roas["_comments"]["modified"]["subject"] = shell_exec ("/usr/bin/git -C ../registry/ log -n 1 --pretty='format:%s'"); +$roas["_comments"]["modified"]["url"] = "https://git.dn42.us/dn42/registry/commit/"; +$roas["_comments"]["modified"]["url"] .= $roas["_comments"]["modified"]["commit"]; $roas["validationOutputFilters"]["prefixFilters"] = array(); $roas["validationOutputFilters"]["bgpsecFilters"] = array(); $roas["locallyAddedAssertions"]["bgpsecAssertions"] = array(); diff --git a/roagen.php b/roagen.php index acacaaa..b1b5f30 100755 --- a/roagen.php +++ b/roagen.php @@ -9,6 +9,8 @@ $roas["_comments"]["modified"]["merge"] = shell_exec ("/usr/bin/git -C ../regist $roas["_comments"]["modified"]["author"] = shell_exec ("/usr/bin/git -C ../registry/ log -n 1 --pretty='format:%an <%ae>'"); $roas["_comments"]["modified"]["date"] = shell_exec ("/usr/bin/git -C ../registry/ log -n 1 --pretty='format:%aD'"); $roas["_comments"]["modified"]["subject"] = shell_exec ("/usr/bin/git -C ../registry/ log -n 1 --pretty='format:%s'"); +$roas["_comments"]["modified"]["url"] = "https://git.dn42.us/dn42/registry/commit/"; +$roas["_comments"]["modified"]["url"] .= $roas["_comments"]["modified"]["commit"]; /* *