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

Built in types #5

Closed
wants to merge 2 commits into from
Closed

Built in types #5

wants to merge 2 commits into from

Conversation

DanielVoogsgerd
Copy link
Contributor

A proposed solution for allowing built-in commit types like amend/squash/fixup commits.

See #4

Fix: #4

Using a guard clause allows us to whitelist multiple distinct formats.
Instead of getting a large or-ed if statement or nested if-statements
Git has built-in commit message formats for amend/fixup/squash commits.
These are mutually exclusive from conventional commits. So a different
format needs to be allowed.

BREAKING CHANGE: People might expect these commits to fail.
@DanielVoogsgerd
Copy link
Contributor Author

Apologies, I pushed code for a different PR to this branch. Should be fine now.

@DanielVoogsgerd
Copy link
Contributor Author

I understand that keeping close to conventional commits might be preferable to supporting these committypes. With --no-verify it should be possible to use the commit type locally until you rebase. I'll elaborate a bit in issue #4, but I'll close this PR for now.

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.

Fixup / Autosquash commits
2 participants