You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: buildScripts/createTicketIndex.mjs
+43-6Lines changed: 43 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,25 @@ import matter from 'gray-matter';
7
7
importsemverfrom'semver';
8
8
import{sanitizeInput}from'./util/Sanitizer.mjs';
9
9
10
+
/**
11
+
* @module buildScripts.createTicketIndex
12
+
* @summary Generates a hierarchical JSON index of GitHub tickets for the Neo.mjs Portal application.
13
+
*
14
+
* This script is a critical part of the **Portal Knowledge Hub** data pipeline. It parses local markdown
15
+
* files (synced from GitHub Issues) and transforms them into a lightweight, structured JSON index (`tickets.json`).
16
+
* This index drives the `TreeList` navigation in the Portal's "Tickets" section.
17
+
*
18
+
* **Key Features:**
19
+
* - **Dual-Source Scanning:** Reads from both active issues (`resources/content/issues`) and the issue archive (`resources/content/issue-archive`).
20
+
* - **Intelligent Filtering:** Includes high-value tickets (bug, feature, epic) while excluding noise (chore, task) to ensure high signal-to-noise ratio for SEO and AI.
21
+
* - **Hierarchical Grouping:** Groups tickets by "Latest" (active) or by Release Version (archived), sorted semantically.
22
+
* - **TreeList Optimization:** Outputs a flat-tree structure compatible with `Neo.tree.List` and `Neo.data.Store`.
0 commit comments