Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump versions in non-json files #116

Open
geddski opened this issue Apr 11, 2015 · 1 comment
Open

bump versions in non-json files #116

geddski opened this issue Apr 11, 2015 · 1 comment

Comments

@geddski
Copy link
Owner

geddski commented Apr 11, 2015

Might be nice to support this, in the cases where you have comments in source files that contain the version number.

@sholladay
Copy link

Just stating the obvious here. It is easy to bump the version number in package.json (etc.) because it describes a state. Version numbers in other source code forms often represent points in time.

For example, I recently made a tool to automatically bump versions in my README.md files. As soon as I needed to say something in the README.md like "This feature works since version 1.2.0", it fell apart because that instance must never be changed. I didn't want to insert some kind of custom annotation garbage just to tell my tool that. So I fell back to using a convention of only bumping the first match of a simple regex that looks for something like **Version:** followed by a semver sequence. That works well but it's special and limited.

In sum, I support this, but it should be configurable and off by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants