xotahal / fastlane-plugin-semantic_release

Fully automated version management and generator of release notes
MIT License
213 stars 59 forks source link

Override Version Number #10

Closed kwandrews7 closed 5 years ago

kwandrews7 commented 5 years ago

Potentially dumb issue / question. This plugin is pretty awesome at gathering things and printing them out in a useful way for conventional commits. However, it's not counting versions and landing the way I'd like it too... Is it possible to pass a param to tell the plugin what version number to use instead of letting it decide in analyze_commits?

kwandrews7 commented 5 years ago

Sorry, took me awhile to figure out how this worked. Looks like your using lane_context shared variables. I was able to override the values as desired using the same shared variables in scope.

If someone else finds this, you can override a lane context shared var like so:

lane_context[SharedValues::YOUR_VARIABLE_NAME] = YOUR_OVERRIDE