From fadd1eab07c9dfe317dfc31efa8ea254a78c3eeb Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Wed, 4 May 2022 15:31:11 +0200 Subject: improve typing, disable non-critical logging for aiohttp, […] - correctly popped values from kwargs to pass over to gidgetlab - add merge hook registration method to simplify future additions - add new setups values to config - add print option to config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- labbot/addons/merge-label.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'labbot/addons/merge-label.py') diff --git a/labbot/addons/merge-label.py b/labbot/addons/merge-label.py index 4798d4a..cf7bf82 100644 --- a/labbot/addons/merge-label.py +++ b/labbot/addons/merge-label.py @@ -77,6 +77,5 @@ async def merge_label_hook(event, gl, *args, **kwargs): # unknown state pass -def setup(bot): - bot.register(merge_label_hook, "Merge Request Hook") - pass \ No newline at end of file +def setup(bot) -> None: + bot.register_merge_hook(merge_label_hook) -- cgit v1.2.3