This file contains hidden or 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
echo sha, contributor, date, message > log.csv | |
git log --date=local --pretty=format:'%h, %an, %ad, "%s"' >> log.csv |
This file contains hidden or 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 ruby | |
# how to use? | |
# 1, input your your_api_key | |
# 2, make the file executable first: chmod +x post-commit | |
# 3, put the file in your_project/.git/hooks/ folder | |
require "git" | |
require 'net/http' | |
require 'json' |
OlderNewer