feat(KB-001): complete Step 6 — documentation and changeset

This commit is contained in:
gsxdsm
2026-03-29 17:24:50 -07:00
parent 21a4913438
commit fe460a58d1
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
---
"@dustinbyrne/kb": minor
---
Add ability to import new tasks from GitHub issues
Users can now run `kb task import <owner/repo>` to fetch open issues from a GitHub repository and create tasks from them. Each imported issue becomes a task in the "triage" column with:
- Issue title as task title (truncated to 200 chars)
- Issue body as description with source URL appended
- Duplicate detection based on source URL
Options:
- `--limit, -l <n>`: Max issues to import (default: 30, max: 100)
- `--labels, -L <labels>`: Comma-separated label filter (e.g., "bug,enhancement")
Pi extension also includes new `kb_task_import_github` tool for programmatic access.
Requires `GITHUB_TOKEN` env var for private repositories and to avoid rate limits.

View File

@@ -43,6 +43,8 @@ kb task log KB-001 "Added context" # Add a log entry
kb task pause KB-001 # Pause a task (stops automation) kb task pause KB-001 # Pause a task (stops automation)
kb task unpause KB-001 # Resume a paused task kb task unpause KB-001 # Resume a paused task
kb task attach KB-001 ./error.log # Attach a file to a task kb task attach KB-001 ./error.log # Attach a file to a task
kb task import owner/repo # Import GitHub issues as tasks
kb task import owner/repo --limit 10 --labels "bug,enhancement"
``` ```
### Typical workflow ### Typical workflow