Skip to content

Support specifying stages #49

Closed
Closed
@blaggacao

Description

@blaggacao

For speedy development, I'd configure certain hooks for different stages.

A common example:

  • run pre-commit hooks on the prepush stage (to make sure only "clean" stuff gets remoted)
  • don't run anything on commit to avoid disrupting developer's flow
  • alias prepush hooks from a justfile, so developer can run - e.g. - just fmt conscientiously and avoid surprises at git push (promote the stimulus of being in control)

Therefore, I'd need to configure:

  • either hook = { stages = ["manual", "push"] }
  • or something global ... run { ...; stages = [ "manual", "push" ] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions