Skip to content

Commit 5b6db74

Browse files
committed
Merge remote-tracking branch 'origin/feature/add-spec-plan-hooks' into feature/add-spec-plan-hooks
2 parents 3614e6c + 21a142a commit 5b6db74

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

templates/commands/specify.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ Given that feature description, do this:
215215
8. **Check for extension hooks**: After reporting completion, check if `.specify/extensions.yml` exists in the project root.
216216
- If it exists, read it and look for entries under the `hooks.after_specify` key
217217
- If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
218-
- Filter to only hooks where `enabled: true`
219-
- For each remaining hook, do **not** attempt to interpret or evaluate hook `condition` expressions:
220-
- If the hook has no `condition` field, or it is null/empty, treat the hook as executable
221-
- If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation
218+
- From the discovered hooks, ignore only those where `enabled` is explicitly set to `false`. If `enabled` is omitted, treat the hook as enabled.
219+
- Do **not** attempt to interpret or evaluate hook `condition` expressions, and do **not** filter hooks based on the presence or contents of `condition`. Condition evaluation is handled by the `HookExecutor.should_execute_hook` implementation.
220+
- Treat all hooks that are not explicitly disabled (that is, all hooks where `enabled` is not `false`) as executable candidates.
222221
- For each executable hook, output the following based on its `optional` flag:
222+
- **Optional hook** (`optional: true`):
223223
- **Optional hook** (`optional: true`):
224224
```
225225
## Extension Hooks

0 commit comments

Comments
 (0)