This is an automated email from the ASF dual-hosted git repository.

reiabreu pushed a commit to branch improve-release-notes-script-v2
in repository https://gitbox.apache.org/repos/asf/storm.git

commit 6edc9929d3fdd2cc472e7fc7af137ef46a5401d5
Author: Rui Abreu <[email protected]>
AuthorDate: Sat Jul 18 21:38:05 2026 +0100

    release_notes.py: skip issues labeled github_actions or skip-changelog
    
    Issues with these labels (e.g. Dependabot bumps, automated license updates)
    are noise in the changelog. The script now filters them out and logs the
    skipped items to stderr so the omission is visible.
    
    Also label automated license-update PRs with skip-changelog in the workflow
    so they are excluded automatically in future runs.
    
    Co-Authored-By: Claude Sonnet 5 <[email protected]>
---
 .github/workflows/update-license-files.yml |  4 +++-
 dev-tools/release_notes.py                 | 14 ++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/update-license-files.yml 
b/.github/workflows/update-license-files.yml
index 5d48bdd33..eb0fbf13f 100644
--- a/.github/workflows/update-license-files.yml
+++ b/.github/workflows/update-license-files.yml
@@ -79,4 +79,6 @@ jobs:
             - `LICENSE-binary` (binary dependencies section)
 
             Please review the changes and merge if correct.
-          labels: dependencies
+          labels: |
+            dependencies
+            skip-changelog
diff --git a/dev-tools/release_notes.py b/dev-tools/release_notes.py
index 2e8f8392c..439d56641 100755
--- a/dev-tools/release_notes.py
+++ b/dev-tools/release_notes.py
@@ -109,6 +109,20 @@ if __name__ == "__main__":
             print(f"Unresolved issue: {issue['number']:5d} 
{issue['state']:10s} {issue_link(issue)}", file=sys.stderr)
         sys.exit(1)
 
+    IGNORED_LABELS = {"github_actions", "skip-changelog"}
+
+    ignored = [
+        issue for issue in issues
+        if any(l["name"] in IGNORED_LABELS for l in issue["labels"])
+    ]
+    if ignored:
+        print(f"Ignoring {len(ignored)} issue(s) with excluded labels ({', 
'.join(IGNORED_LABELS)}):", file=sys.stderr)
+        for issue in ignored:
+            matched = [l["name"] for l in issue["labels"] if l["name"] in 
IGNORED_LABELS]
+            print(f"  #{issue['number']} [{', '.join(matched)}] - 
{issue['title']}", file=sys.stderr)
+
+    issues = [issue for issue in issues if issue not in ignored]
+
     # Group issues by labels, assigning each issue to only its first label
     # to avoid duplicates when an issue has multiple labels
     issues_by_label = {}

Reply via email to