Problem
When a target branch has no branch protection rules configured, the can-be-merged check fails with the unhelpful message:
Failed to check if can be merged, check logs
This is misleading — the PR may be perfectly mergeable, but the check fails because it cannot find protection rules to evaluate against.
Expected Behavior
- If no branch protection rules exist for the target branch,
can-be-merged should pass (not fail)
- The log message should be clearer, e.g.: "No branch protection rules found for branch
v4.19, skipping protection check"
Current Behavior
The check fails with a generic error message that gives no indication the issue is missing protection rules rather than an actual merge conflict or problem.
Context
Observed on PR #2720 targeting v4.19 — the can-be-merged check fails despite the PR having no merge conflicts and all other checks passing.
Problem
When a target branch has no branch protection rules configured, the
can-be-mergedcheck fails with the unhelpful message:This is misleading — the PR may be perfectly mergeable, but the check fails because it cannot find protection rules to evaluate against.
Expected Behavior
can-be-mergedshould pass (not fail)v4.19, skipping protection check"Current Behavior
The check fails with a generic error message that gives no indication the issue is missing protection rules rather than an actual merge conflict or problem.
Context
Observed on PR #2720 targeting
v4.19— thecan-be-mergedcheck fails despite the PR having no merge conflicts and all other checks passing.