Skip to content

ci(release): Bump getsentry/craft to v3 and update config - #45

Open
sentry-junior[bot] wants to merge 2 commits into
mainfrom
ci/bump-craft-v3
Open

sentry-junior[bot] wants to merge 2 commits into
mainfrom
ci/bump-craft-v3

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

Changes getsentry/craft@v2 → @v3 in .github/workflows/release.yml.

Why: craft's v2 tag 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 while release-blocker issues are open. That's what happened in getsentry/symbolic run 41665569364. getsentry/craft#956 fixed it in 3.9.0, which v3 points at.

Compatibility: v2 → v3 is a major bump. I checked this repo against craft 3.0's breaking changes:

  • .craft.yml doesn't set changelog.includePaths or unownedPaths.
  • There's no nuget target.
  • It relies on automatic version bumping (minVersion 2.21.2, no preReleaseCommand). 3.x now fails if a bumpable target finds nothing to bump. Here the npm target bumps package.json: craft 3.9.0 prepare 99.0.0 --dry-run --no-push logged Version bumped by "npm" target and 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-blocker issues in this repo right now.

Config changes (follow-up commit, so .craft.yml matches craft 3.9.0):

Sets minVersion from "2.21.2" to "3.9.0". Nothing else needs to change: the npm target already handles automatic bumping, and the auto versioning default stays the same.

I ran craft 3.9.0 prepare 99.0.0 --dry-run --no-push before and after this change on a full clone. Both runs bumped package.json and package-lock.json with no new warnings or errors.

via @BYK.

--

View Session in Sentry

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]>
@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
skillet Ready Ready Preview Nov 3, 2026 9:30pm UTC

Request Review

@sentry-junior sentry-junior Bot changed the title ci(release): Bump getsentry/craft to v3 ci(release): Bump getsentry/craft to v3 and update config Nov 3, 2026
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

1 active deployment
Preview — 88d645bb Deployed Nov 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant