Determine baseBranch on init

Author: tpluscodeCreated May 18, 2022Updated Aug 13, 2026

Affected Packages

pkg:@changesets/cli

Problem

Running changes init creates a config with "baseBranch": "main" regardless of what the default branch actually is

Proposed solution

It would be nice if the settings determined the default branch and initialised the settings file accordingly