Skip to content

fix(github): refresh merged pull requests after ci - #836

Merged
nixuuu merged 1 commit into
devfrom
fix/refresh-merged-pr-status
Nov 15, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/refresh-merged-pr-status

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 15, 2026

Copy link
Copy Markdown
Member

Change

After watch_pr_checks reports that CI passed, the gateway keeps the existing shared pull request producer alive for a short merge follow-up. It probes PR metadata immediately and about every 10 seconds for up to two minutes, using conditional REST requests. If GitHub completes auto-merge, the updated merged state is published through the thread revision so the sidebar and thread summary catch up promptly.

The follow-up stops as soon as the PR is merged or closed, and it fetches the full GraphQL summary only after metadata changes. The regular five-minute linked-summary refresh remains unchanged for other cases.

Verification

  • bun run --filter @canopy/gateway typecheck
  • bun run lint -- apps/gateway/src/github/watch.ts apps/gateway/src/github/watch-probes.ts apps/gateway/src/core/pr-check-watches.ts tests/integration/github-panel-polling.test.ts
  • bun run check:tmp ./tests/integration/github-panel-polling.test.ts (9 passed)
  • bun run check:tmp ./tests/integration/pr-check-watches.test.ts (2 passed)
  • bun run format -- apps/gateway/src/github/watch.ts apps/gateway/src/github/watch-probes.ts apps/gateway/src/core/pr-check-watches.ts tests/integration/github-panel-polling.test.ts

Fixes an earlier change: #803

@nixuuu
nixuuu enabled auto-merge (squash) November 15, 2026 14:11
@nixuuu
nixuuu merged commit f8527a9 into dev Nov 15, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/refresh-merged-pr-status branch November 15, 2026 14:26
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