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

Idea: function to increment version number #188

Closed
EmilHvitfeldt opened this issue Jan 2, 2018 · 1 comment
Closed

Idea: function to increment version number #188

EmilHvitfeldt opened this issue Jan 2, 2018 · 1 comment

Comments

@EmilHvitfeldt
Copy link
Contributor

@EmilHvitfeldt EmilHvitfeldt commented Jan 2, 2018

Would it be within the scope of this package to have a function similar to usethis::use_dev_version() but instead it could increment the ‘major’, ‘minor’ or ‘patch’ accordingly.

If it is of interest I would be happy to conjure something up.

@jennybc
Copy link
Member

@jennybc jennybc commented Jan 4, 2018

Interesting idea. Maybe use_dev_version() should be reconceived to be more general? I'm really pushing to get an update out soon and this is not going to make the current release, but could make the one after that.

Not sure what the name should be, but interactively, it could show current version and offer a menu of possible increments, with default behaviour for a non-interactive session (primarily for testing). At a high-level, it would do the same things that use_dev_version() does now, i.e. look after obvious git operations, populate/overwrite Version in DESCRIPTION, and add a heading to NEWS.

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

Successfully merging a pull request may close this issue.

2 participants