Reputation: 12574
I am actually contributing to one of the Material Design code repository. There are a certain set of features that is planned for next release.
I have currently implemented one feature and created a PR(say PR1) and 3 commits of that feature are pushed. They are visible under that PR1. The PR1 is still in OPEN
state.
I have already implemented certain other feature with 8 commits. But, when I click on the button "Create New PR", all I see is my PR1.
Here is what happens when I click on "Create New PR"-
Problem is-
How do I do it? This has been a long problem. And now I have to ask.
Why new PR? That's because, it becomes easier to review and each feature with 1 PR would be cleaner approach.
I have already been through - Question1, Question2, Question3 and few more...
With not much help. It's just that I am spamming the repo with commits & then resetting head forcefully to delete it :(
Upvotes: 5
Views: 2321
Reputation: 136918
GitHub's pull requests can be updated by pushing new commits the existing branch. This is a deliberate design decision allowing PRs to be incrementally improved.
The solution is to push the changes you wish to be considered separately to a different branch and to open a new PR from that branch.
Upvotes: 4