Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions hipchat-post-receive
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ then
BRANCH_LINK="<a href=\"https://$GITORIOUS/$GIT_PROJECT/$REPO_NO_GIT/commits/$BRANCH\">$BRANCH</a>"
fi

#construct phabricator links
if [ -n "$PHABRICATOR" ]
then
USER_LINK="<a href=\"http://$PHABRICATOR/audit/?authors=$USER\">$USER</a>"
REPO_LINK="<a href=\"http://$PHABRICATOR/diffusion/$REPO/\">$REPO</a>"
BRANCH_LINK="<a href=\"http://$PHABRICATOR/diffusion/$REPO/browse/$BRANCH/\">$BRANCH</a>"
fi

# Construct message
if [ "$OLDREV" = "$NULLREV" ]
then
Expand All @@ -60,6 +68,9 @@ else
elif [ -n "$GITORIOUS" ]
then
LOG=`$GIT_EXEC log $OLDREV..$NEWREV --format="- %s (<a href=\"https://$GITORIOUS/$GIT_PROJECT/$REPO_NO_GIT/commit/%H\">%h</a>)"`
elif [ -n "$PHABRICATOR" ]
then
LOG=`$GIT_EXEC log $OLDREV..$NEWREV --format="- %s (<a href=\"http://$PHABRICATOR/r$REPO%H\">%h</a>)"`
else
LOG=`$GIT_EXEC log $OLDREV..$NEWREV --format="- %s (%h)"`
fi
Expand Down