I recently implimented this in _git-plus_, but wondered if it might be an appropriate feature here?
Tower and GitKraken clients both auto-fetch periodically.
Also - clicking 'fetch' doesn't retrieve full list of branches in repository (origin). Currently there doesn't appear to be a way to check out a branch via the github package in Atom.
Here some thoughts about enabling auto-fetching. They're mostly questions. :wink:
git-plus has an option to choose between 0-60 minutes. 0 means disabling auto-fetchingAuto-fetching could also be tied to doing certain actions. For example:
Because in these situations, it would be a good time to pull (if you're behind). Periodically auto-fetch could be distracting if you're in the middle of coding and you see the spinner and then the counter update.

And then you're in this conflict: "Should I first finish and commit or go check on github.com what the changes are?" :thinking:
Have an option to disabling auto-fetching in case you are tethering with your phone and wanna save data. https://github.com/atom/github/pull/1308#issuecomment-377095292. There are also apps like TripMode to control access outside of Atom.
@simurai I think all of these are good points in time to auto-fetch without being distracting. 馃憤 I personally like a periodic auto-fetch as well, but I can definitely see that mental conflict once one realizes that "there are changes on remote", so that might not be for everyone.
From a quick web search, it seems to be possible in Electron to detect when a computer comes back from sleep. I have no idea how hard it would be to get such information into the GitHub package, but in theory this possibility seems to exist.
I threw together a quick hack of what a __鈿欙笍Settings__ sub-screen could look like:

One could easily enable/disable all of auto-fetching with one click, or go into more details per action.
A simplified version could look like this:

I'm aware that too many settings can be overkill, so keeping it simple might be a good idea. But as not all users might want to auto-fetch for bandwidth reasons (I couldn't quite find any data about how much an empty fetch costs), there should probably exist an option to turn the whole feature off (would it be off by default?).
I'm aware that too many settings can be overkill, so keeping it simple might be a good idea.
:joy: Yeah, being a little bit opinionated should be fine. I like the two categories that can be toggled individually. 馃憤
would it be off by default?
Introduce auto-fetch by being off by default? To avoid unpleasant surprises. We can always turn it on at a later point if we feel strongly about it.
What鈥檚 the status on this? An auto-fetch is a good idea.
Most helpful comment
@simurai I think all of these are good points in time to auto-fetch without being distracting. 馃憤 I personally like a periodic auto-fetch as well, but I can definitely see that mental conflict once one realizes that "there are changes on remote", so that might not be for everyone.
From a quick web search, it seems to be possible in Electron to detect when a computer comes back from sleep. I have no idea how hard it would be to get such information into the GitHub package, but in theory this possibility seems to exist.
I threw together a quick hack of what a __鈿欙笍Settings__ sub-screen could look like:
One could easily enable/disable all of auto-fetching with one click, or go into more details per action.
A simplified version could look like this:
I'm aware that too many settings can be overkill, so keeping it simple might be a good idea. But as not all users might want to auto-fetch for bandwidth reasons (I couldn't quite find any data about how much an empty fetch costs), there should probably exist an option to turn the whole feature off (would it be off by default?).