Repository navigation
ci(release): Bump craft to 3.9.0 and update config - #251
Merged
Merged
Conversation
Co-Authored-By: BYK <[email protected]>
Co-Authored-By: BYK <[email protected]>
BYK
added a commit
to getsentry/junior
that referenced
this pull request
Nov 25, 2026
…4304) A Junior PR in a repo that requires no review never gets a "Ready to merge" Inbox item, because the merge action needs an approval. Such PRs (for example getsentry/skillet#45 and getsentry/platformicons#251) are clean and mergeable but never show in Code · Mine's "Waiting on you". The merge action now follows GitHub's merge state: the PR is open, not a draft, auto-merge is off, the state is `clean`, no reviewer still requests changes, and GitHub requests no review. A repo that requires a review reports `blocked` until someone approves, so it keeps today's behavior. Junior still never approves or merges. `GitHubPullRequestMergeState.approved` becomes `reviewOutcome` (`approved`, `changesRequested`, or unset), because the action now has to tell "no approval" apart from "a reviewer requests changes". ### A pending review request comes first When GitHub still requests a review from a person or a team, the action is never `merge`, even when the state is `clean`: - A request for the requester gives the existing `review` action ("Review requested"). - A request for only someone else, or a team, gives no item. The PR waits on that reviewer. The new `reviewPending` flag counts every node of `reviewRequests`, not only `requestedReviewers`, because a team that the App cannot read comes back with no login. This also applies where GitHub requires a review: an approved PR that still has a pending request asks for that review, not the merge. ### Wording With no approval, the item keeps the `Ready to merge · #N` title and its text says: > GitHub says that #N can merge with no review. Review it, then merge it. The dashboard keys the kind, icon, and Code · Mine head off the title (`askKind.tsx`, `inboxAsks.tsx`, `inboxModel.ts`, `codeChangeHead.ts`). The Inbox hides item text only when it repeats the head (`textRepeatsHead`), so this text shows on the row and makes clear that nobody reviewed the PR. The text stays true after a later approval, which matters because the item changes only when the action changes. ### Dismissed items The action stays `merge`, so an item that a person dismissed, such as getsentry/sentry-rust#1400's, does not come back. Existing PRs get the new action on their next webhook. ### `design/github.md` The rule takes the approved text. @BYK, the last sentence is new and mirrors your answer about pending reviews; tweak it as you like: > When a review is requested and still pending, the PR asks for that review instead, even where the repo allows merging without one. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A8f9e8b3ac538972e39c68bd58906fb80 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A8f9e8b3ac538972e39c68bd58906fb80) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A8f9e8b3ac538972e39c68bd58906fb80/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
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.
This bumps the release workflow's pinned
getsentry/craftaction from 2.19.0 (c6e2f049, labeled# v2) to 3.9.0 (2e29b081).Why: craft's "Check release blockers" step used to ask GitHub to cancel the run and then exit 0, so the action kept going and could still prepare a release and open a getsentry/publish issue while a
release-blockerissue was open (seen in getsentry/symbolic). getsentry/craft#956 fixed this in 3.9.0: the step now fails right away, and it also fails if the blocker lookup errors.Compatibility with craft 3.x:
version,force) are unchanged in 3.9.0; releases between only added optional inputs..craft.ymldoesn't setchangelog.includePaths/unownedPaths, and there's no nuget target.minVersionis 2.21.7 with nopreReleaseCommand, so this repo relies on automatic version bumping. In 3.x that throws if no target finds a version file to bump (2.x only warned). Here the npm target bumpspackage.json, so it's fine.prepare 99.0.0 --dry-run --no-pushon currentmaster. The npm target bumpedpackage.jsonand the run finished without errors.There are no open
release-blockerissues in this repo right now. Once this lands, any open one stops releases until it's closed orforceis set.Config changes (follow-up commit, so
.craft.ymlmatches craft 3.9.0):Sets
minVersionfrom 2.21.7 to 3.9.0. Nothing else needs to change: the repo already uses automatic bumping, with the npm target bumpingpackage.json, and already gets theautoversioning default.I ran craft 3.9.0
prepare 99.0.0 --dry-run --no-pushbefore and after this change on a full clone. Both runs bumped the same files with no new warnings or errors.via @BYK.
--
View Session in Sentry