Files
kandev/apps/backend/internal/github
João Salavisa d8a9bb79d5 fix(github): heal legacy PR watches so single-repo tasks don't dupe PRs (#785)
After the multi-repo migration, pre-existing github_pr_watches rows kept
repository_id='', so the orchestrator's reconciler (keyed on
(session_id, repository_id)) inserted a second watch under the resolved
id. Both watches polled independently and each created its own
github_task_prs row, surfacing as a "+2 PR" badge on legacy single-repo
tasks. Add a startup backfill mirroring backfillTaskPRsRepositoryID:
dedup the legacy '' rows where a per-repo row exists, then stamp the
remainder from task_repositories.

Co-authored-by: Kandev Agent <agent@kandev.dev>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-02 22:36:58 +01:00
..
2026-03-02 08:54:58 +00:00
2026-03-02 08:54:58 +00:00
2026-03-02 08:54:58 +00:00