Sometimes recent commits that exist on the remote repository are not visible in the website, in the 'Commits' page of the repo.
This impacts users' ability to open Pull requests: if a user wants to open a PR for an affected branch, they won't be able to, as no commits will show for this branch.
There are no steps to reproduce this, this issue rarely occurs in some repos
Users have reported that pushing another commit or a new branch to the repo, solves the issue.
You can also contact Bitbucket Cloud Support (https://support.atlassian.com/contact/#/) to fix the issue for your repository.
We have found the race condition that was responsible for this issue. While we couldn't fully eliminate it in the short-term we were able to significantly reduce its probability. Additionally, we have implemented it in such a way that we can easily fine-tune the parameters of the fix based on the customer impact. Please let us know here if you continue to be impacted by this issue and in the meantime please refer to the Workaround section above to unblock your workflow.
For a long-term solution we have recently kicked off a project to fix the issue fully, but this is a larger project and will take us some time to complete.