From 45d2fcbb29e640e8de69458118a054bd373c4d8a Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Thu, 28 Aug 2014 16:30:42 -0700 Subject: [PATCH] add phabricator support Signed-off-by: Austin Foxley --- README.md | 1 + hipchat-post-receive | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index aeaac43..cef63c2 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ GITWEB="gitweb.example.com" JIRA="jira.example.com" REDMINE="redmine.example.com" GITORIOUS="gitorious.example.com" +PHABRICATOR="phabricator.example.com" ``` ## Contributions diff --git a/hipchat-post-receive b/hipchat-post-receive index 209f2e6..94c15bc 100755 --- a/hipchat-post-receive +++ b/hipchat-post-receive @@ -40,6 +40,14 @@ then BRANCH_LINK="$BRANCH" fi +#construct phabricator links +if [ -n "$PHABRICATOR" ] +then + USER_LINK="$USER" + REPO_LINK="$REPO" + BRANCH_LINK="$BRANCH" +fi + # Construct message if [ "$OLDREV" = "$NULLREV" ] then @@ -60,6 +68,9 @@ else elif [ -n "$GITORIOUS" ] then LOG=`$GIT_EXEC log $OLDREV..$NEWREV --format="- %s (%h)"` + elif [ -n "$PHABRICATOR" ] + then + LOG=`$GIT_EXEC log $OLDREV..$NEWREV --format="- %s (%h)"` else LOG=`$GIT_EXEC log $OLDREV..$NEWREV --format="- %s (%h)"` fi