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

feat(land): avoid landing on the wrong default branch #586

Merged
merged 2 commits into from
Nov 3, 2021

Conversation

targos
Copy link
Member

@targos targos commented Oct 31, 2021

Fail if the user is trying to land a commit on "master" or "main", and
the default branch name doesn't match.

Fail if the user is trying to land a commit on "master" or "main", and
the default branch name doesn't match.
@targos
Copy link
Member Author

targos commented Oct 31, 2021

Example:

$ /Users/targos/git/nodejs/node-core-utils/bin/git-node land 40415
   ⚠  You are running git-node-land on `main`, but the default branch is `master`.

@codecov

This comment has been minimized.

@targos targos merged commit 48d4641 into nodejs:main Nov 3, 2021
@targos targos deleted the check-master-or-main branch November 3, 2021 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants