Skip to content

ref(github): Drop the issue projection and read close targets from the footer - #4132

Merged
BYK merged 13 commits into
mainfrom
byk/drop-github-issues
Nov 23, 2026
Merged

BYK merged 13 commits into
mainfrom
byk/drop-github-issues

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

junior_github_issues copies the state of Junior's issues from webhooks. Nothing reads state, state_reason, opened_at, or closed_at. The only reader is the close annotation, which fans out to the row's conversation_ids. Those ids are also in the issue body footer that Junior writes, and every issues webhook carries that body.

This drops the table (github migration 0019_drop_github_issues) and its entry in scripts/github-state-baseline.json. When a Junior-authored issue closes, the webhook reads the Conversations from its footer and marks the issue closed in each one that already holds a card for it. When Junior edits an issue body, the new footer keeps the Conversation ids of the body on GitHub, so a later edit does not drop the Conversation that opened the issue.

Guard: a person can edit the footer, so the footer only picks the candidates. The write needs the Conversation's own annotation for the issue key in junior_conversation_annotations, which Junior adds when it opens the issue. An edited footer cannot add a card to another Conversation. The issue author must still be the bot.

#4100 reads this table for its reaction poll, so it needs another source before it can merge.

via @BYK.

--

View Session [Sentry]

@sentry-junior
sentry-junior Bot requested a review from BYK November 23, 2026 21:40
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 23, 2026 10:11pm UTC

Request Review

@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 23, 2026

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Base automatically changed from byk/provider-state-check to main November 23, 2026 22:07
@BYK
BYK enabled auto-merge (squash) November 23, 2026 22:08
# Conflicts:
#	packages/junior-github/migrations/meta/0018_snapshot.json
#	packages/junior-github/migrations/meta/_journal.json
#	packages/junior-github/src/db/schema.ts
#	packages/junior-github/tests/webhook-outcomes.test.ts
#	scripts/github-state-baseline.json

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit af566a6. Configure here.

@BYK
BYK merged commit 446f8be into main Nov 23, 2026
57 checks passed
@BYK
BYK deleted the byk/drop-github-issues branch November 23, 2026 22:25

This branch was successfully deployed

1 active deployment
Preview – junior-docs — af566a6b Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant