Skip to content

Commit 6d4f279

Browse files
committed
gitlab: handled GitLab's 'work_items', which used to be called 'issues'
GitLab renamed 'issues' to 'work_items': https://gitlab.com/groups/gitlab-org/-/work_items/6033 Signed-off-by: Thorsten Leemhuis <linux@leemhuis.info>
1 parent a9ec99e commit 6d4f279

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

regzbot/_repsources/_gitlab.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ def search(self, pattern, since):
255255

256256
def supports_url(self, url_lowered, url_parsed):
257257
if url_lowered.startswith(self.serverurl):
258-
id = url_lowered.removeprefix('%s/-/issues/' % self.serverurl)
258+
if 'work_items' in url_lowered:
259+
id = url_lowered.removeprefix('%s/-/work_items/' % self.serverurl)
260+
else:
261+
id = url_lowered.removeprefix('%s/-/issues/' % self.serverurl)
259262
return id.strip('/')
260263

261264
def updated_threads(self, since):

0 commit comments

Comments
 (0)