From ab463b537fad53ad5a867abc780f02a5baf2cf31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Fri, 1 Nov 2024 08:39:35 +0100 Subject: [PATCH] Fix: Don't steal pull request --- github_app_geo_project/module/standard/changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_app_geo_project/module/standard/changelog.py b/github_app_geo_project/module/standard/changelog.py index 393ec11f77..f957b4ad83 100644 --- a/github_app_geo_project/module/standard/changelog.py +++ b/github_app_geo_project/module/standard/changelog.py @@ -386,7 +386,7 @@ def generate_changelog( has_pr = False for pull_request in commit.get_pulls(): has_pr = True - if pull_request.milestone is None: + if pull_request.milestone is None or pull_request.milestone.number == milestone.number: authors = {Author(pull_request.user.login, pull_request.user.html_url)} for commit_ in pull_request.get_commits(): if commit_.author is not None: