Created
January 16, 2019 15:42
-
-
Save vertis/afeca6ca66246d8c208e6f23c1341a90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Instructions: | |
# 1. Create a webhook here https://getmakerlog.com/apps/webhooks | |
# 2. Add generated key into this file | |
# 3. Write contents to .git/hooks/post-commit in the repos you want to track | |
WEBHOOK_URL="https://api.getmakerlog.com/apps/webhook/<your web hook key>" | |
MESSAGE=`git log -1 --pretty=%B` | |
curl --silent --output /dev/null -d "{\"done\":\"true\", \"content\":\"Commited: $MESSAGE\"}" -H "Content-Type: application/json" -X POST $WEBHOOK_URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment