Hey,
I am looking for a way to obtain some information on the commits made to some WMF hosted git repo within the last n seconds. My current solution is using githubs since parameters as follows:
https://api.github.com/repos/wikimedia/mediawiki-extensions-Wikibase/commits...
This however does not really work for me since there is a lag of a minute or two before the commit gets pushed to github. So if I ask for the commits made in the last 30 seconds, I will never get anything back.
Is there a similar API in gitweb, gerrit or something else accessible over http?
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. --
Hey,
Found the answer to my own question :)
You can indeed get a list of changes merged in the last n seconds from gerrit, via its http API. The first change merged into Wikibase in the last 10 seconds can be obtained as follows:
https://gerrit.wikimedia.org/r/changes/?q=status:merged+project:mediawiki/ex...
Relevant docs at
https://gerrit.wikimedia.org/r/Documentation/rest-api-changes.html#list-chan...
and
https://gerrit.wikimedia.org/r/Documentation/user-search.html#_search_operat...
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. --
wikitech-l@lists.wikimedia.org