| Message ID | 20251031095057.1181439-1-barnabas.pocze@ideasonboard.com |
|---|---|
| State | Accepted |
| Headers | show |
| Series |
|
| Related | show |
Hi Barnabás, Thank you for the patch. Quoting Barnabás Pőcze (2025-10-31 10:50:57) > `Closes: <url>` is recognized by gitlab[0] and closes the referenced issue > automatically when a commit is made to the project's default branch. Now > that issues are hosted on gitlab, it will be the preferred way to reference > the fixed issue from a commit, so replace the previously used `Bug` with it > in the checkstlye.py script. > > [0]: https://docs.gitlab.com/user/project/issues/managing_issues/#default-closing-pattern > > Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> > Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> > --- > changes in v2: > * remove `Bug` > > v1: https://patchwork.libcamera.org/patch/24888/ > --- > Still one potential question remains: should the url be restricted? > I think it makes sense to allow arbitrary urls to support different > bug trackers (e.g. rpi github). After reading through the previous discussions, I'd vote for the non-strict url check as I (personally) value the ability to reference a bug in some other bug tracking system higher than the guard against typos. Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com> Regards, Stefan > --- > utils/checkstyle.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/utils/checkstyle.py b/utils/checkstyle.py > index f6229bbd86..fa1355c173 100755 > --- a/utils/checkstyle.py > +++ b/utils/checkstyle.py > @@ -541,7 +541,7 @@ class TrailersChecker(CommitChecker): > > known_trailers = { > 'Acked-by': email_regex, > - 'Bug': link_regex, > + 'Closes': link_regex, > 'Co-developed-by': email_regex, > 'Fixes': commit_regex, > 'Link': link_regex, > -- > 2.51.1
diff --git a/utils/checkstyle.py b/utils/checkstyle.py index f6229bbd86..fa1355c173 100755 --- a/utils/checkstyle.py +++ b/utils/checkstyle.py @@ -541,7 +541,7 @@ class TrailersChecker(CommitChecker): known_trailers = { 'Acked-by': email_regex, - 'Bug': link_regex, + 'Closes': link_regex, 'Co-developed-by': email_regex, 'Fixes': commit_regex, 'Link': link_regex,