Skip to content

Comments

feat(cli): add task sync gh-project command#6

Merged
pmarsceill merged 2 commits intomainfrom
feat/task-sync-gh-project
Jan 21, 2026
Merged

feat(cli): add task sync gh-project command#6
pmarsceill merged 2 commits intomainfrom
feat/task-sync-gh-project

Conversation

@pmarsceill
Copy link
Owner

Summary

  • Add map task sync gh-project <name> command to sync tasks from GitHub Projects
  • Fetches items from a source status column (default: "Todo") and creates tasks for each issue
  • Moves synced issues to a target column (default: "In Progress") on GitHub
  • Includes comprehensive unit tests for JSON parsing and task description building

Flags

Flag Default Description
--status-column "Todo" Source status column to sync from
--target-column "In Progress" Target status column after task creation
--dry-run false Preview without creating tasks or updating GitHub
--owner "@me" GitHub project owner (user, org, or @me)
--limit 10 Maximum number of items to sync

Test plan

  • Build passes: make build
  • Lint passes: golangci-lint run --timeout=5m
  • Unit tests pass: go test -v -race ./internal/cli/...
  • Manual test with a GitHub Project containing issues in "Todo" column
  • Verify --dry-run shows items without creating tasks
  • Verify tasks are created and issues move to "In Progress"

🤖 Generated with Claude Code

pmarsceill and others added 2 commits January 21, 2026 12:25
Add `map task sync gh-project <name>` command to sync tasks from GitHub
Projects. The command:
- Finds a GitHub Project by name using the gh CLI
- Fetches items from a configurable status column (default: "Todo")
- Creates tasks for each issue found
- Moves issues to a target column (default: "In Progress")

Flags:
  --status-column: source status column to sync from
  --target-column: target status column after task creation
  --dry-run: preview without creating tasks
  --owner: GitHub project owner (user, org, or @me)
  --limit: maximum number of items to sync

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@pmarsceill pmarsceill merged commit 9c59de3 into main Jan 21, 2026
@pmarsceill pmarsceill deleted the feat/task-sync-gh-project branch January 21, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant