You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
any other relevant information: Using this package to add labels to PRs according to the increment of the commit messages.
What are you trying to achieve or the steps to reproduce?
I'm using Semantic Release to release my code. I'm writing my own GitHub Action to add / remove labels from GitHub PRs so I know what kind of release merging the PR will trigger. The script gets all the commit messages and uses the parse-commit-message module to get the increment type.
import{parse,plugins,applyPlugins}from'parse-commit-message'console.log(applyPlugins(plugins[1],parse('fixblahblahblah: Fixed a bug'))[0].increment)// Patch
Since fixblahblahblah stars with fix, the patch regex matches the type. Ran into this when using Feature: something was a minor but it didn't do anything with Semantic Release.
What was the result you got?
'patch'
What result did you expect?
false
The text was updated successfully, but these errors were encountered:
It's not strictly a commit validation library. I built a whole suite around all that and even GitHub (Probot) Bots back then, completely freeing me of Semantic Release. That was the whole purpose - small separate components, following the Conventional Commits spec. Because we had problems with SR.
What can help you with Feature is adding options.caseSensitive: true. As about the other, you won't have such commit in the first place, if you have good git commit flow (i use gitcommit), docs for contrib, or you have commit linting like commitlint which have presets too, so you won't end up with wrong messages in git/github.
[MIRROR] Publish project to NPM following Conventional Commits specification and SemVer. Uses git-commits-since for detecting git commits since last SemVer tag and `detect-next-version` for what ne...
Automated workflow for language-independent module publishing and creating GitHub Releases, following the Conventional Commits and SemVer specifications - Standard Release
Support plan
Enterprise): Community
Context
What are you trying to achieve or the steps to reproduce?
I'm using Semantic Release to release my code. I'm writing my own GitHub Action to add / remove labels from GitHub PRs so I know what kind of release merging the PR will trigger. The script gets all the commit messages and uses the
parse-commit-message
module to get the increment type.Since
fixblahblahblah
stars withfix
, thepatch
regex matches the type. Ran into this when usingFeature: something
was aminor
but it didn't do anything withSemantic Release
.What was the result you got?
'patch'
What result did you expect?
false
The text was updated successfully, but these errors were encountered: