Linking Gitlab MRs and Github PRs automatically when created manually - #48
Merged
Merged
Conversation
Step 1's own brief re-checked against the code, since a step's prompt carries only its sibling's title, not its body, and step 2 needs the detail to survive the hand-off. One gap found: reconcileMergeRequests preserves openedForTaskId but never sets it for a brand-new row, so a link flow must stamp it explicitly the way forge/createPr.ts#rowFor already does. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds the manual-link half of automatic MR/PR linking: parsePrUrl.ts parses a pasted merge-request/pull-request URL into forge coordinates (by path segment, never by host, since both forges self-host); linkPr.ts fetches it through the same describe*/reconcile* functions the syncs use and stamps taskId/ openedForTaskId onto the target card, since the human pointing at a URL beats whatever key-matching a sync would otherwise guess. Wires the mr:link IPC channel (relay-classified, token stays on the desktop) and adds a "Link existing MR/PR" button + dialog to TaskAgentPanel, shared by desktop and web. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Currently, the tool does not recognize that the MR/PR has been created (when done manually by a user).
Support automatic fetching data to link all PRs/MRs to the task or/and add a some button to trigger such action.