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
2 changes: 2 additions & 0 deletions webhook_server_container/libs/github_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,7 @@ def _prepare_cloned_repo_dir(
# Checkout to requested branch/tag
if checkout:
run_command(f"{git_cmd} checkout {checkout}", log_prefix=self.log_prefix)
run_command(f"{git_cmd} rebase {self.pull_request_branch}", log_prefix=self.log_prefix)

# Checkout the branch if pull request is merged or for release
else:
Expand All @@ -1662,6 +1663,7 @@ def _prepare_cloned_repo_dir(
run_command(
command=f"{git_cmd} checkout origin/pr/{pull_request.number}", log_prefix=self.log_prefix
)
run_command(f"{git_cmd} rebase {self.pull_request_branch}", log_prefix=self.log_prefix)

yield

Expand Down