Skip to content

Instantly share code, notes, and snippets.

@vertis
Created January 16, 2019 15:42
Show Gist options
  • Save vertis/afeca6ca66246d8c208e6f23c1341a90 to your computer and use it in GitHub Desktop.
Save vertis/afeca6ca66246d8c208e6f23c1341a90 to your computer and use it in GitHub Desktop.
#!/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