Created
July 13, 2023 18:20
-
-
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
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
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