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

Generate the 'next' version for a changelog with an Unreleased section #3

Open
baronfel opened this issue Jan 23, 2022 · 1 comment · May be fixed by #5
Open

Generate the 'next' version for a changelog with an Unreleased section #3

baronfel opened this issue Jan 23, 2022 · 1 comment · May be fixed by #5

Comments

@baronfel
Copy link
Collaborator

I want to add a concept of 'the next prerelease version if there's an unreleased section', so that folks get a sane auto-generated version number when they do local builds. Logic would be something like:

  • take the unreleased segment
  • take the last release entry
  • check the changes in the unreleased segment to determine what kind of bump (similar to what I created in FsAutoComplete)
  • do that bump, but with a prerelease segment of -alpha.<COUNTER>, where counter is determined by the number of lines of changes in the unreleased portion overall. idea being that each PR or commit would map to a single change line in the changelog, so you'd have a minimal amount of traceability out of the box.
@baronfel
Copy link
Collaborator Author

Would also need a 'don't do that please' flag that folks could set in case they really didn't want the automatic version selection.

Big open issue is how to determine the expected bump, but I can just put a flag in the ground here and get feedback later.

@baronfel baronfel linked a pull request Jan 23, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant