@miketromba/issy-core 0.6.0 → 0.7.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miketromba/issy-core",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Issue storage, search, and parsing for issy",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/lib/issues.ts CHANGED
@@ -200,7 +200,6 @@ export function parseFrontmatter(content: string): {
200
200
  export function generateFrontmatter(data: IssueFrontmatter): string {
201
201
  const lines = ['---']
202
202
  lines.push(`title: ${data.title}`)
203
- lines.push(`description: ${data.description}`)
204
203
  lines.push(`priority: ${data.priority}`)
205
204
  if (data.scope) {
206
205
  lines.push(`scope: ${data.scope}`)
@@ -429,7 +428,6 @@ export async function createIssue(input: CreateIssueInput): Promise<Issue> {
429
428
 
430
429
  const frontmatter: IssueFrontmatter = {
431
430
  title: input.title,
432
- description: input.description || input.title,
433
431
  priority,
434
432
  scope: scope || undefined,
435
433
  type,
@@ -466,7 +464,6 @@ export async function updateIssue(
466
464
  const updatedFrontmatter: IssueFrontmatter = {
467
465
  ...issue.frontmatter,
468
466
  ...(input.title && { title: input.title }),
469
- ...(input.description && { description: input.description }),
470
467
  ...(input.priority && { priority: input.priority }),
471
468
  ...(input.scope && { scope: input.scope }),
472
469
  ...(input.type && { type: input.type }),
package/src/lib/search.ts CHANGED
@@ -10,7 +10,6 @@ import type { Issue, IssueFilters } from './types'
10
10
  const FUSE_OPTIONS: IFuseOptions<Issue> = {
11
11
  keys: [
12
12
  { name: 'frontmatter.title', weight: 1.0 },
13
- { name: 'frontmatter.description', weight: 0.7 },
14
13
  { name: 'frontmatter.labels', weight: 0.5 },
15
14
  { name: 'content', weight: 0.3 }
16
15
  ],
@@ -227,7 +226,7 @@ function sortIssues(issues: Issue[], sortBy: string): void {
227
226
  * - `sort:roadmap` / `sort:priority` / `sort:created` / `sort:created-asc` / `sort:updated` / `sort:id` - sorts results
228
227
  *
229
228
  * Any remaining free text after qualifiers triggers fuzzy search across title,
230
- * description, labels, and content. Results are sorted by relevance when search
229
+ * labels, and content. Results are sorted by relevance when search
231
230
  * text is present. When no search text is provided, results are sorted by the
232
231
  * `sort:` qualifier (defaults to roadmap if not specified). ID prefix matching
233
232
  * is supported (e.g., "1" matches #0001).
package/src/lib/types.ts CHANGED
@@ -4,7 +4,6 @@
4
4
 
5
5
  export interface IssueFrontmatter {
6
6
  title: string
7
- description: string
8
7
  priority: 'high' | 'medium' | 'low'
9
8
  scope?: 'small' | 'medium' | 'large'
10
9
  type: 'bug' | 'improvement'
@@ -32,7 +31,6 @@ export interface IssueFilters {
32
31
 
33
32
  export interface CreateIssueInput {
34
33
  title: string
35
- description?: string
36
34
  body?: string
37
35
  priority?: 'high' | 'medium' | 'low'
38
36
  scope?: 'small' | 'medium' | 'large'
@@ -43,7 +41,6 @@ export interface CreateIssueInput {
43
41
 
44
42
  export interface UpdateIssueInput {
45
43
  title?: string
46
- description?: string
47
44
  body?: string
48
45
  priority?: 'high' | 'medium' | 'low'
49
46
  scope?: 'small' | 'medium' | 'large'