diff --git a/release/release_notes/bug_fixes_per_major_release.py b/release/release_notes/bug_fixes_per_major_release.py index 6ecee02445a..4c618fe2d22 100644 --- a/release/release_notes/bug_fixes_per_major_release.py +++ b/release/release_notes/bug_fixes_per_major_release.py @@ -312,8 +312,10 @@ class CommitInfo: command = ['git', 'show', '-s', '--format=%B', self.hash] command_output = subprocess.run(command, capture_output=True).stdout.decode('utf-8') - # Find every instance of #NUMBER. These are the report that the commit claims to fix. - match = re.findall(r'#(\d+)', command_output) + # Find every instance of SPACE#NUMBER. These are the report that the commit claims to fix. + # We are looking for the SPACE part because otherwise commits that fix issues in other repos, + # E.g. Fix blender/blender-maunal#NUMBER, will be picked out for processing. + match = re.findall(r'\s#+(\d+)', command_output) if match: self.fixed_reports = match