Skip to content

Allow skipping of hook at install time #111

Open
@Krinkle

Description

@Krinkle

Follows-up #36.

My dev environment for Node.js specifically mounts project directories in the isolation container with read-only access to .git for security reasons (details).

This means I'm currently unable to run npm install in e.g. qunit since it will fail mid-way on commitplease trying to install the hook.

Would you accept a PR that allows one to opt-out via an environment variable? It could be simple like COMMITPLEASE_NOHOOK=1. I also note that commitplease supports setting options via an .npmrc file. These are automatically read by npm into environment variables, e.g. npm_config_commitplease_nohook. If we read npmrc using that method instead, then it would naturally also allow toggling from the user's own environment variables.

I'm also open to other ways of toggling this. Let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions