[Webkit-unassigned] [Bug 278426] [ews-build] Bugzillas enclosed in <> in commit messages do not get closed upon landing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 22 00:45:14 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=278426

--- Comment #4 from Karl Dubost <karlcow at apple.com> ---
This is used in 

https://github.com/WebKit/WebKit/blob/6febcde4e258e8dd77930b0a793d16b6836ec163/Tools/Scripts/libraries/webkitbugspy/webkitbugspy/tracker.py#L101-L103


```
        if data.get('type') in ('bugzilla', 'github'):
            unpacked['url'] = data.get('url')
            unpacked['res'] = [re.compile(r) for r in data.get('res', [])]
```


which then goes through a list of regex.
https://github.com/WebKit/WebKit/blob/6febcde4e258e8dd77930b0a793d16b6836ec163/metadata/trackers.json#L5-L10


```
        "type" : "bugzilla",
        "url" : "https://bugs.webkit.org",
        "res" : [
            "\\Awebkit.org/b/(?P<id>\\d+)\\Z",
            "\\Ahttps?://webkit.org/b/(?P<id>\\d+)\\Z",
            "\\A<webkit.org/b/(?P<id>\\d+)>\\Z",
            "\\A<https?://webkit.org/b/(?P<id>\\d+)>\\Z"
        ],
```



The proposal in Comment #3 reduces this to one regex.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240822/9e0f7ec4/attachment.htm>


More information about the webkit-unassigned mailing list