@@ -33,6 +33,7 @@ type Config struct {
3333 Dry bool
3434 AllowInitialDevelopmentVersions bool
3535 AllowNoChanges bool
36+ ForceBumpPatch bool
3637 MaintainedVersion string
3738 PrependChangelog bool
3839 DownloadPlugins bool
@@ -122,6 +123,7 @@ func NewConfig(cmd *cobra.Command) (*Config, error) {
122123 Dry : mustGetBool (cmd , "dry" ),
123124 AllowInitialDevelopmentVersions : mustGetBool (cmd , "allow-initial-development-versions" ),
124125 AllowNoChanges : mustGetBool (cmd , "allow-no-changes" ),
126+ ForceBumpPatch : mustGetBool (cmd , "force-bump-patch" ),
125127 MaintainedVersion : viper .GetString ("maintainedVersion" ),
126128 PrependChangelog : mustGetBool (cmd , "prepend-changelog" ),
127129 DownloadPlugins : mustGetBool (cmd , "download-plugins" ),
@@ -177,6 +179,7 @@ func InitConfig(cmd *cobra.Command) error {
177179 cmd .Flags ().Bool ("dry" , false , "do not create release" )
178180 cmd .Flags ().Bool ("allow-initial-development-versions" , false , "semantic-release will start your initial development release at 0.1.0" )
179181 cmd .Flags ().Bool ("allow-no-changes" , false , "exit with code 0 if no changes are found, useful if semantic-release is automatically run" )
182+ cmd .Flags ().Bool ("force-bump-patch" , false , "increments the patch version if no changes are found" )
180183 cmd .Flags ().Bool ("prepend-changelog" , false , "if the changelog file already exist the new changelog is prepended" )
181184 cmd .Flags ().Bool ("download-plugins" , false , "downloads all required plugins if needed" )
182185 cmd .Flags ().Bool ("show-progress" , false , "shows the plugin download progress" )
0 commit comments