Closed nsenave closed 5 months ago
This is really just a matter of opinion but the reason build and ci are together is because they are an alias for the same concept. Build is really just a stage of CI and it's not always obvious to the user what's the difference between the two.
Changes to your build tool would be better suited under the chore
type (which the angular convention doesn't have). chore
is any change that doesn't affect actual production code.
Closing as I prefer to keep the current (opiniated) behavior.
Thanks for the answer.
I have some cases where editing my build tool config changes my production code:
In these cases, the commit cannot be typed as a chore
.
My current workaround is to type CI commits (these actually don't change to delivered code) as chore
.
The Angular convention makes the distinction between ci and build, so I'm not sure they should be considered as a unique concept. Having those considered the same feels a bit tricky (I've got surprised that exluding ci
resulted in excluding build
also). At least a little addition in the README would prevent other users from falling in the same trap.
I'm a bit frustrated but that all said, the action is very nice thank you for your work on it.
"build" and "ci" commit types are currently treated in the same group in the action.
This has been confusing to me, I used the action with the option:
and expected that "build" commits (that affect my build tool) would be written in the changelog (while I don't want to write about "ci" commits, since changes on the workflow don't affect the delivered code in the end).
Yet, in the logs of the action I had something like this:
(No
build
, even if it is not in theexcludeTypes
)If I get it correctly, the reason is that 'build' and 'ci' are in the same array in allTypes constant:
https://github.com/requarks/changelog-action/blob/669b3359e57e57caa76ec242528e431d4eaf8029/index.js#L17
which causes to filter both if one of the two is selected:
https://github.com/requarks/changelog-action/blob/669b3359e57e57caa76ec242528e431d4eaf8029/index.js#L264
There is two ways to resolve this:
It seems to me that the latter would be convenient, I'll link a pull request.