Repository navigation
chore: update dependency oxfmt to ^0.62.0 - #261
Merged
Merged
Conversation
nownabe
added a commit
that referenced
this pull request
Sep 20, 2026
## Why Closes #265. Draft comments and suggestions keep the line numbers of the head sha they were created at (`anchor.sha`), but the Planner posted them with `commit_id = current headSha` and those stale lines. After the author pushed during a review, drafts landed on the wrong text on GitHub, suggestions applied to the wrong lines via "Apply suggestion", or the whole review batch failed with 422 when a stale line fell outside a hunk. The ADRs never said which coordinate system the Executor posts in; ADR 0003 now does. ## What - **Planner** re-anchors every `CreateComment` from `anchor.sha` to the current head using the same line map ADR 0004 uses for display, and posts (and routes in-diff/out-of-diff) with the mapped range. `Comment.anchor` in `LocalState` stays immutable; only the posted copy is rebased. - **`RejectComment` step**: a draft whose mapping is `outdated` never reaches GitHub and returns to `draft + lastError` with a clear message, so the rest of the submission still goes out and the batch cannot 422 on stale lines. - **Remote fetcher** also loads every anchored path at the head sha. Nothing fetched `(headSha, path)` before, so the line map (display re-anchoring included) had no target side. - **Suggestion drafts** carry their edit's `baseSha` instead of the current head, and submit refreshes first so both shas' sources are available for the mapping. - **ADR 0003** §5/§6: posted coordinates are the current head's; `RejectComment` semantics. - Tests: draft at sha A → head advances to B with lines inserted above → submit posts the mapped line; unmappable draft is refused while mappable ones post; head-sha contents are fetched; pending suggestions carry `baseSha`. ### Tooling / CI (separate commits) - `style:` reformats two untouched test files that `oxfmt` 0.62 (pinned since #261) flagged. - `chore(tooling):` the shared `Common Checks / oxfmt` job runs the oxfmt version hardcoded in `nownabe/workflows` at the pinned sha (0.59.0), which disagrees with this repo's 0.62.0 pin, so a branch that passes `bun run check:format` failed CI. This bumps the repo pin to 0.68.0 (mise.toml, package.json, lockfiles), moves the shared-workflow pin to current main (also 0.68.0), and reformats the one file 0.68 changes. - `ci:` moving the shared-workflow pin made the `GitHub Workflow` job run zizmor 1.30.1, which flagged pre-existing issues: three hash pins whose `# vN` comment drifted from the pinned commit (fixed to the exact tags), and the `./` reusable-workflow reference. actionlint 1.7.12 (latest; what CI runs) rejects the `$/` syntax zizmor wants, so that one finding is suppressed inline. ## How to verify 1. Draft a comment near the end of a changed `.md`, and a suggestion in another file. 2. Push a commit that inserts 10+ lines above them, then reload Bark (or refresh via the debug FAB). 3. Submit: on github.com the comment sits on the original sentence and "Apply suggestion" edits the right lines. 4. Delete a drafted line upstream instead and submit: only that draft returns with "Could not map the commented lines to the current head commit…", the others post.
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 PR contains the following updates:
^0.61.0→^0.62.0Release Notes
oxc-project/oxc (oxfmt)
v0.62.0Compare Source
🐛 Bug Fixes
e6e584boxfmt: Type jsdoc. enum options (#25008) (leaysgur)Configuration
📅 Schedule: (in timezone Asia/Tokyo)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.