Live data from Hacker News

GitHub Stacked PRs

github.github.com

41–50 of 548 posts

Re: GitHub Stacked PRs

#41
I feel like we already have enough abstractions in this space. Having any constraints at all in your tools is actually a good thing. PRs on top of ordinary git was a good step. This seems like one too many.

Re: GitHub Stacked PRs

#42

As a solo dev I rarely need stacked PRs, but the underlying problem, keeping PRs small and reviewable, is real even when you're your own reviewer. I've found that forcing myself to break work into small branches before I start (rather than retroactively splitting a giant branch) is the actual discipline. The tooling just makes it less painful when you don't. Curious whether this changes anything for the AI-assisted w…

The tooling for that already exists, since a PR can consist of multiple Git commits and you can look at them separately in the UI. I don't know whether agents are any good at navigating that, but if not, they won't do any better with stacked PRs. Stacked PRs do create some new affordances for the review process, but that seems different from what you're looking for.

Re: GitHub Stacked PRs

#44

At first I thought this was a user submitted project due to the subdomain of github.com but then realize the subdomain is also github. Is this an official channel for this sort of thing? Surprised this isn't on the official blog.

It's in private preview. Probably they'll put it in the main docs and such once it's open to everyone.

Re: GitHub Stacked PRs

#45
post #2

Seems to mainly be useful for monorepos as currently designed. Or, to replace a long-lived feature/refactor branch.

I think the only thing I miss from GitLab was being able to make merge requests depend on other merge requests, even across repositories. So I could make a backend repository MR depend on a library repository MR, and even enable auto-merge that’d fire when the backend MR was reviewed and the dependency was also merged.

Re: GitHub Stacked PRs

#46
github.github.com? Not the first time github does something highly weird with their domains (like publishing docs from a subdomain of their public github pages service)

I think they have a culture of circumventing 'official' channels and whoever is in charge of a thing is whoever publishes the thing.

I think it's a great way to train users to get phished by github impostors, if tomorrow we see an official download from official.github.com or even official-downloads.github.io, sure it's phishy, but it's also something that github does.

It's also 100% the kind of issues that, if it happens, the user will be blamed.

I would recommend github to stop doing this stuff and have a centralized domain to publish official communications and downloads from. Github.github.com? Come on, get serious.

TL;DR: DO NOT DOWNLOAD ANYTHING from this site, (especially not npm/npx/pnpm/bun/npjndsa) stuff. It's a Github Pages site, just on a subdomain that looks official, theoretically it might be no different from an attacker to obtain access to dksabdkshab.github.com than github.github.com. Even if it is official, would you trust the intern or whoever managed to get a subdomain to not get supply chained? github.github.com just think about it.

Re: GitHub Stacked PRs

#47

As a solo dev I rarely need stacked PRs, but the underlying problem, keeping PRs small and reviewable, is real even when you're your own reviewer. I've found that forcing myself to break work into small branches before I start (rather than retroactively splitting a giant branch) is the actual discipline. The tooling just makes it less painful when you don't. Curious whether this changes anything for the AI-assisted w…

Maybe there’s a git trick I don’t know, but I’ve found making small branches off each other painful. I run into trouble when I update an earlier branch and all the dependent branches get out of sync with it. When those earlier branches get rebased into master it becomes a pain to update my in-progress branches as well

Re: GitHub Stacked PRs

#48
post #2

Seems to mainly be useful for monorepos as currently designed. Or, to replace a long-lived feature/refactor branch.

Whatbmakes you say that? Devs use stacked PRs in small and large repos today.

Their examples show combined backend and frontend changes on the same monorepo in different PRs.

As far as splitting work into different PRs that need coordinated merging, I've only ever encountered that when it's a long lived refactor / feature.

Re: GitHub Stacked PRs

#49
post #43

how is this different than viewing a PR one commit at a time?

Each commit can be merged independently as they're reviewed.

One of the advertised features of this is being able to merge all the PRs at once. Which would also be the case for multiple commits in a single PR.
Post reply on HN