mirror of
https://github.com/blender/blender.git
synced 2026-01-14 03:19:40 +00:00
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:
@ -326,7 +326,8 @@ class CommitInfo:
|
||||
# E.g. Fix `blender/blender-manual#NUMBER`, will be picked out for processing.
|
||||
match = re.findall(r'\s#+(\d+)', command_output)
|
||||
if match:
|
||||
return match
|
||||
# Remove duplicates reports.
|
||||
return list(dict.fromkeys(match))
|
||||
return []
|
||||
|
||||
def get_backports(self, dict_of_backports: dict[str, list[str]]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user