We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6295120 commit 7cbcdf9Copy full SHA for 7cbcdf9
.github/workflows/module-monitor.yml
@@ -128,8 +128,8 @@ jobs:
128
with open('zephyr/module.yml', 'r') as f:
129
content = f.read()
130
# Look for PR metadata comment (more flexible pattern)
131
- pr_match = re.search(r'# Generated from PR #(\d+).*?commit: ([a-f0-9]+)', content, re.DOTALL)
132
- if pr_match and pr_match.group(2) == commit_hash:
+ pr_match = re.search(r'# Generated from PR #(\d+) \(commit: ([a-f0-9]+)\)', content)
+ if pr_match and (pr_match.group(2) == commit_hash or pr_match.group(2).startswith(commit_hash) or commit_hash.startswith(pr_match.group(2))):
133
pr_number = pr_match.group(1)
134
return {
135
'display': f"[{commit_hash[:7]}](PR #{pr_number})",
0 commit comments