Skip to content

Linking Gitlab MRs and Github PRs automatically when created manually - #48

Merged
wdembinski merged 2 commits into
developmentfrom
feat/linking-gitlab-mrs-and-github-prs
Sep 16, 2026
Merged

wdembinski merged 2 commits into
developmentfrom
feat/linking-gitlab-mrs-and-github-prs

Conversation

@wdembinski

Copy link
Copy Markdown
Owner

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.

wdembinski and others added 2 commits September 16, 2026 17:42
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>
@wdembinski
wdembinski merged commit cd8fad5 into development Sep 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant