Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a stdin way of configuring files that need to be validated by GrumPHP #801

Merged
merged 5 commits into from Aug 21, 2020

Conversation

veewee
Copy link
Contributor

@veewee veewee commented Aug 19, 2020

Q A
Branch master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Documented? yes
Fixed tickets #394

This PR allows adding files to GrumPHP through stdin.
Example:

git diff | php ./vendor/bin/grumphp run
git diff --staged | php ./vendor/bin/grumphp run
git ls-files src | php ./vendor/bin/grumphp run
cat some-file-with-one-path-per-line.txt | php ./vendor/bin/grumphp run

This works for the commands: run, git:pre-commit, git:commit-msg

@veewee veewee added this to the 0.20.1 milestone Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant