Commit Graph

62 Commits

Author SHA1 Message Date
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
Marvin Pohl
bc8f00a7e6 Merge branch 'gitea-auth-class' of https://github.com/youreadforme/buildbot-gitea into gitea-auth 2019-12-20 10:08:09 +01:00
Marvin Pohl
b8aa5dd740 Fixed test_step_source: git step now containing --progress in the command line 2019-12-20 10:06:31 +01:00
Tony Crowe
d0b9f76be6 shorter urljoin 2019-12-18 11:43:48 -07:00
Tony Crowe
b370626010 add GiteaAuth class and documentation 2019-12-17 15:36:07 -07:00
Marvin Pohl
5bbeabbe39 Bumped version to v1.1.0 2019-10-17 11:19:44 +02:00
JamesWrigley
bef0568bb4 Add test cases for the 'class' parameter of the webhook 2019-10-10 11:22:31 +02: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
Marvin Pohl
6979276a19
Added travis status badge. 2019-09-21 12:48:40 +02:00
Marvin Pohl
62387d6412 Bumped to v1.0.0 2019-09-20 18:59:42 +02:00
Marvin Pohl
ad60a7dd2d Added README for installation instructions and usage. 2019-09-20 18:59:06 +02:00
Marvin Pohl
0455ca30c7 Use TestReactorMixin which seems to be required now. 2019-05-03 22:25:40 +02:00
Marvin Pohl
268541313e Setup travis ci 2019-03-11 02:03:46 +01:00
Marvin Pohl
7b04082c7c Updated senderror unittest and removed invalid array access. 2019-03-09 16:48:41 +01:00
Marvin Pohl
babf10f923 Merge branch 'master' into gdaow-master 2019-03-09 15:46:45 +01:00
Marvin Pohl
1820400e26 Fixed code for buildbot 2.0.0 2019-03-09 15:46:18 +01:00
kaou
f42f2f44ae Fixed repository regular expression, fixed error message getter 2019-01-21 20:04:39 +00:00
kaou
b6facc6362 Fixed exception when providing 'True' instead of a dictionnary as option 2019-01-21 19:13:38 +00:00
Marvin Pohl
4426a875b5 Bumped Version to 0.1.0 2018-11-05 13:16:06 +01:00
Marvin Pohl
cb78ee47d6 Added unit tests for multiple commits pushes. 2018-11-05 13:15:36 +01:00
Marvin Pohl
4e0ce1f374 Added option to exclude other commits than the push commit. 2018-11-05 13:05:57 +01:00
Marvin Pohl
df5fa87d2d Set context properly for reporter 2018-09-27 20:57:39 +02:00
Marvin Pohl
d7f34fc6dd Ignoring sourcestamps with no revision in the reporter. 2018-09-27 20:50:21 +02:00
Marvin Pohl
7322dd3853 Fixed incorrect authorization header for reporter 2018-09-27 20:28:58 +02:00
Marvin Pohl
4661da0060 Added owner and repo name detection in ssh url 2018-09-27 20:12:09 +02:00
Marvin Pohl
4f66ddc5c3 Commit using uppercase Gitea for source step 2018-09-27 19:36:13 +02:00
Marvin Pohl
27a2d278b8 Added buildbot entry points 2018-09-27 16:57:11 +02:00
Marvin Pohl
c5fba6c44a Fixed unittest for Gitea source step 2018-09-27 16:53:16 +02:00
Marvin Pohl
d39640ea10 Added Gitea step source 2018-09-27 16:32:11 +02: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