Commit Graph

13 Commits

Author SHA1 Message Date
Peter Šurda 3e59f2069e
Feat: add support for secret provider for webhook 2021-04-16 03:55:32 +02:00
Marvin Pohl 341f216c2c Set the base repository and branch as the default one for a pull request. 2021-03-29 00:06:25 +02:00
Marvin Pohl e2297f3be7 Merge branch 'add-changed-files' of https://github.com/mrstanwell/buildbot-gitea into mrstanwell-add-changed-files 2021-03-20 12:25:05 +01:00
mrstanwell f3964970d1 Add list of changed files to "changes". 2021-03-17 18:35:06 -05:00
Marvin Pohl 0c32c93715 Using correct header identifiert for the Gitea Signature 2021-03-10 20:19:37 +01:00
Marvin Pohl 0fd2394bcd Webhook now verifies the new hmac signature instead of just comparing the secret as plain text. 2021-03-09 21:54:06 +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