-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Summary
Add a ralph-starter sync command that checks GitHub PR merge state and updates Linear issue status accordingly.
Usage
ralph-starter sync [--source linear] [--project owner/repo]How it works
- Query Linear for issues with status "In Progress" in the ralph-starter project
- For each issue, check if the issue identifier (e.g.
ENG-42) appears in any open/merged GitHub PR viagh pr list --search "ENG-42" - If PR is merged → update Linear to "Done" + add comment with PR URL
- If PR is closed (not merged) → add comment "PR closed without merge"
- If PR is open → keep "In Progress"
Implementation
Files to create/modify
src/commands/sync.ts— New sync command (~150 lines)src/cli.ts— Registersynccommanddocs/docs/cli/sync.md— Documentation
Dependencies
- Uses
WritableIntegrationfrom PR feat: unified task management across GitHub & Linear #196 for Linear mutations - Uses
ghCLI for GitHub PR queries - Reads
LINEAR_API_KEYfrom env orralph-starter config
Acceptance criteria
-
ralph-starter syncqueries Linear and syncs status - Merged PRs → Linear "Done" + comment
- Closed PRs → Linear comment
- Open PRs → no change
- Dry-run mode:
ralph-starter sync --dry-run - Tests for sync logic
Reactions are currently unavailable