Sync GYWD project state with GitHub issues, PRs, and milestones
Syncs GYWD project state with GitHub issues, PRs, and milestones bidirectionally.
/plugin marketplace add cyberbloke9/pmp-gywd/plugin install pmp-gywd@pmp-gywd[issues|prs|milestones|all]gywd/From GYWD → GitHub:
From GitHub → GYWD:
Options:
issues - Sync issues bidirectionallyprs - Create PRs for completed workmilestones - Sync milestones with GitHuball - Full sync (default)status - Show sync status without changes
</context>
## GitHub Sync Status
**Repository:** cyberbloke9/my-project
**Last sync:** 2024-01-15 14:30
### Issues
| GYWD | GitHub | Status |
|------|--------|--------|
| #1 Auth bug | #12 | ✅ Synced |
| #2 Performance | #15 | ✅ Synced |
| #3 New feature | - | ⬆️ Needs push |
| - | #18 (bug) | ⬇️ Needs import |
### Milestones
| GYWD | GitHub | Status |
|------|--------|--------|
| v1.0 MVP | v1.0 | ✅ Synced |
| v1.1 Features | - | ⬆️ Needs push |
### PRs
| Phase | PR | Status |
|-------|-----|--------|
| Phase 1 | #5 | ✅ Merged |
| Phase 2 | #8 | 🔄 Open |
| Phase 3 | - | 📋 Ready to create |
For each issue in ISSUES.md without GitHub link:
gh issue create \
--title "Issue title" \
--body "Description from ISSUES.md" \
--label "from-gywd"
Update ISSUES.md with GitHub issue number:
## #3 Add dark mode [GitHub: #19]
Status: Open
Created: 2024-01-15
...
# Get issues labeled for import
gh issue list --label "needs-planning" --json number,title,body
Add to ISSUES.md:
## #4 Mobile responsive [GitHub: #20]
Status: Open
Source: GitHub import
Priority: Medium
...
gh api repos/{owner}/{repo}/milestones \
--method POST \
-f title="v1.1 Features" \
-f description="Phase 4-7 features" \
-f due_on="2024-02-01"
Update milestone progress based on closed issues:
## Milestone Sync
v1.0 MVP: 80% complete (8/10 issues closed)
v1.1 Features: 20% complete (2/10 issues closed)
When phase completes, offer to create PR:
## Create PR for Phase 3?
**Branch:** feature/phase-3-payment
**Target:** main
**Changes:** 12 files, +450/-20 lines
### Suggested PR Description
## Summary
- Implemented Stripe payment integration
- Added webhook handling
- Created payment history API
## Test Plan
- [x] Unit tests pass
- [x] Integration tests pass
- [ ] Manual checkout flow test
## Related Issues
Closes #12, #15
---
Create PR? [Y/n]: _
gh pr create \
--title "feat: Phase 3 - Payment Integration" \
--body "..." \
--base main \
--head feature/phase-3-payment
When PR merges, update STATE.md:
## Completed Phases
| Phase | PR | Merged |
|-------|-----|--------|
| Phase 1 | #5 | 2024-01-10 |
| Phase 2 | #8 | 2024-01-12 |
| Phase 3 | #11 | 2024-01-15 |
Output:
## Sync Complete
| Action | Count |
|--------|-------|
| Issues pushed | 2 |
| Issues imported | 1 |
| Milestones synced | 1 |
| PRs created | 1 |
Next sync: Run `/gywd:sync-github` anytime
</process>
<configuration>
Settings in config.json:
```json
{
"github": {
"auto_sync": false,
"import_labels": ["needs-planning", "enhancement"],
"export_label": "from-gywd",
"create_prs": "prompt",
"milestone_sync": true
}
}
```
</configuration>
<success_criteria>