-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[docs][GitHub] Document alternative approach to stacked PRs #132424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
be8759d
ba20d05
41d32b7
5591fe0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,8 +29,23 @@ intended to be able to support "stacked" pull-request. Do not create any branche | |
| llvm/llvm-project repository otherwise, please use a fork (see below). User branches that | ||
| aren't associated with a pull-request **will be deleted**. | ||
|
|
||
| Stacked Pull Requests | ||
| ===================== | ||
|
|
||
| GitHub does not natively support stacked pull requests. There are two common | ||
| alternatives: | ||
|
|
||
| * Add a note in your PR summary indicating that your patch is part of a | ||
| series or depends on another PR (e.g., “Depends on #123456”). It also helps | ||
| to highlight which commits belong to other PRs, so reviewers can focus only | ||
|
||
| on the relevant changes. | ||
| * Use Graphite (described below), a tool that supports stacked PR workflows. | ||
|
||
|
|
||
| Both approaches help streamline the review process. Choose the one that works | ||
| best for you. | ||
|
|
||
| Using Graphite for stacked Pull Requests | ||
| ======================================== | ||
| ---------------------------------------- | ||
|
|
||
| `Graphite <https://app.graphite.dev/>`_ is a stacked pull request tool supported | ||
| by the LLVM repo (the other being `reviewable.io <https://reviewable.io>`_). | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With user branches we sort of have stacked pull requests. The supper still isn't great though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are user branches alone sufficient for stacked PRs? If yes, then I am behind and time to learn something new 😅
In general, I was under the impression that user branches were discouraged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, user branches will give you stacked PRs. You can do them manually, but SPR will set them up for you automatically.
User branches aren't great, but I wouldn't say they're discouraged. The official (maybe just de facto?) policy is that they are perfectly fine to be used for stacked PRs, but should be avoided for PRs that are not stacked.