team-toon-tack 3.2.0 → 3.2.1
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/scripts/lib/sync.js +2 -9
- package/package.json +1 -1
package/dist/scripts/lib/sync.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getLinearClient, getPrioritySortIndex, loadCycleData, saveCycleData, } from "../utils.js";
|
|
2
2
|
import { getStatusTransitions } from "./linear.js";
|
|
3
|
+
import { mapRemoteToLocalStatus } from "./status-helpers.js";
|
|
3
4
|
/**
|
|
4
5
|
* Fetch issue details from Linear without saving to local data
|
|
5
6
|
* Returns Task object or null if issue not found
|
|
@@ -81,15 +82,7 @@ export async function syncSingleIssue(issueId, options) {
|
|
|
81
82
|
// Map remote status to local status if not preserving
|
|
82
83
|
if (!preserveLocalStatus) {
|
|
83
84
|
const transitions = getStatusTransitions(config);
|
|
84
|
-
|
|
85
|
-
task.localStatus = "completed";
|
|
86
|
-
}
|
|
87
|
-
else if (task.status === transitions.in_progress) {
|
|
88
|
-
task.localStatus = "in-progress";
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
task.localStatus = "pending";
|
|
92
|
-
}
|
|
85
|
+
task.localStatus = mapRemoteToLocalStatus(task.status, transitions);
|
|
93
86
|
}
|
|
94
87
|
// Update cycle data
|
|
95
88
|
if (existingData) {
|