Skip to content

Instantly share code, notes, and snippets.

@chasen-bettinger
Created July 13, 2023 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chasen-bettinger/dcdbadfe9f0beaf25acc4f563c85e393 to your computer and use it in GitHub Desktop.
Save chasen-bettinger/dcdbadfe9f0beaf25acc4f563c85e393 to your computer and use it in GitHub Desktop.
bash function to find a repo's last push date and then get # of days since that date
get_last_update_date() {
days_since=$(gh repo view $1 --json pushedAt -q ".pushedAt" | ./diff_date.sh)
echo "$1 $days_since"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment