Skip to content

Provide a default branch for {push_files}  #785

@mrexox

Description

@mrexox

⚡ Summary

base_branch: develop

pre-push:
  commands:
    lint:
      run: yarn lint {push_files}

Value

  1. Default branch is develop
  2. You create a new branch from develop
  3. You try to push and {push_files} contains files not agains the develop, but against main

This is confusing. This should be controlled by some setting in lefthook, since it's impossible to control the other way.

Behavior and configuration changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA new lefthook feature description

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions