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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ Go to the `hooks` directory in a bare repository you want to setup the hooks for

You can lookup the HipChat room id from the [rooms/list](https://www.hipchat.com/docs/api/method/rooms/list) API or use the HipChat room name (remember to urlencode it)

Keep in mind that a v1 API token is different from a v2 token.

```sh
#!/bin/sh

HIPCHAT_SCRIPT="/path/to/hipchat_room_message"
HIPCHAT_SCRIPT="/path/to/hipchat_room_message -v2"
HIPCHAT_ROOM="HipChat room name or room_id"
HIPCHAT_TOKEN="1234567890"
HIPCHAT_FROM="GIT"
Expand Down
2 changes: 1 addition & 1 deletion hipchat-post-receive
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ else
then
LOG=`echo -e "$LOG" | sed "s/\([A-Z]\{2,\}\-[0-9]\{1,\}\)/<a href=\"http:\/\/$JIRA\/browse\/\1\">\1<\/a>/g"`
fi
MSG="$TITLE\n$LOG"
MSG="$TITLE</br>$LOG"
fi

# Send it to HipChat
Expand Down