Skip to content

Instantly share code, notes, and snippets.

View tuchangwei's full-sized avatar

Changwei tuchangwei

View GitHub Profile
echo sha, contributor, date, message > log.csv
git log --date=local --pretty=format:'%h, %an, %ad, "%s"' >> log.csv
@tuchangwei
tuchangwei / post-commit
Last active January 24, 2024 13:11
Upload git log to Clickup via git hooks
#!/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'