Skip to content

Commit 456ca21

Browse files
bluwyAndarist
andauthored
Change defaultBranch default to main (#248)
* Change defaultBranch default to main * Update .changeset/curly-mirrors-own.md --------- Co-authored-by: Mateusz Burzyński <[email protected]>
1 parent 1763058 commit 456ca21

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/curly-mirrors-own.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@manypkg/cli": minor
3+
---
4+
5+
Change the default value of the `defaultBranch` config from `"master"` to `"main"`

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ Manypkg supports a number of options. Options can be provided using the `manypkg
9494

9595
### `defaultBranch`
9696

97-
Used by the [Incorrect `repository` field](#incorrect-repository-field) rule to determine the correct name for repositories. The default value is `master`.
97+
Used by the [Incorrect `repository` field](#incorrect-repository-field) rule to determine the correct name for repositories. The default value is `main`.
9898

9999
```json
100100
{
101101
"manypkg": {
102-
"defaultBranch": "master"
102+
"defaultBranch": "main"
103103
}
104104
}
105105
```

packages/cli/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type PackagesWithConfig = Packages & {
2525
};
2626

2727
let defaultOptions = {
28-
defaultBranch: "master",
28+
defaultBranch: "main",
2929
};
3030

3131
let runChecks = (

0 commit comments

Comments
 (0)