Mercurial server-side hooks for Slack messaging service.
To add push hooks for some repo, modify .hg/hgrc in the central repository:
[slackhooks] webhook_url = WEBHOOK_URL repo_name = sample repository commit_url = http://example.com/101-sandbox/rev/ icon_emoji = :mercurial: [hooks] changegroup.slackhooks= python:/path/to/slackhooks.py:pushhook
Example of chat message output:
webhook_urlis your unique webhook URL.repo_nameis a name of your repository. It's optional.commit_urlis a part of URL for parcilular changeset. If it is specified, link to a changeset will be inserted in description of changeset. Plain text short revision number will be used otherwise.usernameis the displayed name. Default:mercurial.icon_emojiis the name of emoticon, which will be displayed. It's optional. You can useicon_urlinstead.icon_urlis a direct link to image, which will be displayed. It's optional. You can use this icon URL if you want.
icon_emoji and icon_url are both optional and interchangeable.
