Are there service hooks for GitHub wiki repositories? Is there some other mechanism that GitHub provides for me to track wiki edits?
How can you track or be notified of changes to GitHub wikis?
6.8k Views Asked by Eric Bloch At
2
There are 2 best solutions below
0

I set up a Jenkins job to pull our GitHub wiki from https://github.com/IQSS/dvn.wiki.git with a build trigger of @daily. In a build step, I'm executing a shell command like this to email us:
echo "The DVN wiki on GitHub has been updated. Please check for new content at https://github.com/IQSS/dvn/wiki/_history" | mail -s "[dvn-wiki-notifications] update detected" [email protected]
Here's the job if anyone cares to see: https://build.hmdc.harvard.edu:8443/job/dvn-wiki-notifications/
Push approach: Within the GitHub API documentation, you can find documentation about setting up service hooks which can be triggered for one or more events. The
gollum
event is especially raised any time a wiki page is updated.JSON-based pull approach: You can also leverage the Events HTTP API to retrieve a JSON formated output of what happens on GitHub, then apply some filtering in order to isolate the events of type
GollumEvent
.Below a quick jQuery-based sample
Atom based pull approach: Last but not least, you can subscribe to the wiki changes atom feed. Go to the GitHub Wiki section of the repository, select the
Pages
sub tab, hover onto the orange icon, copy the link and paste into your favorite RSS reader.Update:
It looks like the RSS feed icon is no longer displayed for a wiki.
However, you can still build the URL by yourself
https://github.com/:user/:repository/wiki.atom