Skip to content

Prominently notify me when a hook rejects a commit #10828

Closed

Description

@freeatnet

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.

Pinned by niik

Activity

  1. niik commented on Oct 15, 2020

    @niik
    Member

    Thanks for opening this @freeatnet!

    a dock icon bounce on macOS

    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?

  2. added
    design-input-needed
    on Oct 19, 2020
  3. ampinsk commented on Oct 21, 2020

    @ampinsk
    Contributor

    I'm +1 on a dock bounce in the case of alerts/errors when the application isn't focused!

  4. added
    not-planned
    on Jul 8, 2024
  5. niik commented on Jan 14, 2026

    @niik
    Member

    Yesterday we shipped GitHub Desktop 3.5.5-beta1 to our beta channel with improved support for hooks related to committing.

    Screenshot showing the GitHub Desktop commit form as a pre-commit hook is running

    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.

    Screenshot showing the hook settings dialog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    design-input-neededenhancementnot-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions