Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created August 13, 2020 20:27
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 dlangille/cfaf2ea250129e85f428b1e25d21aff7 to your computer and use it in GitHub Desktop.
Save dlangille/cfaf2ea250129e85f428b1e25d21aff7 to your computer and use it in GitHub Desktop.
Using the events API to detect commits
[dan@pro02:~] $ curl -H "Authorization: token MYTOKEN" https://api.github.com/repos/freebsd/freebsd/events | grep 0d19f9ca2fba9df8176b5439518a0a7d946b9abd
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 82145 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 "head": "0d19f9ca2fba9df8176b5439518a0a7d946b9abd",
"sha": "0d19f9ca2fba9df8176b5439518a0a7d946b9abd",
"url": "https://api.github.com/repos/freebsd/freebsd/commits/0d19f9ca2fba9df8176b5439518a0a7d946b9abd"
100 82145 100 82145 0 0 205k 0 --:--:-- --:--:-- --:--:-- 204k
[dan@pro02:~] $
credit to cem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment