Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "main" as a default "baseBranch" #1736

Merged
merged 2 commits into from
Jan 21, 2021
Merged

Support "main" as a default "baseBranch" #1736

merged 2 commits into from
Jan 21, 2021

Conversation

hipstersmoothie
Copy link
Collaborator

@hipstersmoothie hipstersmoothie commented Jan 20, 2021

Release Notes

Many communities, both on GitHub and in the wider Git community, are considering renaming the default branch name of their repository from master to main.

This pull request add default support for a main branch instead of master. If main is detected then that will be used as the baseBranch without the need for any configuration.

Why

The community is shifting.

Todo:

  • Add tests
  • Add docs

Change Type

Indicate the type of change your pull request is:

  • documentation
  • patch
  • minor
  • major

🐤 Download canary assets:

auto-linux-canary.1736.21358.gz
auto-macos-canary.1736.21358.gz
auto-win.exe-canary.1736.21358.gz

📦 Published PR as canary version: under canary scope @auto-canary@10.12.0-canary.1736.21358.0

✨ Test out this PR locally via:

npm install @auto-canary/bot-list@10.12.0-canary.1736.21358.0
npm install @auto-canary/auto@10.12.0-canary.1736.21358.0
npm install @auto-canary/core@10.12.0-canary.1736.21358.0
npm install @auto-canary/package-json-utils@10.12.0-canary.1736.21358.0
npm install @auto-canary/all-contributors@10.12.0-canary.1736.21358.0
npm install @auto-canary/brew@10.12.0-canary.1736.21358.0
npm install @auto-canary/chrome@10.12.0-canary.1736.21358.0
npm install @auto-canary/cocoapods@10.12.0-canary.1736.21358.0
npm install @auto-canary/conventional-commits@10.12.0-canary.1736.21358.0
npm install @auto-canary/crates@10.12.0-canary.1736.21358.0
npm install @auto-canary/docker@10.12.0-canary.1736.21358.0
npm install @auto-canary/exec@10.12.0-canary.1736.21358.0
npm install @auto-canary/first-time-contributor@10.12.0-canary.1736.21358.0
npm install @auto-canary/gem@10.12.0-canary.1736.21358.0
npm install @auto-canary/gh-pages@10.12.0-canary.1736.21358.0
npm install @auto-canary/git-tag@10.12.0-canary.1736.21358.0
npm install @auto-canary/gradle@10.12.0-canary.1736.21358.0
npm install @auto-canary/jira@10.12.0-canary.1736.21358.0
npm install @auto-canary/maven@10.12.0-canary.1736.21358.0
npm install @auto-canary/microsoft-teams@10.12.0-canary.1736.21358.0
npm install @auto-canary/npm@10.12.0-canary.1736.21358.0
npm install @auto-canary/omit-commits@10.12.0-canary.1736.21358.0
npm install @auto-canary/omit-release-notes@10.12.0-canary.1736.21358.0
npm install @auto-canary/pr-body-labels@10.12.0-canary.1736.21358.0
npm install @auto-canary/released@10.12.0-canary.1736.21358.0
npm install @auto-canary/s3@10.12.0-canary.1736.21358.0
npm install @auto-canary/slack@10.12.0-canary.1736.21358.0
npm install @auto-canary/twitter@10.12.0-canary.1736.21358.0
npm install @auto-canary/upload-assets@10.12.0-canary.1736.21358.0
npm install @auto-canary/vscode@10.12.0-canary.1736.21358.0
# or 
yarn add @auto-canary/bot-list@10.12.0-canary.1736.21358.0
yarn add @auto-canary/auto@10.12.0-canary.1736.21358.0
yarn add @auto-canary/core@10.12.0-canary.1736.21358.0
yarn add @auto-canary/package-json-utils@10.12.0-canary.1736.21358.0
yarn add @auto-canary/all-contributors@10.12.0-canary.1736.21358.0
yarn add @auto-canary/brew@10.12.0-canary.1736.21358.0
yarn add @auto-canary/chrome@10.12.0-canary.1736.21358.0
yarn add @auto-canary/cocoapods@10.12.0-canary.1736.21358.0
yarn add @auto-canary/conventional-commits@10.12.0-canary.1736.21358.0
yarn add @auto-canary/crates@10.12.0-canary.1736.21358.0
yarn add @auto-canary/docker@10.12.0-canary.1736.21358.0
yarn add @auto-canary/exec@10.12.0-canary.1736.21358.0
yarn add @auto-canary/first-time-contributor@10.12.0-canary.1736.21358.0
yarn add @auto-canary/gem@10.12.0-canary.1736.21358.0
yarn add @auto-canary/gh-pages@10.12.0-canary.1736.21358.0
yarn add @auto-canary/git-tag@10.12.0-canary.1736.21358.0
yarn add @auto-canary/gradle@10.12.0-canary.1736.21358.0
yarn add @auto-canary/jira@10.12.0-canary.1736.21358.0
yarn add @auto-canary/maven@10.12.0-canary.1736.21358.0
yarn add @auto-canary/microsoft-teams@10.12.0-canary.1736.21358.0
yarn add @auto-canary/npm@10.12.0-canary.1736.21358.0
yarn add @auto-canary/omit-commits@10.12.0-canary.1736.21358.0
yarn add @auto-canary/omit-release-notes@10.12.0-canary.1736.21358.0
yarn add @auto-canary/pr-body-labels@10.12.0-canary.1736.21358.0
yarn add @auto-canary/released@10.12.0-canary.1736.21358.0
yarn add @auto-canary/s3@10.12.0-canary.1736.21358.0
yarn add @auto-canary/slack@10.12.0-canary.1736.21358.0
yarn add @auto-canary/twitter@10.12.0-canary.1736.21358.0
yarn add @auto-canary/upload-assets@10.12.0-canary.1736.21358.0
yarn add @auto-canary/vscode@10.12.0-canary.1736.21358.0

