title: Interdependent pull requests author: Mauro Lepore date: '2019-11-12' slug: pr-interdependent categories: [] tags: - pr description: ''
After the contributor submitted a first pull request (pr1
), and
before the maintainer merges it into the source repository, the contributor
starts a second pull request (pr2
) that depends on pr1
.
The maintainer edits pr1
and accepts it (squash-merges it into the upstream/master). But pr2
now is a mess and the contributor must fix it before it can be merged.
pr_init("pr1")
f()
pr_push()
pr_init("pr2")
g()
pr_push()
pr_fetch()
(Maintainer)pr1
(Maintainer)pr_push()
(Maintainer)pr_sync()
pr2
then pr_push()
pr2
(Maintainer)pr_finish()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.