Branch protection based on status waiting indefinitively

Hello everyone,

I am currently facing an issue with a branch protection rule I’ve placed on my main branch

This rule is based on a Github status I create programmatically
When the PR is created, everything is fine, the status is set and in a success state (little green tick)

But the moment I click on the button to “update my PR” with a merge commit, the status becomes in the “Pending” Expected — Waiting for status to be reported and stays like this forever.

Since before the update of the branch everything is OK, I don’t understand why the status switch to Pending.

When you merge updates into your branch the head commit of the branch changes. A check refers to a specific commit, so your check will need to run again for the new head commit.

How to re-run the check depends on exactly how you do that.