jettypod 4.4.89 → 4.4.90
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.
- package/hooks/pre-commit +6 -4
- package/lib/git-hooks/pre-commit +6 -4
- package/package.json +1 -1
package/hooks/pre-commit
CHANGED
|
@@ -38,12 +38,14 @@ function checkBranchRestriction() {
|
|
|
38
38
|
console.error('❌ Direct commits to main are not allowed');
|
|
39
39
|
console.error('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
|
|
40
40
|
console.error('');
|
|
41
|
-
console.error('
|
|
41
|
+
console.error('You edited files without starting a worktree first.');
|
|
42
|
+
console.error('Your changes exist but cannot be committed here.');
|
|
42
43
|
console.error('');
|
|
43
|
-
console.error('
|
|
44
|
+
console.error('TO FIX:');
|
|
45
|
+
console.error(' 1. Undo your edits: git checkout .');
|
|
46
|
+
console.error(' 2. Start the workflow: Invoke request-routing skill');
|
|
44
47
|
console.error('');
|
|
45
|
-
console.error('
|
|
46
|
-
console.error('When done, use \'jettypod work done\' to merge back to main.');
|
|
48
|
+
console.error('The skill creates a worktree where commits are allowed.');
|
|
47
49
|
console.error('');
|
|
48
50
|
return false;
|
|
49
51
|
} catch (err) {
|
package/lib/git-hooks/pre-commit
CHANGED
|
@@ -36,12 +36,14 @@ function checkBranchRestriction() {
|
|
|
36
36
|
console.error('❌ Direct commits to main are not allowed');
|
|
37
37
|
console.error('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
|
|
38
38
|
console.error('');
|
|
39
|
-
console.error('
|
|
39
|
+
console.error('You edited files without starting a worktree first.');
|
|
40
|
+
console.error('Your changes exist but cannot be committed here.');
|
|
40
41
|
console.error('');
|
|
41
|
-
console.error('
|
|
42
|
+
console.error('TO FIX:');
|
|
43
|
+
console.error(' 1. Undo your edits: git checkout .');
|
|
44
|
+
console.error(' 2. Start the workflow: Invoke request-routing skill');
|
|
42
45
|
console.error('');
|
|
43
|
-
console.error('
|
|
44
|
-
console.error('When done, use \'jettypod work done\' to merge back to main.');
|
|
46
|
+
console.error('The skill creates a worktree where commits are allowed.');
|
|
45
47
|
console.error('');
|
|
46
48
|
return false;
|
|
47
49
|
} catch (err) {
|