Repository navigation
fix(beta): pass --git-ref main so edit links work - #1259
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ovflowd
reviewed
Nov 17, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1259 +/- ##
=======================================
Coverage 93.79% 93.79%
=======================================
Files 294 294
Lines 30476 30476
Branches 3100 3100
=======================================
Hits 28584 28584
Misses 1870 1870
Partials 22 22 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
avivkeller
reviewed
Nov 18, 2026
avivkeller
reviewed
Nov 23, 2026
Signed-off-by: vedchaudhari <vedc2853@gmail.com>
vedchaudhari
force-pushed
the
fix-edit-url
branch
from
November 24, 2026 03:33
a6eebc0 to
3dfe54e
Compare
avivkeller
approved these changes
Nov 25, 2026
avivkeller
enabled auto-merge (squash)
November 25, 2026 19:46
avivkeller
disabled auto-merge
November 26, 2026 16:32
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.
Description
"Edit this page" links on beta.docs.nodejs.org 404, e.g. https://github.com/nodejs/node/edit/HEAD/doc/api/index.md. GitHub can only edit files on a branch, and the beta build never sets
ref, so it stays on the'HEAD'default.This passes
--git-ref mainin the beta build script, so the links become.../edit/main/doc/api/<page>.md. Source links usemaintoo, which is whereHEADpointed anyway.Validation
--git-ref main: the edit link forbuffer.mdishttps://github.com/nodejs/node/edit/main/doc/api/buffer.md(without it,edit/HEAD/...).node --run test,format:checkandlintpass.Related Issues
None found.
Check List
node --run testand all tests passed.node --run format:check&node --run lint.