mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 22:10:11 +01:00
ci: post gantt: ignore pipeline_summary message
The gantt chart script currently expect the pipeline url to be the last line of marge-bot's comment on a failed pipeline. The pipeline summary hook now adds additional information that was preventing the gantt chart script from finding the pipeline url. Change the regex for finding the pipeline url to account for pipeline summary comments. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32637>
This commit is contained in:
parent
4ae2105fcb
commit
45ef1221a3
1 changed files with 3 additions and 1 deletions
|
|
@ -138,7 +138,9 @@ def main(
|
|||
continue
|
||||
last_event_at = event.created_at
|
||||
|
||||
match = re.search(r"https://[^ ]+", event.note["body"])
|
||||
escaped_gitlab_url = re.escape(GITLAB_URL)
|
||||
match = re.search(rf"{escaped_gitlab_url}/[^\s<]+", event.note["body"])
|
||||
|
||||
if match:
|
||||
try:
|
||||
log.info(f"Found message: {event.note['body']}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue