From d8068d6c85c5e8e7f98ff6990c20897675f8b086 Mon Sep 17 00:00:00 2001 From: Gyorgy Sarvari Date: Sun, 14 Sep 2025 19:47:09 +0200 Subject: patchtest: don't match BitBake python expansion as GitHub username BitBake's Python expansion syntax looks very similar to GitHub usernames: ${@foo} - which triggers a false alarm from patchtest. This patch adds a negative lookahead to the GitHub username matching pattern: only match in case the pattern doesn't start with "${" characters. Also add a test for it. (From OE-Core rev: 6aa8eeadbb626bb5e5459ac2caf73b8fb0f2b936) Signed-off-by: Gyorgy Sarvari Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/lib/patchtest/patchtest_patterns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/lib/patchtest/patchtest_patterns.py') diff --git a/meta/lib/patchtest/patchtest_patterns.py b/meta/lib/patchtest/patchtest_patterns.py index 50637cf499..655ecfd049 100644 --- a/meta/lib/patchtest/patchtest_patterns.py +++ b/meta/lib/patchtest/patchtest_patterns.py @@ -59,7 +59,7 @@ mbox_bugzilla_validation = pyparsing.Regex('\[(\s?YOCTO\s?#\s?(\d+)\s?,?)+\]') mbox_revert_shortlog_regex = pyparsing.Regex('Revert\s+".*"') mbox_shortlog_maxlength = 90 # based on https://stackoverflow.com/questions/30281026/regex-parsing-github-usernames-javascript -mbox_github_username = pyparsing.Regex('\B@([a-z0-9](?:-(?=[a-z0-9])|[a-z0-9]){0,38}(?<=[a-z0-9]))') +mbox_github_username = pyparsing.Regex('\B(?