@dezkareid/osddt 1.11.12 → 1.11.13
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/dist/index.js +11 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -603,13 +603,21 @@ ${npxCommand} worktree-info <feature-name>
|
|
|
603
603
|
|
|
604
604
|
**If it exits with code 0 (worktree feature):** parse the JSON to get \`worktreePath\` and \`branch\`, derive \`<project-path>\` from \`workingDir\`, then continue below.
|
|
605
605
|
|
|
606
|
-
4.
|
|
606
|
+
4. Run the done command with the \`--worktree\` flag:
|
|
607
|
+
\`\`\`
|
|
608
|
+
${npxCommand} done <feature-name> --dir <project-path> --worktree
|
|
609
|
+
\`\`\`
|
|
610
|
+
|
|
611
|
+
5. The command will automatically prefix the destination folder name with today's date in \`YYYY-MM-DD\` format.
|
|
612
|
+
For example, \`working-on/feature-a\` will be moved to \`done/YYYY-MM-DD-feature-a\`.
|
|
613
|
+
|
|
614
|
+
6. Check for uncommitted changes inside the worktree:
|
|
607
615
|
|
|
608
616
|
\`\`\`
|
|
609
617
|
git -C <worktreePath> status --porcelain
|
|
610
618
|
\`\`\`
|
|
611
619
|
|
|
612
|
-
|
|
620
|
+
7. If there are **uncommitted changes**:
|
|
613
621
|
1. Run \`git -C <worktreePath> diff\` to inspect them.
|
|
614
622
|
2. Derive a concise commit message in **conventional commit** format (e.g. \`feat: add payment gateway integration\`) based on the diff.
|
|
615
623
|
3. Present the proposed message to the user: _"Use this commit message, or provide your own?"_
|
|
@@ -619,20 +627,12 @@ ${npxCommand} worktree-info <feature-name>
|
|
|
619
627
|
git -C <worktreePath> commit -m "<confirmed-message>"
|
|
620
628
|
\`\`\`
|
|
621
629
|
|
|
622
|
-
|
|
630
|
+
8. Push the branch to remote (covers both first push and subsequent pushes):
|
|
623
631
|
|
|
624
632
|
\`\`\`
|
|
625
633
|
git -C <worktreePath> push --set-upstream origin <branch>
|
|
626
634
|
\`\`\`
|
|
627
635
|
|
|
628
|
-
7. Run the done command with the \`--worktree\` flag:
|
|
629
|
-
\`\`\`
|
|
630
|
-
${npxCommand} done <feature-name> --dir <project-path> --worktree
|
|
631
|
-
\`\`\`
|
|
632
|
-
|
|
633
|
-
8. The command will automatically prefix the destination folder name with today's date in \`YYYY-MM-DD\` format.
|
|
634
|
-
For example, \`working-on/feature-a\` will be moved to \`done/YYYY-MM-DD-feature-a\`.
|
|
635
|
-
|
|
636
636
|
9. Report the result of the command, including the full destination path
|
|
637
637
|
|
|
638
638
|
${getCustomContextStep(npxCommand, 'done')}`,
|