Repository navigation
ci(release): Bump getsentry/craft to v3 and update config - #45
Open
sentry-junior[bot] wants to merge 2 commits into
Open
sentry-junior[bot] wants to merge 2 commits into
sentry-junior[bot] wants to merge 2 commits into
Conversation
The v2 tag points at craft 2.35.1, whose release-blocker check only requests run cancellation and keeps going, so a release can still open a publish request while release-blocker issues are open. getsentry/craft#956 fixed this in 3.9.0, which v3 points at. Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 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.
Changes
getsentry/craft@v2→@v3in.github/workflows/release.yml.Why: craft's
v2tag points at 2.35.1. Its "Check release blockers" step only asks GitHub to cancel the run and then exits 0, so the release keeps going and can open a getsentry/publish request whilerelease-blockerissues are open. That's what happened in getsentry/symbolic run 41665569364. getsentry/craft#956 fixed it in 3.9.0, whichv3points at.Compatibility: v2 → v3 is a major bump. I checked this repo against craft 3.0's breaking changes:
.craft.ymldoesn't setchangelog.includePathsorunownedPaths.minVersion2.21.2, nopreReleaseCommand). 3.x now fails if a bumpable target finds nothing to bump. Here the npm target bumpspackage.json: craft 3.9.0prepare 99.0.0 --dry-run --no-pushloggedVersion bumped by "npm" targetand succeeded.Inputs, secrets, and permissions for the action and reusable workflows are the same in v2 and v3, or only gained optional additions.
There are no open
release-blockerissues in this repo right now.Config changes (follow-up commit, so
.craft.ymlmatches craft 3.9.0):Sets
minVersionfrom "2.21.2" to "3.9.0". Nothing else needs to change: the npm target already handles automatic bumping, and theautoversioning default stays the same.I ran craft 3.9.0
prepare 99.0.0 --dry-run --no-pushbefore and after this change on a full clone. Both runs bumpedpackage.jsonandpackage-lock.jsonwith no new warnings or errors.via @BYK.
--
View Session in Sentry