Skip to content

Commit

Permalink
Update release notes generator
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Jun 17, 2024
1 parent aa7ba56 commit 36a277c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/generate_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def add_pull_request(self, pull_request):
"""Add pull request information to the release notes dict."""
author = pull_request.user.login if pull_request.user else None
if author in IGNORED_CONTRIBUTORS:
print((f"Skipping #{pull_request.number} {pull_request.title}" f" by {author}"))
print(f"Skipping #{pull_request.number} {pull_request.title} by {author}")
return None

# Skip failed release attempt PRs, version upgrades.
Expand Down Expand Up @@ -184,8 +184,8 @@ def get_new_pull_requests(self):
self.previous_commits.add(commit.sha)
break

# Skip closed unmerged PRs.
if not pull_request.merged:
# Skip unrelated PRs (unmerged, wrong branch).
if not pull_request.merged or pull_request.base.ref != BRANCH_NAME:
continue

if pull_request.number in excluded_pr_numbers:
Expand Down

0 comments on commit 36a277c

Please sign in to comment.