You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prominently notify me when a hook rejects a commit #10828
Describe the feature or problem you’d like to solve
I think it would be neat if GitHub Desktop prominently notified me if a hook rejects the commit I'm trying to make.
Certain hooks (like extensive lint, type check) can take a few seconds. On a couple of occasions, I've gone back to editing the code, assuming the checks will eventually pass. However, when a lint hook rejected the commit, I was not alerted. I did not notice that the commit had failed until after I made another batch of changes and came back to make another commit. I ended up with a single commit containing both changesets, which made it harder to review.
Proposed solution
I would like GitHub Desktop to prominently notify me when a hook rejects the commit. This could come in the form of a notification or a dock icon bounce on macOS.
The support is experimental and currently limited to our beta channel. While we believe that this release resolved this issue we're looking for real-world feedback so if you have the ability we'd appreciate it if you could download our beta channel and give it a spin. Ensure the experimental hooks support it's enabled by going to Settings -> Git -> Hooks and making sure the "Load Git hook environment variables from shell" is ticked.
This is interesting, I feel like this would be an idiomatic approach on macOS (and probably flashing the taskbar icon on Windows too tbh). We would flash/bounce whenever we show an error dialog in the app and the app isn't in focus. Thoughts on that @ampinsk?
The support is experimental and currently limited to our beta channel. While we believe that this release resolved this issue we're looking for real-world feedback so if you have the ability we'd appreciate it if you could download our beta channel and give it a spin. Ensure the experimental hooks support it's enabled by going to Settings -> Git -> Hooks and making sure the "Load Git hook environment variables from shell" is ticked.
Activity
niik commentedon Oct 15, 2020
Thanks for opening this @freeatnet!
This is interesting, I feel like this would be an idiomatic approach on macOS (and probably flashing the taskbar icon on Windows too tbh). We would flash/bounce whenever we show an error dialog in the app and the app isn't in focus. Thoughts on that @ampinsk?
ampinsk commentedon Oct 21, 2020
I'm +1 on a dock bounce in the case of alerts/errors when the application isn't focused!
niik commentedon Jan 14, 2026
Yesterday we shipped GitHub Desktop 3.5.5-beta1 to our beta channel with improved support for hooks related to committing.
The support is experimental and currently limited to our beta channel. While we believe that this release resolved this issue we're looking for real-world feedback so if you have the ability we'd appreciate it if you could download our beta channel and give it a spin. Ensure the experimental hooks support it's enabled by going to Settings -> Git -> Hooks and making sure the "Load Git hook environment variables from shell" is ticked.