Skip to content

Commit

Permalink
feat: Switch default branch name from master to main
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
Default branch name is `main`
  • Loading branch information
medikoo committed Mar 24, 2024
1 parent d031c56 commit 0321878
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ URL to git repository

##### `branch`

If package is maintaned not at `master` branch, provide branch name
If package is maintaned not at `main` branch, provide branch name

##### `multiPackageRepoName` (required for packages maintained in multi package repositories)

Expand Down
2 changes: 1 addition & 1 deletion lib/setup-repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = memoizee(
? multiPackageReposMeta[packageContext.meta.multiPackageRepoName]
: packageContext.meta;
const { repoUrl } = meta;
const branch = meta.branch || "master";
const branch = meta.branch || "main";
const path = meta.path || packageContext.path;

const { name } = packageContext;
Expand Down

0 comments on commit 0321878

Please sign in to comment.