From 3718e6e39b64b5ac966e27a63e810e5dafefc817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Proust?= Date: Wed, 11 Oct 2023 08:20:42 +0200 Subject: [PATCH] Allow MR refs in TODOs and FIXMEs --- src/lib/analysis.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/analysis.ml b/src/lib/analysis.ml index 15519e1..f8e1ca9 100644 --- a/src/lib/analysis.ml +++ b/src/lib/analysis.ml @@ -146,7 +146,7 @@ let todotag = Re.(Posix.compile_pat {|(TODO|FIXME)|}) let todostandard = Re.( Posix.compile_pat - {|(\(\*|\.\.|#) ?(TODO|FIXME):? ((https://gitlab.com/.*/-/issues/[0-9]*)|([a-zA-Z-/_]*#[0-9]*))|}) + {|(\(\*|\.\.|#) ?(TODO|FIXME):? ((https://gitlab.com/.*/-/(issues|merge_requests)/[0-9]*)|([a-zA-Z-/_]*[#|!][0-9]*))|}) (** [todo_tags_of_touched_files touched_files] is a warning list, \[>`Touched_with_ng_tod_tags of ng_files\] list. [ng_files] is a -- GitLab