Skip to content

Scope reusable PR follow-up owner branch fallback by source-control provider#331

Merged
daniel-lxs merged 1 commit into
developfrom
claude/cranky-dirac-a08eca
Jul 14, 2026
Merged

Scope reusable PR follow-up owner branch fallback by source-control provider#331
daniel-lxs merged 1 commit into
developfrom
claude/cranky-dirac-a08eca

Conversation

@daniel-lxs

Copy link
Copy Markdown
Member

Summary

findReusableGitHubPrFollowUpOwner decides whether an incoming PR/MR follow-up comment attaches to (or snapshot-resumes) an existing task instead of launching a new one. Its payload repo/branch fallback query was not scoped by source-control provider, so a same-named repo full name + branch on another provider could cross-match GitHub work and vice versa — e.g. a GitLab MR follow-up attaching to a task actually working on the identically-named GitHub repo/branch. This is the same latent mismatch #320 fixed in the sibling findActiveGitHubBranchWork.

Changes

No caller changes needed — the sourceControlProvider param (default 'github') already existed and all provider-specific callers already pass it; only this fallback query was missing the condition. The task_pull_requests join path was already provider-scoped.

Validation

  • @roomote/db vitest suite: 261/261 passed (24/24 in github-branch-activity.test.ts, including the 2 new tests)
  • @roomote/sdk vitest suite: 488/488 passed
  • tsc --noEmit, ESLint, and Prettier clean on touched files

🤖 Generated with Claude Code

…rovider

The payload repo/branch fallback in findReusableGitHubPrFollowUpOwner was
not scoped by provider, so a same-named repo/branch on another provider
could cross-match GitHub work and vice versa — the same latent mismatch
fixed for findActiveGitHubBranchWork in #320. Reuse its
payloadProviderCondition helper (legacy payloads without
sourceControlProvider default to 'github') and add mirrored
cross-provider non-match tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@roomote-roomote

roomote-roomote Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

Reviewed fd51aec

@daniel-lxs
daniel-lxs merged commit 4f34fb4 into develop Jul 14, 2026
17 checks passed
@daniel-lxs
daniel-lxs deleted the claude/cranky-dirac-a08eca branch July 14, 2026 18:07
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