Skip to content

ci: rename default branch from dev to main - #1399

Open
lmcmz wants to merge 2 commits into
devfrom
193-rename-default-branch-dev-to-main
Open

ci: rename default branch from dev to main#1399
lmcmz wants to merge 2 commits into
devfrom
193-rename-default-branch-dev-to-main

Conversation

@lmcmz

@lmcmz lmcmz commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update all GitHub Actions workflows to use main instead of dev as the default/target branch
  • Update .gitmodules submodule branch from dev to main
  • Update scripts/update-submodule-refs.sh fallback branch from dev to main
  • Update extension-build.yml to treat main branch as production environment
  • Add legacy-main to allowed branch lists in auto-link-issue.yml and CLAUDE.md
  • Update /create-pr command docs to reflect new default target branch

Notes

  • android.yml: dev build type references are Gradle flavors (debug/dev/release), NOT branch names — intentionally left unchanged
  • extension-e2e.yml: dev/pro are build targets, NOT branch names — intentionally left unchanged
  • After merging, the GitHub repo settings need to be updated to set main as the default branch and rename old main to legacy-main

Test plan

  • Verify CI workflows trigger correctly on main branch after the branch rename
  • Verify submodule update workflow defaults work with new branch name
  • Verify extension build correctly detects main as production environment

🤖 Generated with Claude Code

Closes #193

Update all CI workflows, scripts, and configuration to use main as the
default development branch. The old main branch will become legacy-main.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Closes #193
@lmcmz
lmcmz requested a review from a team as a code owner March 30, 2026 03:22
@github-actions

github-actions Bot commented Mar 30, 2026

Copy link
Copy Markdown

PR Summary

Updated all GitHub Actions workflows, scripts, and configuration files to use main as the default development branch instead of dev. This includes modifying branch triggers, submodule configurations, and documentation. Additionally upgraded the AI reviewer model from claude-opus-4-5-20251101 to claude-opus-4-6-20260327 in the presubmit workflow. Added legacy-main to allowed branch lists to accommodate the renamed old main branch.

Changes

File Summary
.claude/commands/create-pr.md Changed the default target branch for the /create-pr command from dev to main in both the description and argument documentation.
.github/workflows/auto-link-issue.yml Added legacy-main to the mainBranches array that skips issue verification, alongside existing main, master, dev, and develop branches.
.github/workflows/code-analysis.yml Changed push and pull_request branch triggers from dev to main for CodeQL analysis workflow.
.github/workflows/dependency-review.yml Changed pull_request target branch from dev to main for dependency review workflow.
.github/workflows/extension-build.yml Updated environment detection logic to treat main branch as production environment, adding github.ref_name == 'main' condition before the existing master check.
.github/workflows/lint.yml Removed dev from the push and pull_request branch triggers, keeping only main and release/* patterns.
.github/workflows/packages.yml Removed dev from push and pull_request branch triggers for the packages workflow, keeping main and release/*.
.github/workflows/presubmit.yml Removed dev from push branch triggers and upgraded the LLM_MODEL from claude-opus-4-5-20251101 to claude-opus-4-6-20260327.
.github/workflows/react-native.yml Removed dev from push and pull_request branch triggers, keeping only main and release/* patterns.
.github/workflows/submodule-update.yml Changed default values for ios_ref and android_ref inputs from dev to main. Updated base_branch default to main and removed dev from the options list.
.github/workflows/submodule-validate.yml Removed dev from push branch triggers, keeping main and release/* patterns.
.gitmodules Changed the branch reference for apps/react-native/android submodule from dev to main.
CLAUDE.md Updated /create-pr command documentation to reflect main as the default target branch. Added legacy-main to the allowed branches list that don't require issue numbers. Removed example showing PR to main as a separate target.
scripts/update-submodule-refs.sh Changed the fallback branch from dev to main in the update_submodule function and updated the script's documentation comment accordingly.

autogenerated by presubmit.ai

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚨 Pull request needs attention.

Review Summary

Commits Considered (1)
  • dca4b20: ci: rename default branch from dev to main

Update all CI workflows, scripts, and configuration to use main as the
default development branch. The old main branch will become legacy-main.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Closes #193

Files Processed (14)
  • .claude/commands/create-pr.md (2 hunks)
  • .github/workflows/auto-link-issue.yml (1 hunk)
  • .github/workflows/code-analysis.yml (1 hunk)
  • .github/workflows/dependency-review.yml (1 hunk)
  • .github/workflows/extension-build.yml (1 hunk)
  • .github/workflows/lint.yml (1 hunk)
  • .github/workflows/packages.yml (1 hunk)
  • .github/workflows/presubmit.yml (1 hunk)
  • .github/workflows/react-native.yml (1 hunk)
  • .github/workflows/submodule-update.yml (2 hunks)
  • .github/workflows/submodule-validate.yml (1 hunk)
  • .gitmodules (1 hunk)
  • CLAUDE.md (2 hunks)
  • scripts/update-submodule-refs.sh (2 hunks)
Actionable Comments (1)
  • scripts/update-submodule-refs.sh [67-68]

    typo: "Outdated comment references old branch name."

Skipped Comments (0)

Comment on lines 67 to +68
# Use ref configured in .gitmodules (dev)
ref=$(git config -f .gitmodules "submodule.${label}.branch" || echo "dev")
ref=$(git config -f .gitmodules "submodule.${label}.branch" || echo "main")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The comment on line 67 still says (dev) but the code now defaults to main. The comment should be updated to match the new default branch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Closes #193

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

Review Summary

Commits Considered (1)
  • b433799: ci: upgrade ai-reviewer model to Claude Opus 4.6

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Closes #193

Files Processed (1)
  • .github/workflows/presubmit.yml (2 hunks)
Actionable Comments (0)
Skipped Comments (0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Send Workflow] Accessibility Check

1 participant