From 4804beb2011efae151d698b44f817a3b9d6da211 Mon Sep 17 00:00:00 2001 From: Heitor Polidoro Date: Tue, 30 Apr 2024 18:21:29 -0300 Subject: [PATCH] [release:0.5.3] --- .github/workflows/publish.yml | 2 +- src/managers/pull_request_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0bb4c3b..1899151 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Merge master into production run: | diff --git a/src/managers/pull_request_manager.py b/src/managers/pull_request_manager.py index 0591b69..769e494 100644 --- a/src/managers/pull_request_manager.py +++ b/src/managers/pull_request_manager.py @@ -37,11 +37,11 @@ def manage(event: CheckSuiteRequestedEvent) -> NoReturn: event.check_suite.head_sha, "Initializing...", ) + summary = [] if head_branch != repository.default_branch: pull_request = get_or_create_pull_request(repository, head_branch, check_run) auto_merge_enabled = enable_auto_merge(pull_request, check_run) - summary = [] if pull_request.user.login == Config.BOT_NAME: summary.append(f"Pull Request #{pull_request.number} created") else: