gitプッシュ時にSlackに投稿する
hooks/post-receiveに以下を記載
post-receive
#!/bin/bash
MESSAGE=$(git log -1 --pretty=format:"%h - %an : %s" --branches)
TEXT="text="${MESSAGE}
TOKEN="token=[取得したToken]"
CHANNEL="channel=[投稿したいチャンネル]"
USER="user="$(whoami)
curl -XPOST -d ${TOKEN} -d ${CHANNEL} -d "${TEXT}" -d 'as_user=true' -d ${USER} 'https://slack.com/api/chat.postMessage'