Skip to content

feat(board): sync linked PRs onto board items via cross-refs#91

Closed
snipcodeit wants to merge 1 commit intomainfrom
issue/76-sync-linked-prs-and-branches-onto-b
Closed

feat(board): sync linked PRs onto board items via cross-refs#91
snipcodeit wants to merge 1 commit intomainfrom
issue/76-sync-linked-prs-and-branches-onto-b

Conversation

@snipcodeit
Copy link
Owner

Summary

  • Add sync_pr_to_board utility to board-sync.md — uses addProjectV2ItemById to add a PR as a GitHub Projects v2 PR-type board item
  • Hook sync_pr_to_board into run.md and pr.md after PR creation (non-blocking throughout)
  • Add board_reconcile step to sync.md that walks cross-refs and calls sync_pr_to_board for all implements (issue→PR) links — idempotent and non-blocking

Closes #76

Milestone Context

  • Milestone: v2 — GitHub Projects Board Management
  • Phase: 14 — Pipeline State Sync
  • Issue: 6 of 9 in milestone

Changes

  • Updated: .claude/commands/mgw/workflows/board-sync.md — added sync_pr_to_board function, board reconciliation pattern, and updated purpose/consumers table
  • Updated: .claude/commands/mgw/run.mdsync_pr_to_board $ISSUE_NUMBER $PR_NUMBER after PR creation in create_pr step
  • Updated: .claude/commands/mgw/pr.mdsync_pr_to_board in update_state step (linked mode), added board-sync.md to execution_context
  • Updated: .claude/commands/mgw/sync.md — new board_reconcile step iterates cross-refs and ensures all PR links have board items; added board-sync.md to execution_context
  • Pulled forward: board.md, issue.md, workflows/state.md from prior milestone issues (Design and scaffold GitHub Projects v2 board with MGW custom fields #71-Surface AI Agent State field on board items during GSD execution #75) since this branch is based on main

Test Plan

  • After mgw:run creates PR, sync_pr_to_board is called — PR appears as board item in GitHub Projects v2
  • After mgw:pr creates PR (linked mode), sync_pr_to_board is called — PR appears as board item
  • mgw:sync board_reconcile step runs — any PR cross-refs without board items are synced
  • If board not configured (node_id missing from project.json), sync_pr_to_board is a silent no-op
  • If GitHub API call fails, sync_pr_to_board returns 0 — pipeline continues uninterrupted
  • addProjectV2ItemById with already-existing PR node ID is idempotent (GitHub returns existing item)

- Add sync_pr_to_board utility to workflows/board-sync.md that calls
  addProjectV2ItemById to add a PR as a GitHub Projects v2 board item
- Hook sync_pr_to_board into run.md after PR creation (non-blocking)
- Hook sync_pr_to_board into pr.md update_state step (linked mode only)
- Add board_reconcile step to sync.md that iterates cross-refs and calls
  sync_pr_to_board for all issue→PR implements links (idempotent, non-blocking)
- Add board-sync.md to execution_context of pr.md and sync.md
- Pull forward board-sync.md, board.md, issue.md, and state.md from prior
  milestone board issues (#71-#75) as this branch is based on main

Closes #76

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@snipcodeit
Copy link
Owner Author

Work included in main via integration merge from milestone-1 branch.

@snipcodeit snipcodeit closed this Mar 1, 2026
@snipcodeit snipcodeit deleted the issue/76-sync-linked-prs-and-branches-onto-b branch March 1, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

slash-commands Changes to slash command files triage-pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync linked PRs and branches onto board items via cross-refs

1 participant