Pull requests check status update issue

We are using /statuses/gitHash api to update the check status on a pull request.
But we see an issue with this approach in a particular scenario.
When we create two pull request against two target branches for a given source branch ,/statuses/gitHash api updating the checks in both the pull requests, which is not expected. We want to update the checks for only one pull request.

The API sure doesn’t seem to have flexibility for that.

Might I suggest naming your status based on your branch? It’s a bit painful, but it should get you out of your weeds.

Since pipelines are automated, it is not possible to maintain individual status for each branch.