Now assume that the maintainers have merged one of the other pull requests (not yours) that fix your Round2 issue.
Which of the following statements best describes this situation.
GitHub will indicate that your PR can be merged automatically because it does not contain any conflicts with the upstream main
branch.
Your PR will have changed the same lines in README.md
as the merged PR. The changes from the merged PR are now in the upstream main
branch. Thus, your feature branch will now have conflicts with the upstream main
branch and will not be able to be merged automatically.
GitHub will indicate that your PR cannot be merged automatically because it contains a conflict with the upstream main
branch.
Correct. A PR for the Round2 issue you were working on has been merged into the upstream main
. Your PR contained changes that changed the same lines of the README.md
file as the merged PR. Thus, your PR will have conflicts with the upstream main
branch and will not be able to be merged automatically.
If your PR for your Round2 issue was submitted before the other one was merged, GitHub will indicate that your PR can be merged automatically.
The order in which the PR’s are created does not matter. GitHub reevaluates whether there is a conflict each time you visit the PR page. Thus, because the other PR was merged, and it changed the same lines in README.md
as your PR, your PR will now contain a conflict with the upstream main
branch.
GitHub will indicate that your PR cannot be merged automatically because it contain conflicts with all of the other PRs that have been submitted for your Round2 issue.
Your PR will in some sense contain conflicts with all of the other PRs for the same Round2 issue. However, only the conflict with the upstream main
branch matter here. That conflict was created when the other PR for your Round2 issue was merged.