You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by rz...@apache.org on 2026/03/27 18:16:12 UTC
(storm) branch 8305 created (now cf2b92d45)
This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a change to branch 8305
in repository https://gitbox.apache.org/repos/asf/storm.git
at cf2b92d45 Fix release_notes.py to avoid duplicate issues when multiple labels exist
This branch includes the following new commits:
new cf2b92d45 Fix release_notes.py to avoid duplicate issues when multiple labels exist
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(storm) 01/01: Fix release_notes.py to avoid duplicate issues when multiple labels exist
Posted by rz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch 8305
in repository https://gitbox.apache.org/repos/asf/storm.git
commit cf2b92d45281ec27e29fd98410e360764b87cc59
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Fri Mar 27 19:15:52 2026 +0100
Fix release_notes.py to avoid duplicate issues when multiple labels exist
Assign each issue to only its first label instead of listing it under
every label, preventing duplicate entries in the generated release notes.
---
dev-tools/release_notes.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dev-tools/release_notes.py b/dev-tools/release_notes.py
index 3862ac51c..2e8f8392c 100755
--- a/dev-tools/release_notes.py
+++ b/dev-tools/release_notes.py
@@ -109,16 +109,16 @@ if __name__ == "__main__":
print(f"Unresolved issue: {issue['number']:5d} {issue['state']:10s} {issue_link(issue)}", file=sys.stderr)
sys.exit(1)
- # Group issues by labels
+ # Group issues by labels, assigning each issue to only its first label
+ # to avoid duplicates when an issue has multiple labels
issues_by_label = {}
unlabeled_issues = []
for issue in issues:
- if issue["labels"]: # If the issue has labels
- for label in issue["labels"]:
- label_name = label["name"]
- issues_by_label.setdefault(label_name, []).append(issue)
+ if issue["labels"]:
+ primary_label = issue["labels"][0]["name"]
+ issues_by_label.setdefault(primary_label, []).append(issue)
else:
- unlabeled_issues.append(issue) # Add to the unlabeled list if no labels exist
+ unlabeled_issues.append(issue)
# Add unlabeled issues under a special "No Label" category
if unlabeled_issues: