lee-spec-kit 0.6.11 → 0.6.12
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 +9 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2772,19 +2772,21 @@ function checkTaskCommitGate(feature) {
|
|
|
2772
2772
|
newDoneCount += currentCount - previousCount;
|
|
2773
2773
|
}
|
|
2774
2774
|
}
|
|
2775
|
-
if (newDoneCount
|
|
2775
|
+
if (newDoneCount > 1) {
|
|
2776
2776
|
return {
|
|
2777
2777
|
pass: false,
|
|
2778
2778
|
reason: "MULTIPLE_DONE_TRANSITIONS",
|
|
2779
2779
|
newDoneCount
|
|
2780
2780
|
};
|
|
2781
2781
|
}
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2782
|
+
if (newDoneCount === 1) {
|
|
2783
|
+
const lastDoneTopic = normalizeTaskTopic(feature.lastDoneTask?.title || "");
|
|
2784
|
+
if (lastDoneTopic) {
|
|
2785
|
+
const previousCount = previousDone.get(lastDoneTopic) || 0;
|
|
2786
|
+
const currentCount = currentDone.get(lastDoneTopic) || 0;
|
|
2787
|
+
if (currentCount <= previousCount) {
|
|
2788
|
+
return { pass: false, reason: "MISMATCH_LAST_DONE", newDoneCount };
|
|
2789
|
+
}
|
|
2788
2790
|
}
|
|
2789
2791
|
}
|
|
2790
2792
|
return { pass: true, reason: "MULTIPLE_DONE_TRANSITIONS", newDoneCount };
|