PR is indicated as failed but accepted at parent repository #156135
-
Select Topic AreaQuestion BodyHi Steps taken to get more info..
Not sure how to resolve this. Some guidance would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
It sounds like your fork is simply out of sync with the parent repository’s default branch, which is why GitHub is still showing a mismatch (“2 commits ahead, 1 behind,” or a “failed” status) even though your pull request was accepted and merged upstream. You can resolve this by updating (or “syncing”) your local repository and your fork on GitHub so they match the parent repository’s latest state. Here’s how you might do that:
Check which remotes you already have by running git remote -v.
or use git rebase upstream/main if you prefer a linear history. This ensures your local environment is fully up to date with the parent project’s main branch.
This way, your forked repository’s default branch reflects the latest commits from upstream. GitHub should then no longer show it as “behind” or “failed.”
Cleaning up old branches can prevent confusion later.
In most cases, GitHub doesn’t prevent you from opening new pull requests just because an old one has a “failed” badge in your fork; usually, it’s just a UI indication that your fork is behind. The key is to get your local and fork branches up to date with upstream so GitHub recognizes that everything has been merged properly. Once that’s done, you should be all set to open a fresh pull request if you still have changes you want to contribute. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you @justsarx , I have applied your posting and it seems everything is normal. I now see only 1 commit ahead of upstream, which is what I am expecting as there is a PR in draft mode outstanding. I checked on this draft PR and all checks pass. So this time it seems I have my titles rights. So I have just requested a review , ie changed draft PR to full PR. Appreciate your time. |
Beta Was this translation helpful? Give feedback.



It sounds like your fork is simply out of sync with the parent repository’s default branch, which is why GitHub is still showing a mismatch (“2 commits ahead, 1 behind,” or a “failed” status) even though your pull request was accepted and merged upstream. You can resolve this by updating (or “syncing”) your local repository and your fork on GitHub so they match the parent repository’s latest state. Here’s how you might do that:
If you haven’t already, add the parent repository (the one where your PR was merged) to your local Git settings. For instance, if the parent repo is at https://github.com/example-org/example-repo.git, you can do:
g…