From cd82223a816cd750b19bc93cb94a65ec35de0089 Mon Sep 17 00:00:00 2001 From: mrstanwell Date: Tue, 5 Jan 2021 13:53:26 -0600 Subject: [PATCH] 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. --- buildbot_gitea/reporter.py | 5 ++++- setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/buildbot_gitea/reporter.py b/buildbot_gitea/reporter.py index f5b988a..5e32577 100644 --- a/buildbot_gitea/reporter.py +++ b/buildbot_gitea/reporter.py @@ -23,9 +23,12 @@ import re class GiteaStatusPush(http.HttpStatusPushBase): name = "GiteaStatusPush" - neededDetails = dict(wantProperties=True) ssh_url_match = re.compile(r"(ssh://)?[\w+\-\_]+@[\w\.\-\_]+:?(\d*/)?(?P[\w_\-\.]+)/(?P[\w_\-\.]+?)(\.git)?$") + def checkConfig(self, baseURL, token, startDescription=None, endDescription=None, + context=None, verbose=False, wantProperties=True, **kwargs): + super().checkConfig(wantProperties=wantProperties, **kwargs) + @defer.inlineCallbacks def reconfigService(self, baseURL, token, startDescription=None, endDescription=None, diff --git a/setup.py b/setup.py index dab68dc..6a43c7a 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup(name='buildbot-gitea', long_description_content_type="text/markdown", packages=['buildbot_gitea'], requires=[ - "buildbot (>=2.0.0)" + "buildbot (>=2.9.0)" ], entry_points={ "buildbot.webhooks": [