diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-05-04 14:25:18 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-05-04 14:25:18 +0200 |
commit | 27b8241380d5f02fdcf00a832c281767ef258d9f (patch) | |
tree | 7be768b5fa63d928bd886412c0087e97a27b7e44 /labbot/addons/merge-label.py | |
parent | f73b19f1ab7c32283194907418d6c2d83ed65d06 (diff) | |
download | lab-bot-27b8241380d5f02fdcf00a832c281767ef258d9f.tar.gz lab-bot-27b8241380d5f02fdcf00a832c281767ef258d9f.zip |
add approve-merge addon, give addons descriptions
Diffstat (limited to 'labbot/addons/merge-label.py')
-rw-r--r-- | labbot/addons/merge-label.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/labbot/addons/merge-label.py b/labbot/addons/merge-label.py index 1b2a768..9379b59 100644 --- a/labbot/addons/merge-label.py +++ b/labbot/addons/merge-label.py @@ -1,3 +1,8 @@ +""" +automatically labels issues referenced in merge requests with +specified labels. +""" + import os import re @@ -13,7 +18,7 @@ state_label = { "opened": "C-R Bestanden", "merged": "Testing", } -async def merge_request_hook(event, gl, *args, **kwargs): +async def merge_label_hook(event, gl, *args, **kwargs): state = event.object_attributes["state"] related_issues = [] @@ -69,5 +74,5 @@ async def merge_request_hook(event, gl, *args, **kwargs): pass def setup(bot): - bot.register(merge_request_hook, "Merge Request Hook") + bot.register(merge_label_hook, "Merge Request Hook") pass
\ No newline at end of file |