Skip to content

chore: rename default branch from master to main#120

Merged
DonKirkham merged 1 commit into
masterfrom
chore/rename-default-branch-main
Jul 3, 2026
Merged

chore: rename default branch from master to main#120
DonKirkham merged 1 commit into
masterfrom
chore/rename-default-branch-main

Conversation

@DonKirkham

Copy link
Copy Markdown
Collaborator

Prepares the repo to rename the default branch from `master` to `main`.

Changes

  • .github/workflows/ci.yml — `push`/`pull_request` branch filters `master` → `main`
  • .claude/skills/spfx-release/SKILL.md — release commands/narrative `master` → `main`
  • build-and-push.md — environment protection doc reference `master` → `main`

`build-and-push.yaml` is tag-triggered and unaffected. `CONTRIBUTING.md` already referenced `main`.

Follow-up (after merge)

Rename the branch on GitHub (`master` → `main`), which auto-retargets open PRs, migrates branch protection, and sets the default branch.

Note: this PR itself won't trigger `ci` because its base (`master`) no longer matches the new `main`-only filter — expected for the direct switch.

🤖 Generated with Claude Code

Update CI trigger, release skill, and publish docs to reference the
main branch ahead of renaming the default branch on GitHub.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 3, 2026 15:12
@DonKirkham DonKirkham merged commit 2cfb3f8 into master Jul 3, 2026
1 check passed
@DonKirkham DonKirkham deleted the chore/rename-default-branch-main branch July 3, 2026 15:13

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

Prepares the repository for renaming the default branch from master to main by updating branch-name references in CI and documentation so workflows and operational instructions align with the new default branch.

Changes:

  • Update CI workflow trigger branch filters from master to main.
  • Update release automation skill documentation to use main in git commands and narrative.
  • Update Docker publishing documentation to reference main for protected-branch environment publishing.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/ci.yml Switches push/pull_request branch filters to main for CI triggering.
.claude/skills/spfx-release/SKILL.md Updates release-branch/tagging instructions to use main instead of master.
build-and-push.md Updates environment protection guidance to refer to main for Docker publishing.

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

Comment thread .github/workflows/ci.yml
Comment on lines 4 to +9
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
Comment thread build-and-push.md
Comment on lines 12 to +14
7. Open Environments in Settings of the Github project: https://github.com/pnp/docker-spfx/settings/environments
8. Create a new invironment called `DockerHubProd`
9. Add necessary protection to the environment. For example, you can choose `Protected branches only` so only commits merged to `master` branch will be able to have access for publishing images to Docker Hub
9. Add necessary protection to the environment. For example, you can choose `Protected branches only` so only commits merged to `main` branch will be able to have access for publishing images to Docker Hub
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