@windyroad/jtbd 0.2.0-preview.32 → 0.2.1-preview.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -63,6 +63,10 @@ case "$FILE_PATH" in
|
|
|
63
63
|
exit 0 ;;
|
|
64
64
|
*/docs/problems/*.md|docs/problems/*.md)
|
|
65
65
|
exit 0 ;;
|
|
66
|
+
*/docs/JOBS_TO_BE_DONE.md|docs/JOBS_TO_BE_DONE.md)
|
|
67
|
+
exit 0 ;;
|
|
68
|
+
*/docs/PRODUCT_DISCOVERY.md|docs/PRODUCT_DISCOVERY.md)
|
|
69
|
+
exit 0 ;;
|
|
66
70
|
esac
|
|
67
71
|
|
|
68
72
|
# If no JTBD doc exists, block and direct to create skill
|
|
@@ -50,6 +50,15 @@ file_is_excluded() {
|
|
|
50
50
|
file_is_excluded 'RISK-POLICY.md'
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
@test "enforce: excludes JOBS_TO_BE_DONE.md (P002 chicken-and-egg fix)" {
|
|
54
|
+
# Must have a case pattern that exempts the policy file itself
|
|
55
|
+
grep -q 'JOBS_TO_BE_DONE.md)' "$HOOK"
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@test "enforce: excludes PRODUCT_DISCOVERY.md" {
|
|
59
|
+
file_is_excluded 'PRODUCT_DISCOVERY.md'
|
|
60
|
+
}
|
|
61
|
+
|
|
53
62
|
@test "enforce: does NOT have UI-only case guard" {
|
|
54
63
|
# The old guard matched only UI extensions then exited for everything else.
|
|
55
64
|
# The new hook should NOT exit 0 for all non-UI files.
|