Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

support "main" as default branch #9

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

dbushong
Copy link
Contributor

This change is non-breaking as it still falls back on "master".

A number of projects are switching to using "main" as their default branch; this change supports "main" if that branch exists, and falls back on "master" if it doesn't. (But you have to have one of them)

Keeping in the spirit of this tool's zero-configuration and opinionated branch naming, it does not support any arbitrary main branch, just those two.


This PR was started by: git wf pr

non-breaking as it still falls back on "master"
@@ -1,16 +1,22 @@
# Branch Workflow CLI

A cli that provides a set of `git wf` subcommands which simplify dealing with
feature branches & GitHub pull requests. Does not require a GH API token, as
feature branches & GitHub pull requests. Does not require a GH API token, as
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran prettier on this (somewhat unintentionally), hence all the formatting changes.


log('merge-back is clean');

if (origBranch !== 'master') await git.checkout(origBranch);

return true;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this was for originally, but tsc didn't like it

@dbushong dbushong merged commit 6a5375c into master Oct 23, 2020
@dbushong dbushong deleted the dbushong/feature/master/support-main branch October 23, 2020 17:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants