Skip to content

Accept command line arguments instead of environment variables#396

Description

@mpoberezhniy

Type of issue

Feature Request

Description

Relates to #179
For local use cli args should be accepted.

Describe the solution you'd like

I think index.sh should handle all the scm parameters, pass other -* parameters to shellcheck, and the rest are filenames after -- - pre-commit passes file names to the hook. If the file names are not passed - scan all the files based on INPUT_TRIGGERING_EVENT, BASE and HEAD. I think INPUT_TRIGGERING_EVENT should remain an env variable for the actions only, and manual should be the default mode for local use.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions