Don't check merge base branch
All checks were successful
test / test (pull_request) Successful in 51s
build / build (pull_request) Successful in 2m9s

This commit is contained in:
2024-10-07 16:32:49 +02:00
parent 2245698405
commit ec8e3e491e
3 changed files with 21 additions and 1 deletions

View File

@@ -58,6 +58,13 @@ def pr_merge_status(
results = {}
# Check if base branch is in our list, if it is
# no need to call commit_in_branch
merge_base_branch = pr_data.get("base", {}).get("ref")
if merge_base_branch in branches:
results[merge_base_branch] = True
branches.remove(merge_base_branch)
for branch in branches:
in_branch = commit_in_branch(commit_sha, branch)
results[branch] = in_branch