conventionalcommits.org icon indicating copy to clipboard operation
conventionalcommits.org copied to clipboard

What prefix to use for visual/content changes?

Open runofthemillgeek opened this issue 5 years ago • 5 comments

I have two questions here:

  1. For content changes that involves purely the change in text/i18n texts, what prefix makes sense? Such changes, IMO, shouldn't warrant "feat". The closest I've seen is "docs" but um, that doesn't seem logical.
  2. For style changes (e.g. color, font-size etc.), does it count as "feat"? I used to initially confuse "style" with such changes but realized later that it concerned the style of the code.

runofthemillgeek avatar Mar 13 '20 11:03 runofthemillgeek

It depends on the point of view of the commit.

If the change introduced, for example, new language support to the i18n then it'd be a feat, otherwise, it may also be a fix if there's typo.

And the same principle is valid fot rhe second one as well :)

damianopetrungaro avatar Mar 15 '20 20:03 damianopetrungaro

@damianopetrungaro Understand how it can be a feat for i18n changes but if it's merely copy change that involves say a tone change and if I'm using tools like semantic release, that'd mean a major version bump and I think that's a little too much. What are your thoughts on that?

runofthemillgeek avatar Mar 16 '20 12:03 runofthemillgeek

You may also use improvement as type. But from my point of view it is fix/feat or chore if it is not code related :)

damianopetrungaro avatar Mar 16 '20 12:03 damianopetrungaro

Personally I use refactor from the Angular convention types for these changes. Since they are purely visual and lingual in nature they don't affect feat if they are changes to something that already exists. If there's an accessibility issue or a typo, fix can be warranted. Otherwise it's just iteration similar to code refactoring. It's a change but it doesn't affect functionality.

pushred avatar Mar 28 '20 23:03 pushred

Thanks @sangeeth96 for raising this issue. I'm confused about this too. I intermittently use chore and refactor too, but I guess refactor makes more sense for both cases.

isotopeee avatar Jul 01 '20 06:07 isotopeee