Closed CircleCode closed 1 year ago
And that does not work?
And that does not work?
That does work, but that allows only the condition
“any file has been modified in src/new/
AND a php file has been modified everywere”
but not
“a php file has been modified in src/new/
”.
Ah got it
Yes creating a Condition that works like this looks like a good idea
{
"conditions": [
{
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged",
"args": [{
"inDirectory": "foo",
"ofType": "php"
}]
}
This is now fixed with the FileStaged\ThatIs
condition :)
For example, I would like to run action if a php file has been modified in dir
src/new/
The following example from the doc will be true if both conditions are validated
src/new/