feat(board): sync project.json milestones into board items on project init/extend#88
Merged
snipcodeit merged 1 commit intomainfrom Mar 1, 2026
Merged
Conversation
…nd extend Adds sync_milestone_to_board step to mgw:project command. After issues are created (both init and extend modes), each issue is added to the GitHub Projects v2 board as an item with Milestone, Phase, and GSD Route fields set. Board item IDs are stored in project.json per issue (board_item_id field). Non-blocking: any GraphQL failure logs a warning and the pipeline continues. Sync is skipped silently when board is not configured or custom fields are not set up. Closes #73 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This was referenced Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #73
Milestone Context
Changes
commands/project.md(runtime:~/.claude/commands/mgw/project.md) — addedsync_milestone_to_boardstep betweencreate_project_boardandwrite_project_jsonImplementation Details
The new
sync_milestone_to_boardstep:project.project_board.node_idandproject.project_board.fieldsfrom project.jsonISSUE_RECORDS(populated increate_issues)addProjectV2ItemById, then callsupdateProjectV2ItemFieldValuefor Milestone (TEXT), Phase (TEXT), and GSD Route (SINGLE_SELECT) fieldsITEM_ID_MAPbash arraywrite_project_jsondecodesITEM_ID_MAPintoITEM_ID_MAP_DICTand writesboard_item_idper issue recordSkip conditions (silent):
PROJECT_NUMBERis empty (board not created)BOARD_NODE_IDis empty (board exists but fields not configured via/mgw:board create)Error handling: each GraphQL call uses
|| BOARD_SYNC_WARNINGS+=(...)to accumulate warnings. All warnings are printed after the loop. Pipeline never halts on board sync failure.Test Plan