Skip to content

update main branch references#1891

Open
Juice10 wants to merge 2 commits into
mainfrom
work/update-main-branch-references
Open

update main branch references#1891
Juice10 wants to merge 2 commits into
mainfrom
work/update-main-branch-references

Conversation

@Juice10

@Juice10 Juice10 commented Jun 27, 2026

Copy link
Copy Markdown
Member

What changed

  • Replace remaining repo-owned master references with main.
  • Convert safe internal repo documentation links to relative paths.
  • Use branch-independent HEAD links for external raw assets and upstream attribution URLs.
  • Fix the malformed first-time contributor styleguide link.

Why

The repository default branch moved to main, but docs/config still had stale master references.

Impact

Docs, release guidance, PR comments, and package metadata now point at the correct branch or avoid hard-coded branch names where appropriate. No runtime code behavior changes.

Validation

  • git diff --cached --check
  • Changesets config JSON parse
  • GitHub workflow/comment YAML parse
  • rg for non-vendored master refs
  • Relative link target existence check
  • Prettier check for staged non-minified files

@changeset-bot

changeset-bot Bot commented Jun 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2c2e64c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Juice10
Juice10 marked this pull request as ready for review June 27, 2026 19:00
Copilot AI review requested due to automatic review settings June 27, 2026 19:00
@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Changes

No bundle size changes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates stale master branch references across the repo to main, and adjusts internal documentation links to be branch-agnostic (or relative) so links remain correct after the default branch rename.

Changes:

  • Replace remaining master references with main in docs/config/package metadata.
  • Convert select internal documentation links to relative paths.
  • Switch external asset/attribution links to branch-independent HEAD where appropriate.

Reviewed changes

Copilot reviewed 33 out of 34 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
README.zh_CN.md Convert package links to relative paths; update external raw asset URL to HEAD.
README.md Update external raw asset URL to HEAD.
packages/web-extension/README.md Update external raw asset URL to HEAD.
packages/types/README.md Update external raw asset URL to HEAD.
packages/rrweb/test/integration.test.ts Update upstream reference comments to tree/HEAD.
packages/rrweb/README.md Update external raw asset URL to HEAD.
packages/rrweb-snapshot/src/css.ts Update upstream attribution comment link to blob/HEAD.
packages/rrweb-snapshot/README.md Update external raw asset URL to HEAD.
packages/rrweb-snapshot/package.json Update homepage to tree/main/... to match renamed default branch.
packages/rrweb-player/README.md Fix options table formatting and update guide link to blob/main; update external raw asset URL to HEAD.
packages/rrvideo/README.zh_CN.md Update external raw asset URL to HEAD.
packages/rrvideo/README.md Update external raw asset URL to HEAD.
packages/rrdom/README.md Update external raw asset URL to HEAD.
packages/rrdom-nodejs/README.md Update external raw asset URL to HEAD.
packages/replay/README.md Update external raw asset URL to HEAD.
packages/record/README.md Update external raw asset URL to HEAD.
packages/plugins/rrweb-plugin-sequential-id-replay/README.md Update external raw asset URL to HEAD.
packages/plugins/rrweb-plugin-sequential-id-record/README.md Update external raw asset URL to HEAD.
packages/plugins/rrweb-plugin-network-replay/README.md Update external raw asset URL to HEAD.
packages/plugins/rrweb-plugin-network-record/README.md Update external raw asset URL to HEAD.
packages/plugins/rrweb-plugin-console-replay/README.md Update external raw asset URL to HEAD.
packages/plugins/rrweb-plugin-console-record/src/stringify.ts Update upstream attribution comment link to blob/HEAD.
packages/plugins/rrweb-plugin-console-record/src/error-stack-parser.ts Update upstream attribution comment links to blob/HEAD.
packages/plugins/rrweb-plugin-console-record/README.md Update external raw asset URL to HEAD.
packages/packer/README.md Update external raw asset URL to HEAD.
packages/all/README.md Update external raw asset URL to HEAD.
docs/releases/next-channel.md Update release-process documentation from master to main.
docs/recipes/export-to-video.zh_CN.md Convert GitHub blob/master link to a relative link.
docs/recipes/export-to-video.md Convert GitHub blob/master link to a relative link.
docs/recipes/customize-replayer.zh_CN.md Convert GitHub tree/master link to a relative link.
docs/recipes/customize-replayer.md Convert GitHub tree/master link to a relative link.
CONTRIBUTING.md Update branch reference to main and convert LICENSE link to relative path.
.github/config.yml Fix master link and malformed styleguide link; point both to blob/main.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

};

// Simplified from https://github.com/giuseppeg/postcss-pseudo-classes/blob/master/index.js
// Simplified from https://github.com/giuseppeg/postcss-pseudo-classes/blob/HEAD/index.js
Comment on lines 95 to 97
/**
* forked from https://github.com/moll/json-stringify-safe/blob/master/stringify.js
* forked from https://github.com/moll/json-stringify-safe/blob/HEAD/stringify.js
* to deCycle the object
Comment on lines 2 to 4
/**
* Class StackFrame is a fork of https://github.com/stacktracejs/stackframe/blob/master/stackframe.js
* Class StackFrame is a fork of https://github.com/stacktracejs/stackframe/blob/HEAD/stackframe.js
* I fork it because:
Comment on lines 36 to 38
/**
* ErrorStackParser is a fork of https://github.com/stacktracejs/error-stack-parser/blob/master/error-stack-parser.js
* ErrorStackParser is a fork of https://github.com/stacktracejs/error-stack-parser/blob/HEAD/error-stack-parser.js
* I fork it because:
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.

2 participants