update main branch references#1891
Conversation
|
Bundle Size ChangesNo bundle size changes. |
There was a problem hiding this comment.
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
masterreferences withmainin docs/config/package metadata. - Convert select internal documentation links to relative paths.
- Switch external asset/attribution links to branch-independent
HEADwhere 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 |
| /** | ||
| * 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 |
| /** | ||
| * 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: |
| /** | ||
| * 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: |
What changed
masterreferences withmain.HEADlinks for external raw assets and upstream attribution URLs.Why
The repository default branch moved to
main, but docs/config still had stalemasterreferences.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 --checkrgfor non-vendoredmasterrefs