I fast-forwarded a couple of development branches to be up-to-date with master, and pushed them to a private repository. The private repo is owned by the client's github account and I am a collaborator.
Now, github shows me two links under "Your recently pushed branches:", each containing "Pull request" and "Compare". When I click on "Pull request" out of curiosity, it shows me: Oops! master is already up-to-date with feature Try a different branch?
. It's the same story for any other branch because they are all fast-forward updated. So what is the point of these links?
To find it go to Settings > Branches > Branch Protection Rules and click 'Add Rule'. Then, enter the name of the branch you want to protect and click the checkbox to require pull request reviews before merging. By default, this only stops people who are not moderators.
Pull requests let you tell others about changes you've pushed to a branch in a repository on GitHub. Once a pull request is opened, you can discuss and review the potential changes with collaborators and add follow-up commits before your changes are merged into the base branch.
The rule of thumb that we use (which is here some where on Stack Overflow) is "branches are for work, tags are for history". Whenever a branch is merged (most likely into master) we tag the merge point using the name of the branch with the prefix "branch" (e.g. branch-topic). Then delete the branch.
In my situation this message disappeared themself after about 2 hours.
Those links let you quickly compare or open a pull request from one your branch. They're displayed when a recently pushed branch is ahead of the remote HEAD. Most of the time, the remote HEAD points to master (this can be changed by tweaking the "default branch" of the repository in the Admin section).
As it looks like your remote HEAD points to master, those links should not be displayed indeed. The good move would be to send a mail [email protected]..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With