Skip to content

Conversation

@laszlokindrat
Copy link
Contributor

@laszlokindrat laszlokindrat commented Dec 2, 2025

Stacked PRs:


Mark PRs temporarily draft while submitting

When running stack-pr submit, patches in a stack need to have their base branches temporarily changed to avoid accidental closures. This has the unfortunate side effect that in this transient state, the PRs seem like multi-commit PRs pointing to main, resulting in GH notifying reviewers for every commit on the branch (as opposed to just the one that corresponds to the stacked PR). This patch fixes this by marking PRs temporarily draft while we manipulate their bases.

When running `stack-pr submit`, patches in a stack need to have their base branches temporarily changed to avoid accidental closures. This has the unfortunate side effect that in this transient state, the PRs seem like multi-commit PRs pointing to main, resulting in GH notifying reviewers for every commit on the branch (as opposed to just the one that corresponds to the stacked PR). This patch fixes this by marking PRs temporarily draft while we manipulate their bases.

stack-info: PR: #111, branch: laszlokindrat/stack/2
laszlokindrat pushed a commit that referenced this pull request Dec 2, 2025
When running `stack-pr submit`, patches in a stack need to have their base branches temporarily changed to avoid accidental closures. This has the unfortunate side effect that in this transient state, the PRs seem like multi-commit PRs pointing to main, resulting in GH notifying reviewers for every commit on the branch (as opposed to just the one that corresponds to the stacked PR). This patch fixes this by marking PRs temporarily draft while we manipulate their bases.

stack-info: PR: #111, branch: laszlokindrat/stack/2
Base automatically changed from laszlokindrat/stack/1 to main December 4, 2025 05:24
@ZolotukhinM ZolotukhinM force-pushed the laszlokindrat/stack/2 branch from 454193f to 9b255aa Compare December 4, 2025 05:24
@ZolotukhinM ZolotukhinM merged commit 335d615 into main Dec 4, 2025
4 checks passed
@ZolotukhinM ZolotukhinM deleted the laszlokindrat/stack/2 branch December 4, 2025 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants