79416324

Date: 2025-02-05 22:21:11
Score: 1
Natty:
Report link

I needed something similar. After trial and error and multiple google searches I came away with this curl method:

curl -s "https://api.github.com/users/GITHUB_USERNAME/events" | jq '[.[] | select(.type=="PushEvent") | .payload.commits[].url] | .[]' | xargs curl -s | jq '[.files[].additions, .files[].deletions] | add'

parsing it with jq was what really helped.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Donnie McNeil