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.
This commit is contained in:
mrstanwell 2021-01-05 13:53:26 -06:00
parent b17a60beff
commit cd82223a81
2 changed files with 5 additions and 2 deletions

View File

@ -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<owner>[\w_\-\.]+)/(?P<repo_name>[\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,

View File

@ -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": [