Release note tools: Remove duplicate reports extracted from commit

Sometimes a commit message will mention the the report that was fixed
multiple times. This shows up as multiple "separate" reports in the bug
fixes per release script, which can then have some knock on effects
like:
- Wasting time making API requests for information about the exact
  same report.
- Having some information repeated in specific situations.

This commit fixes this issue by removing the duplicate reports.
This will have no functional change on the output of the bug fixes
per release script, but will fix a bug with the data reported in
triager-bot/needs-triager-action\#2.

Pull Request: https://projects.blender.org/blender/blender/pulls/152625
This commit is contained in:
Alaska
2026-01-12 08:12:35 +01:00
committed by Pratik Borhade
parent 56825cda22
commit 65651d6007

View File

@ -326,7 +326,8 @@ class CommitInfo:
# E.g. Fix `blender/blender-manual#NUMBER`, will be picked out for processing. # E.g. Fix `blender/blender-manual#NUMBER`, will be picked out for processing.
match = re.findall(r'\s#+(\d+)', command_output) match = re.findall(r'\s#+(\d+)', command_output)
if match: if match:
return match # Remove duplicates reports.
return list(dict.fromkeys(match))
return [] return []
def get_backports(self, dict_of_backports: dict[str, list[str]]) -> None: def get_backports(self, dict_of_backports: dict[str, list[str]]) -> None: