You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/03/20 15:00:39 UTC

[sling-tooling-scm] 30/35: jira_link_for_commit: add repo name

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-scm.git

commit d90bc12b7a546c9a7764d7c78bef717cf7f837aa
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Mar 23 09:11:39 2018 +0100

    jira_link_for_commit: add repo name
---
 scripts/jira_link_for_commit.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/jira_link_for_commit.sh b/scripts/jira_link_for_commit.sh
index f524463..862b633 100755
--- a/scripts/jira_link_for_commit.sh
+++ b/scripts/jira_link_for_commit.sh
@@ -8,5 +8,6 @@ fi
 hash=$(git rev-parse --short ${commit})
 base=$(git remote get-url origin)
 url=${base%.git}/commit/${hash}
+repo_name=$(echo $base | awk -F '/' '{ gsub(".git", "", $5); print $5}')
 
-echo "[commit ${hash}|${url}]"
+echo "[${repo_name} commit ${hash}|${url}]"