Repository navigation
ref(github): Drop the issue projection and read close targets from the footer - #4132
Merged
Merged
Conversation
Co-Authored-By: BYK <[email protected]>
…e footer Co-Authored-By: BYK <[email protected]>
Co-Authored-By: BYK <[email protected]>
…yk/drop-github-issues Co-Authored-By: BYK <[email protected]>
Co-Authored-By: BYK <[email protected]>
Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: BYK <[email protected]>
…yk/drop-github-issues Co-Authored-By: BYK <[email protected]>
BYK
approved these changes
Nov 23, 2026
Co-Authored-By: BYK <[email protected]>
Co-Authored-By: BYK <[email protected]>
…yk/drop-github-issues Co-Authored-By: BYK <[email protected]>
Co-Authored-By: BYK <[email protected]>
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
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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.
22 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

junior_github_issuescopies the state of Junior's issues from webhooks. Nothing readsstate,state_reason,opened_at, orclosed_at. The only reader is the close annotation, which fans out to the row'sconversation_ids. Those ids are also in the issue body footer that Junior writes, and everyissueswebhook carries that body.This drops the table (github migration
0019_drop_github_issues) and its entry inscripts/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]