From 6b52d3c1f0e656a4d914590b1412b2c70b2f5da4 Mon Sep 17 00:00:00 2001 From: Jonathan Lynch Date: Thu, 9 Jul 2015 13:11:23 -0400 Subject: [PATCH 1/2] replace newline in MSG to an html line break --- hipchat-post-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipchat-post-receive b/hipchat-post-receive index 209f2e6..9b601a6 100755 --- a/hipchat-post-receive +++ b/hipchat-post-receive @@ -70,7 +70,7 @@ else then LOG=`echo -e "$LOG" | sed "s/\([A-Z]\{2,\}\-[0-9]\{1,\}\)/\1<\/a>/g"` fi - MSG="$TITLE\n$LOG" + MSG="$TITLE
$LOG" fi # Send it to HipChat From 89a92bef31e69bec8983afff70a37959947a94a8 Mon Sep 17 00:00:00 2001 From: Jonathan Lynch Date: Thu, 9 Jul 2015 13:13:24 -0400 Subject: [PATCH 2/2] update readme for v2 of hipchat API --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index aeaac43..efc7c95 100644 --- a/README.md +++ b/README.md @@ -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"