Skip to content

chore: rename default branch master -> main (in-repo references) - #129

Merged
so5 merged 1 commit into
masterfrom
chore/rename-master-to-main
Sep 3, 2026
Merged

chore: rename default branch master -> main (in-repo references)#129
so5 merged 1 commit into
masterfrom
chore/rename-master-to-main

Conversation

@so5

@so5 so5 commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Purpose

In-repo companion to renaming the default branch mastermain in repo
Settings. GitHub's rename retargets PRs / moves branch protection / adds
redirects but does not edit references to the branch name inside the repo.

Changes (11 files)

Functional — would break on rename:

  • run_test.yml, run_cypress.yml, run_test_windows.yml: push filter
    - '!master'- '!main' (keeps per-push UT/E2E off the default branch).
  • run_test.yml + build_and_deploy.yml: release-type case arm
    master) TYPE=releasemain) (otherwise mainline builds fall through to
    beta and lose :latest + the "Latest" release).
  • jekyll-gh-pages.yml: branches: ["master"]["main"] (GitHub Pages
    doc-site deploy trigger).
  • documentMD/user_guide/.../1_graphview.md + .en.md: design-doc link
    /blob/master//blob/main/.

Cosmetic: comments in build_and_deploy.yml; prose in README.md,
TEST_GUIDE.md, documentMD/design/testing.md, test/README.md.

server/test/app/core/gitOperator.js:51 regex already matches (master|main)
— no source change needed.

Merge sequence

  1. Approve this PR.
  2. Rename mastermain in Settings → General → Default branch (GitHub
    auto-retargets this PR's base to main).
  3. Merge this PR into main immediately (keep a short push/release freeze
    across steps 2–3).

Out of scope: maintenance2023 / maintenance2026 keep their names; their
workflow copies still carry a now-dead master) arm — harmless, tidy later.

🤖 Generated with Claude Code

GitHub's branch rename does not touch in-repo references. Swap every
functional and cosmetic mention of the default branch name:

- workflows: run_test/run_cypress/run_test_windows push filter
  '!master' -> '!main'; run_test & build_and_deploy release-type
  `case` arm master) -> main); jekyll-gh-pages `branches` -> ["main"];
  build_and_deploy comment.
- docs: user_guide graphview .md/.en.md `blob/master/` design-doc link
  -> `blob/main/`; README, TEST_GUIDE.md, documentMD/design/testing.md,
  test/README.md prose.

gitOperator.js:51 regex already matches (master|main); no source change.
Merge alongside / just after the GitHub Settings branch rename.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xw6DdyQhrdTZMjYbKvFZi
@so5
so5 merged commit f3292c9 into master Sep 3, 2026
3 checks passed
@so5
so5 deleted the chore/rename-master-to-main branch September 3, 2026 00:40
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.

1 participant