mirror of
https://github.com/conventional-commits/conventionalcommits.org.git
synced 2026-03-22 12:44:37 -05:00
What type should be used for small improvements? #166
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ybrusentsov on GitHub (Jan 14, 2023).
Sometimes I have changes that are not a new feature itself, but a small addition to current functionality.
feat:andfix:seems like not the best types for this case.I think something like
imp:(an abbreviation ofimprovement:) should fit great in cases like this.CHANGELOGs can generate the improvements section based on these commits.
What do you think?
@prenaissance commented on GitHub (Jan 18, 2023):
I think scoping the commit type would be the solution to that with the current convention
Example:
feat(loading-button): made button disabled while loading@ybrusentsov commented on GitHub (Jan 18, 2023):
Scoped
feattype can be used in this case, but it will force a new minor release according to the docs:@damianopetrungaro commented on GitHub (Jan 25, 2023):
It depends what you are improving @goveo :D
If the improve is a performance issue,
fixshould be the type since also reflects the minor release in SemVer.If the improve you're doing is building a functionality (example changing the color of a button while loading), then it is a
feat:)@javier-godoy commented on GitHub (Feb 12, 2023):
Sometimes it can be argued that the change in question is a fix: if users can open the same file multiple times by clicking the load button repeatedly (because it is not disabled), which is a behavior that does not provide any value to the users and should not be allowed by the application, then disabling the button while loading can be considered more of
fixthan afeat.I've been using conventional-commits mostly with reusable components, and found that the difference between
fixandfeatis clear-cut, and aligns well with SemVer. With applications/products, however, it's a different story:feataligns with MINOR)