Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Allow precommit tasks to be defined in project.yml #474

Conversation

steveworley
Copy link
Contributor

Updates pre-commit hook to call a BLT task which will look for steps in the project.yml file. This will allow projects to define additional checks to enforce during the precommit stage.

Might need to change the key in project.yml from targets currently it will expect a list of targets as they are currently defined in BLT.

targets:
  precommit:
    - validate:phpcs:files
    - tests:phplint

With this change, I was a little cautious to allow properties to be passed around given the nature. As this means we will need to define a target for each entry point and document which targets get which parameters.

Steve Worley added 5 commits September 29, 2016 10:01
Updates pre-commit hook to call a BLT task which will look for steps in the project.yml file.
The pre-commit command should prevent the commit if the tasks performed return errors. This can be
overridden by using gits `--no-verify` option while committing.
@grasmash grasmash added the Enhancement A feature or feature request label Nov 10, 2016
@grasmash
Copy link
Contributor

Closing in favor of #692, which allows custom git hooks to be implemented.

@grasmash grasmash closed this Nov 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement A feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants