4 ms·
One click pull/update for forked repos? Not holding my breath on it... This is something that more than a few people want, and at one time, it did exist; a sim
by cr0sh 7y ago
One click pull/update for forked repos? Not holding my breath on it...
This is something that more than a few people want, and at one time, it did exist; a simple button you'd click on your fork of a repo, that would go and pull down/merge the latest from the original.
I'm probably not alone in this - but I have a ton of repo "forks" that I just keep around but don't make mods to, but try (and fail) to keep up to date with the original. Why?
Well - because some of these interest me, but aren't often changed if at all - and I worry that some day, the repo will just up and disappear (ie - be deleted), and the code will be gone. So I keep a copy.
This does have the assumption that if they delete their repo, that my branch won't disappear (I assume this is true - wouldn't make sense if that happened). The same kind of thing could even happen to a well used and updated codebase, just because the developer decides this is the thing to do.
So a hedge against this kind of thing.
But keeping the forks up-to-date - for the ones that are popular - is a pain. A single button should be all that is needed, but doesn't exist. So instead, you have to do this weird process (can't remember the exact steps - I recall there's a point you issue a PR and validate it yourself, as part of the process - it makes no sense). Note that this is all thru the web interface for github.
One could keep the repos locally, then issue fetch/pull/merges to grab the latest, but I'd like to avoid the storage req's of that.
In the meantime, I've tried to create a process - that mostly works - that fetches the latest version of the repo, if it exists, as the compressed archive, then stores it in a local "directory" that's a VFS to google drive (IIRC), but it's still in a beta/dev phase and on a back burner.
It's too bad there isn't a way you could specify a fork as a non-updated thing, that just automagically received the updates as they occurred (and then stayed around or was compressed if the op deleted their original branch).
- jkukul 7y agoThere are few github bots [1][2] that keep your fork up to date. They probably don't offer the exact workflow that you want, but you can always customise. I'd assume that if GitHub notices that bots like these are popular, they'd think about incorporating it as a feature. In a way, this is what has happened with Dependabot [3] - IMO it's been so widely used that it made sense for GitHub to include it as a feature. [1] https://github.com/backstrokeapp/server https://github.com/backstrokeapp/server [2] https://github.com/wei/pull https://github.com/wei/pull [3] https://dependabot.com/blog/hello-github/ https://dependabot.com/blog/hello-github/