Skip to content

feat(github): Keep drafts that a person marks ready - #3350

Closed
sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/keep-requested-drafts
Closed

sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/keep-requested-drafts

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Why: since #3250, the Watch of a Junior draft marks it ready when the required checks pass. That also happens to drafts that are drafts on purpose. getsentry/sentry-javascript's AGENTS.md says "Always open PRs as draft" so the requester can review first. Junior opened getsentry/sentry-javascript#26352 as a draft for that reason, then marked it ready 4 minutes later and requested reviews. Reported by @JPeer264.

Fix: github_createPullRequest gets an optional keep_draft. Junior sets it on a draft when the repo's instructions or the requester ask for a draft, or say that a person marks it ready. That draft's Watch does not get pull_request.checks.recovered, so Junior never wakes up to mark it ready. Failed checks, reviews, and the review request on ready_for_review work as before. Drafts without keep_draft keep the #3250 behavior.

The choice is made when the PR is created, while the repo's AGENTS.md is in context. A rule in the checks-passed guidance would depend on the later turn still seeing it.

Limits: no eval covers the keep_draft choice, because no behavioral eval creates a PR end to end yet. The unit test covers only the Watch shape.

via @mydea.

--

View Session [Sentry]

Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
@sentry-junior
sentry-junior Bot requested a review from mydea November 13, 2026 11:00
@vercel

vercel Bot commented Nov 13, 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 13, 2026 11:00am UTC

Request Review

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

blocking since we can do a more flexible approach

@sentry-junior

sentry-junior Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #3380. Instead of a per-PR keep_draft flag, a draft whose changed files have CODEOWNERS owners now stays a draft.

@sentry-junior sentry-junior Bot closed this Nov 13, 2026

This branch was successfully deployed

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

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants