Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github single pull request for changes to multiple repositories?

Tags:

Is it possible (or even smart) to pack changes for multiple repositories into a single pull request on Github? Or would it be better to make two separate pull requests?

In my specific case, I am adding a new feature to Paris, the simple Active Record implementation built on top of Idiorm. But the change in Paris also requires a change in Idiorm. Idiorm and Paris are from the same author but live in different repositories.

Can I (and should I) make a single pull request? Or do I need to make two, and then comment in the second pull request that it won't work unless the first changeset has been merged on the other repository?

like image 288
Sander Marechal Avatar asked Mar 03 '11 06:03

Sander Marechal


People also ask

Can I raise 2 Pull requests from same branch?

There can be only one open PR from a given branch. However, you can create a new branch from the tip (branch is just a pointer to a commit) and work from there.


1 Answers

From what I can see of GitHub pull request, this operation is linked to a single GitHub repository:

By default, pull requests are assumed to be based on the parent-most repository’s integration branch.
In a great majority of cases, the defaults will be right; however, if any of this information is incorrect, press the Change Commits button.
The commit range selector will expand, allowing the base repository, base branch, and head branch to be customized.

enter image description here

Only one base repo can be entered.

So in your case, a note mentioning the dependency seems the relevant option here.

like image 140
VonC Avatar answered Oct 29 '22 19:10

VonC