{"id":20516413,"url":"https://github.com/eirc/git-hipchat-hook","last_synced_at":"2025-08-13T15:40:25.287Z","repository":{"id":1850242,"uuid":"2774984","full_name":"eirc/git-hipchat-hook","owner":"eirc","description":"A simple GIT post-receive hook script for notifying a room in HipChat.","archived":false,"fork":false,"pushed_at":"2015-07-09T17:32:33.000Z","size":153,"stargazers_count":43,"open_issues_count":9,"forks_count":21,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-27T14:51:50.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"longld/peda","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eirc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-14T20:24:43.000Z","updated_at":"2022-09-07T16:20:04.000Z","dependencies_parsed_at":"2022-08-20T09:30:45.747Z","dependency_job_id":null,"html_url":"https://github.com/eirc/git-hipchat-hook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eirc%2Fgit-hipchat-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eirc%2Fgit-hipchat-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eirc%2Fgit-hipchat-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eirc%2Fgit-hipchat-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eirc","download_url":"https://codeload.github.com/eirc/git-hipchat-hook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248802454,"owners_count":21163850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T21:28:48.933Z","updated_at":"2025-04-14T00:35:42.286Z","avatar_url":"https://github.com/eirc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git HipChat Hook\n\nA simple GIT `post-receive` hook script for notifying a room in HipChat.\n\n## Installation\n\nClone this repository somewhere in your GIT repository host server.\nFor example:\n\n```sh\ncd /home/git\ngit clone git://github.com/eirc/git-hipchat-hook.git\n```\n\nClone [hipchat-cli](https://github.com/hipchat/hipchat-cli) somewhere in your GIT repository host server.\n\n```sh\ngit clone git://github.com/hipchat/hipchat-cli.git\n```\n\nGo to the `hooks` directory in a bare repository you want to setup the hooks for and add a `post-receive` script like this one and make sure its executable.\n\nYou 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)\n\n```sh\n#!/bin/sh\n\nHIPCHAT_SCRIPT=\"/path/to/hipchat_room_message\"\nHIPCHAT_ROOM=\"HipChat room name or room_id\"\nHIPCHAT_TOKEN=\"1234567890\"\nHIPCHAT_FROM=\"GIT\"\n\n. /path/to/hipchat-post-receive\n```\nIf using gitorious make sure to add GIT_PROJECT=\"Name of project\" to the hook:\n```sh\n#!/bin/sh\n\nHIPCHAT_SCRIPT=\"/path/to/hipchat_room_message\"\nHIPCHAT_ROOM=\"HipChat room name or room_id\"\nHIPCHAT_TOKEN=\"1234567890\"\nHIPCHAT_FROM=\"GIT\"\nGIT_PROJECT=\"MyScripts\"\n\n. /path/to/hipchat-post-receive\n```\n\nAnd you're done!\n\nFor GitWeb, CGit, Gitorious and Redmine integrations (optional) add the following configuration to the `post-receive` hook before the `hipchat-post-receive` source line.\n\nNote that CGit and GitWeb, and Redmine and JIRA, are mutually exclusive.\n\n```sh\nCGIT=\"git.example.com/cgit\"\nGITWEB=\"gitweb.example.com\"\nJIRA=\"jira.example.com\"\nREDMINE=\"redmine.example.com\"\nGITORIOUS=\"gitorious.example.com\"\n```\n\n## Contributions\n\n* [graffic](http://github.com/graffic) for the sed RegEx to link to Redmine issues.\n* [jparise](http://github.com/jparise) for CGit and JIRA integrations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feirc%2Fgit-hipchat-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feirc%2Fgit-hipchat-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feirc%2Fgit-hipchat-hook/lists"}