Commit Graph

8 Commits

Author SHA1 Message Date
mrstanwell
853874261c Add list of changed files to "changes".
(cherry picked from commit f3964970d1)
2021-03-20 12:40:43 +01:00
mrstanwell
051a9e51ec Add commits to the changes list in reverse order.
The gitea webhook list of pushed commits is in order from newest to
oldest.  If commits are appended to the changes array and returned, the
last commit in the array will be the oldest commit in the push.
However, buildbot treats the last change as the *most* recent.  This
means that unless you use 'alwaysUseLatest=True' in your Git step, the
Git step will not check out the newest commit in the push.  If you
happen to be using 'shallow=True', this will actually cause the Git
update step to fail because only the newest commit is available in a
shallow checkout.

This update inserts each commit in the gitea webhook call at the
beginning of the array, which means buildbot sees them in chronological
order.  A Git step with 'shallow=True' will now succeed.
2020-10-27 01:52:07 +01:00
JamesWrigley
cf6e4ea670 Extend the webhook to easily support custom subclasses
The design is based on the one used by Buildbot's own GitHubEventHandler.
2019-10-10 11:22:31 +02:00
kaou
b6facc6362 Fixed exception when providing 'True' instead of a dictionnary as option 2019-01-21 19:13:38 +00:00
Marvin Pohl
4e0ce1f374 Added option to exclude other commits than the push commit. 2018-11-05 13:05:57 +01:00
Marvin Pohl
78ccfc074b Added GiteaStatusPush reporter 2018-09-27 14:46:35 +02:00
Marvin Pohl
29750bcbdb Added Checks for NotMergeable and Merged pull requests 2018-09-27 13:21:10 +02:00
Marvin Pohl
293acd8a2b Renamed module from gitea to builbot_gitea, added unit tests for pull requests and secret phrase 2018-09-05 14:14:31 +02:00