Base automatically changed from master to main January 20, 2021 19:54
@adierkens adierkens added the minor Increment the minor version when merged label Jan 20, 2021
@codecov
Copy link

codecov bot commented Jan 20, 2021

Codecov Report

Merging #1736 (4f534da) into main (75471fa) will decrease coverage by 0.19%.
The diff coverage is 61.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1736      +/-   ##
==========================================
- Coverage   80.38%   80.19%   -0.20%     
==========================================
  Files          63       63              
  Lines        4890     4898       +8     
  Branches     1068     1120      +52     
==========================================
- Hits         3931     3928       -3     
- Misses        656      666      +10     
- Partials      303      304       +1     
Impacted Files Coverage Δ
packages/cli/src/parse-args.ts 97.29% <ø> (ø)
packages/core/src/changelog.ts 95.52% <ø> (ø)
packages/core/src/types.ts 100.00% <ø> (ø)
packages/core/src/utils/get-current-branch.ts 58.33% <ø> (ø)
plugins/npm/src/index.ts 74.04% <ø> (ø)
packages/core/src/auto.ts 77.90% <55.55%> (-0.90%) ⬇️
packages/core/src/git.ts 88.10% <71.42%> (-0.22%) ⬇️
packages/core/src/release.ts 94.26% <100.00%> (-0.07%) ⬇️
packages/core/src/utils/exec-promise.ts 76.92% <0.00%> (-2.57%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 75471fa...4f534da. Read the comment docs.

@hipstersmoothie hipstersmoothie merged commit be24135 into main Jan 21, 2021
@hipstersmoothie hipstersmoothie deleted the support-main branch January 21, 2021 21:53
@adierkens
Copy link
Collaborator

🚀 PR was released in v10.12.0 🚀

@adierkens adierkens added the released This issue/pull request has been released. label Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants