Commit f5d3445
Update all master branch references to main (#2676)
Closes #2659
The default branch was renamed from `master` to `main` on GitHub. This
PR updates all code references to match.
- **CI workflows**: All 15 workflow files updated — branch triggers,
`BASE_REF`/`BASE_SHA` fallbacks, `refs/heads/` conditions, and comments
- **GitHub Action**: Renamed `ensure-master-docs-safety` →
`ensure-main-docs-safety` (directory + content)
- **Documentation**: ~50 files with GitHub URLs updated from
`/blob/master/` and `/tree/master/` to `/main/`
- **Config files**: Coveralls badge URLs, package.json homepage, rakelib
comments, CLAUDE.md/AGENTS.md references
- [ ] CI workflows trigger correctly on pushes to `main`
- [ ] `detect-changes` fallback uses `origin/main` correctly
- [ ] `ensure-main-docs-safety` action runs on docs-only pushes
- [ ] Benchmark workflow references `main` for Bencher branch tracking
- [ ] Documentation links resolve correctly
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Medium risk because it touches many GitHub Actions workflows and CI
guard logic; a missed branch/ref update could cause workflows not to
trigger or docs-only pushes to incorrectly skip CI.
>
> **Overview**
> Updates the repo-wide default-branch assumption from `master` to
`main`, including documentation links/badges, contributor guidance, and
changelog compare URLs.
>
> Adjusts CI to run against `main`: workflow push triggers and
`refs/heads/*` conditions are switched, docs-only safeguards now use a
renamed `ensure-main-docs-safety` composite action, and tooling
defaults/fallbacks (e.g., `script/ci-changes-detector`, `bin/ci-local`,
actionlint base ref) now compare against `origin/main`.
>
> Updates release/changelog automation to treat `main` as the required
stable release branch and to generate compare links targeting `...main`
(with specs updated accordingly).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1514d64. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
* **Chores**
* Switched default branch references from "master" to "main" across
CI/workflows, scripts, tooling, and release checks so triggers and
defaults target main.
* **Documentation**
* Updated links, examples, badges, guides, and contributor/release
instructions to reference the main branch throughout docs and READMEs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent fc4a11e commit f5d3445
79 files changed
Lines changed: 291 additions & 580 deletions
File tree
- .claude
- agents
- docs
- analysis
- .github
- actions/ensure-master-docs-safety
- workflows
- analysis/monorepo
- bin
- lefthook
- docs
- oss
- api-reference
- building-features
- node-renderer
- configuration
- core-concepts
- migrating
- upgrading/release-notes
- pro
- internal
- contributor-info
- planning
- docs-improvement
- react_on_rails_pro/contributors-info
- testimonials
- packages
- react-on-rails-pro-node-renderer
- react-on-rails
- rakelib
- react_on_rails_pro
- react_on_rails
- rakelib
- spec/react_on_rails
- script
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
692 | | - | |
| 692 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments