Python script that uses the Github API to follow the activity of a repository then converts it into a WebHook format (for Discord, Slack and Gitter) and an RSS feed file.
Tested on Linux (it should work on Mac and Windows)
Example of the IssueCommentEvent
event using the minetest/minetest_game
repo:
IssuesEvent (opened, closed, reopened)
IssueCommentEvent (comments in issues and pull requests) (edits not supported)
PullRequestEvent (opened, closed, reopened)
PullRequestReviewCommentEvent (diffs)
PushEvent (commits pushed to repo)
Multiple commits in a push (TODO)
Receiving multiple messages (TODO)
Edited issues & comments, pull request & comments (no global API event)
WatchEvent (not adding)
StarEvent (not adding)
-
Clone this repository
-
Create a webhook from an application (optional) then modify the settings in
settings.txt
. -
Run
repoActivity.py
For an RSS feed, add the feed URL file:///PATH/.githubrss.xml
where PATH
is the path to the cloned repository directory e.g (file:///tmp/githubrepoactivity/.githubrss.xml) (tested with QuiteRSS)