@skitterbyte/skitterspec-jira 1.0.0 → 1.2.2
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/MIGRATION.md +37 -0
- package/assets/core/env.config.md +54 -2
- package/assets/hooks/main-guard.cjs +1 -1
- package/assets/hooks/review-gate.cjs +1 -1
- package/assets/rules/spec-reports.md +19 -4
- package/assets/skills/no-spec/SKILL.md +6 -3
- package/assets/skills/spec-bug/SKILL.md +3 -1
- package/assets/skills/spec-complete/SKILL.md +6 -3
- package/assets/skills/spec-hotfix/SKILL.md +3 -1
- package/assets/skills/spec-next/SKILL.md +3 -1
- package/assets/skills/spec-to-main/SKILL.md +5 -3
- package/bin/skitterspec-jira.js +7 -0
- package/package.json +1 -1
- package/src/cli.js +82 -16
- package/src/env/config.js +111 -14
- package/src/env/glob.js +34 -0
- package/src/env/hotfix.js +33 -5
- package/src/env/integrate.js +52 -11
- package/src/env/live.js +1 -26
- package/src/env/proxy.js +33 -0
- package/src/env/review.js +47 -2
- package/src/init.js +3 -3
- package/src/vendor/provider-kit/src/apply.js +10 -0
- package/src/vendor/provider-kit/src/assignment.js +277 -0
- package/src/vendor/provider-kit/src/http.js +30 -11
- package/src/vendor/provider-kit/src/released.js +56 -13
- package/src/vendor/provider-kit/src/releases.js +595 -0
- package/src/vendor/sync-core/index.js +2 -1
- package/src/vendor/sync-core/src/compare.js +32 -0
- package/src/vendor/sync-core/src/normalize.js +10 -1
|
@@ -570,6 +570,15 @@ const UNSTARTED_BUCKETS = ['backlog', 'cancelled']
|
|
|
570
570
|
// Buckets where a spec is FINISHED, and so has nobody working on it.
|
|
571
571
|
const TERMINAL_BUCKETS = ['complete', 'cancelled']
|
|
572
572
|
|
|
573
|
+
// A phase's state once its SPEC's bucket has a say. Cancelling a spec abandons
|
|
574
|
+
// every phase not already done — left alone, those sub-issues stay open in
|
|
575
|
+
// Backlog under a closed parent, which reads as work still owed. A phase that
|
|
576
|
+
// was finished keeps `complete`: it shipped before the spec was dropped.
|
|
577
|
+
function phaseStateUnder(workflowState, phaseState) {
|
|
578
|
+
if (workflowState === 'cancelled' && phaseState !== 'complete') return 'cancelled'
|
|
579
|
+
return phaseState
|
|
580
|
+
}
|
|
581
|
+
|
|
573
582
|
/**
|
|
574
583
|
* The Linear user this spec is assigned to, AS PROJECTED — which is not simply
|
|
575
584
|
* what the frontmatter records.
|
|
@@ -714,7 +723,7 @@ function normalizeLocal(snapshotDir, config) {
|
|
|
714
723
|
ref: p.phase,
|
|
715
724
|
name: p.name,
|
|
716
725
|
goal: subIssueBody(p, tasksMode, config.sync.localOnlySections, dialect),
|
|
717
|
-
state: p.state,
|
|
726
|
+
state: phaseStateUnder(workflowState, p.state),
|
|
718
727
|
})),
|
|
719
728
|
workflowState,
|
|
720
729
|
// Who is building this. `toFieldSet` drops it unless the repo listed
|