Skip to content

Instantly share code, notes, and snippets.

View ajbozarth's full-sized avatar

Alex Bozarth ajbozarth

View GitHub Profile
# To get enterprise activity:
# GH_HOST=github.enterprise.com ./weekly-activity.sh
which gdate > /dev/null && date_cmd="gdate" || date_cmd="date"
starting_date=$($date_cmd -dlast-monday +"%Y-%m-%d")
gh_search_flags="--updated >=$starting_date --json repository,title,url"
prs_cmd="gh search prs --author @me $gh_search_flags"
reviewed_cmd="gh search prs --reviewed-by @me $gh_search_flags"
issues_cmd="gh search issues --involves @me $gh_search_flags"