Commit Graph

92 Commits

Author SHA1 Message Date
Peter Šurda 5885c8cbbe Initial transformation into transifex 2022-12-28 08:04:44 +00:00
Marvin Pohl 1d10fc0e11 Bumped version to 1.7.2 2022-09-05 16:15:16 +02:00
László Károlyi a6754fadba Handle any extra parameters to _fetch 2022-09-05 14:51:20 +02:00
Anton Kasimov 5524f5f53d Allow passing kwargs to OAuth2Auth 2022-01-23 22:56:39 +01:00
Marvin Pohl fc4d14ecbe Bumped version to 1.7.1 2022-01-22 03:30:08 +01:00
Marvin Pohl fe9fef407f Fixed None access in commits with no changed, added or removed files 2022-01-22 03:28:32 +01:00
Marvin Pohl 2338fac3cd Bumped version to 1.7.0 2021-07-05 13:53:42 +02:00
Marvin Pohl 16ea6c344a Changed Unittests for new head_sha usage 2021-07-05 13:53:00 +02:00
Marvin Pohl 52c7864e56 Use the HEAD sha, when reporting a PR issue 2021-07-05 13:50:09 +02:00
Marvin Pohl d1c24a641c
Removed build status since travis ci is broken 2021-06-22 19:37:33 +02:00
Marvin Pohl eeaebe4d92 Bumped Version to v1.6.1 2021-06-22 19:35:00 +02:00
Marvin Pohl d55b1dc9ea Fixed not being able to specify a context for the reporter. 2021-06-22 19:34:30 +02:00
Marvin Pohl 294160ad83 Bumped Version to v1.6.0 2021-05-16 01:37:50 +02:00
Marvin Pohl b4d11a7058 Status reporter now sends status to head repository if the current build is from a pull request. 2021-05-16 01:37:03 +02:00
Marvin Pohl b1dc019e60 Added unit tests for Secret Phrase provider in webhook 2021-04-26 10:58:14 +02:00
Peter Šurda 3e59f2069e
Feat: add support for secret provider for webhook 2021-04-16 03:55:32 +02:00
Marvin Pohl fe223aa990 Bumped Version to v1.5.1 2021-03-29 00:07:39 +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 284a58826d Bumped Version to 1.5.0 2021-03-20 12:43:18 +01:00
Marvin Pohl e9905239dc Added unit test for changed files 2021-03-20 12:35:34 +01: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 d67eeedbd2 Bumped version to v1.4.1 2021-03-10 20:20:06 +01:00
Marvin Pohl 0c32c93715 Using correct header identifiert for the Gitea Signature 2021-03-10 20:19:37 +01:00
Marvin Pohl 8e66482bec Bumped version to 1.4.0 2021-03-09 21:54:57 +01:00
Marvin Pohl 7171e4a371 Changed buildbot requirements to >=3.0.0 2021-03-09 21:54:27 +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
Marvin Pohl 708fad884e Removed start and endDescription from documentation, since this is now being generated using generators. 2021-03-09 20:51:33 +01:00
Marvin Pohl 8d8626b38c Fixed up implementation for buildbot 3.0.0 2021-03-09 20:48:02 +01:00
Marvin Pohl ada48bc6e5 Bumped version to v1.3.0 2021-03-09 20:44:55 +01:00
Marvin Pohl 4e583a7756 Updated buildbot dependencies 2021-03-09 20:42:36 +01:00
Marvin Pohl 7a50c7a064 Fixed up unit test for buildbot 2.9 2021-03-09 20:37:00 +01:00
Marvin Pohl 56ef5a1d78 Merge branch 'update2.9' of https://github.com/mrstanwell/buildbot-gitea into mrstanwell-update2.9 2021-03-09 18:35:46 +01:00
Marvin Pohl 1444fee747 Bumped version to v1.2.4 2021-01-16 15:40:20 +01:00
Marvin Pohl e0dc125ddd Allow git config to fail if the pr_source remote is not yet initialized. 2021-01-16 15:39:05 +01:00
mrstanwell a47f7a512b Conform to code in GitLabStatusPush v2.9.4.
I don't fully understand the impact of these API changes, but without
them the status from buildbot upon a successful build was causing gitea
to mark commits with a yellow circle instead of a green checkmark.
Since GiteaStatusPush was based on GitLabStatusPush in the first place,
I tried making it look more like its ancestor -- and now the commit status
in gitea is working correctly.
2021-01-08 18:17:18 -06:00
mrstanwell cd82223a81 Provide checkConfig(), to support buildbot 2.9.x.
Apparently, as of buildbot 2.9.x, [reporters need to provide their own
checkConfig() implementation when a service has custom args not supplied
to the superclass](https://github.com/buildbot/buildbot/pull/5571).  If
we don't do this, checkconfig will fail.
2021-01-05 13:53:26 -06:00
Marvin Pohl b17a60beff Bumped version to v1.2.3 2020-10-27 02:02:01 +01:00
Marvin Pohl c41cac7b56 Swapped order of hooks from oldest to newest to accomodate for fixed commit order. 2020-10-27 02:00:48 +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
Marvin Pohl 15e7068043 Bumped version to v1.2.2 2020-06-01 14:55:19 +02:00
Benjamin Füldner 80f3aab446 Correct missing dollar sign to match end of line correctly in repo_name regex. 2020-05-27 14:12:42 +02:00
Marvin Pohl 8d2daa294f Bumped version to v1.2.1 2020-05-23 11:37:06 +02:00
Benjamin Füldner 27b2449f29
Remove .git from repo_name regex to get a valid repository name. (#8) 2020-05-15 16:54:01 +02:00
Marvin Pohl 2de8fa49e3 Updated documentation for Auth 2019-12-20 11:37:56 +01:00
Marvin Pohl 01e59b698b Bumped version to v.1.2.0 2019-12-20 11:31:24 +01:00
Marvin Pohl 4ea3571442 Moved GiteaAuth to buildbot.plugins.util since buildbot.plugins.auth does not exist. 2019-12-20 11:16:32 +01:00
Marvin Pohl 64c521f55b Added minimal unittests for GiteaAuth. 2019-12-20 10:44:52 +01:00
Marvin Pohl 479a029a5c Register GiteaAuth with the buildbout plugin system. 2019-12-20 10:44:35 +01:00
Marvin Pohl a065597d57 Bring auth.py to PEP-8 standard. 2019-12-20 10:44:16 +01:00