GH-900 · Question #3
Pull requests can only be created between two branches that are:
The correct answer is D. Different. A pull request (PR) is a mechanism to propose merging changes from one branch into another. By definition, a PR requires two distinct branches - a source branch (containing changes) and a target branch (where changes will be merged). Creating a PR from a branch into itself is…
Question
Pull requests can only be created between two branches that are:
Options
- AAuthored by the same user.
- BAuthored by different users.
- CThe same.
- DDifferent.
How the community answered
(46 responses)- B2% (1)
- C2% (1)
- D96% (44)
Explanation
A pull request (PR) is a mechanism to propose merging changes from one branch into another. By definition, a PR requires two distinct branches - a source branch (containing changes) and a target branch (where changes will be merged). Creating a PR from a branch into itself is not possible because there would be no diff to review. The identity or authorship of the contributors is irrelevant to whether a PR can be created.
Topics
Community Discussion
No community discussion yet for this question.