Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/release-notes-aggregator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,24 +209,32 @@ jobs:

for c in commits:
sha = c["sha"]
first_line = c["commit"]["message"].split("\n")[0]
message = c["commit"]["message"]
first_line = message.split("\n")[0]

# Skip dep-bump commits in the main repo
if repo == REPO and re.search(r"\bbump\b", first_line, re.I):
continue

# Skip commits opting out via marker (works for direct commits too)
if re.search(r"\[skip[- ]release[- ]notes\]", message, re.I):
continue

pr_list = api_paged(f"/repos/{repo}/commits/{sha}/pulls")
if pr_list:
for pr in pr_list:
n = pr["number"]
if n in seen or not pr.get("merged_at"): continue
labels = [l["name"] for l in pr.get("labels", [])]
if any(lbl.lower() == "ignore for release" for lbl in labels):
continue
seen.add(n)
results.append({
"number": n,
"title": pr["title"],
"url": pr["html_url"],
"author": pr["user"]["login"],
"labels": [l["name"] for l in pr.get("labels", [])],
"labels": labels,
"repo": repo,
"sha": sha[:12],
})
Expand Down
Loading