Skip to content

bump-my-version bump pre_label appends new pre-release label instead of incrementing pre_label value #271

Answered by coordt
dougscc asked this question in Q&A
Discussion options

You must be logged in to vote

I'm updating the documentation, but the answer is to change your parse configuration to:

parse = """(?x)
    (?P<major>0|[1-9]\\d*)\\.
    (?P<minor>0|[1-9]\\d*)\\.
    (?P<patch>0|[1-9]\\d*)
    (?:
        -                             # dash separator for pre-release section
        (?P<pre_l>[a-zA-Z-]+)         # pre-release label
        (?:0|[1-9]\\d*)               # pre-release version number
    )?                                # pre-release section is optional
"""

Replies: 6 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@coordt
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dougscc
Comment options

Comment options

You must be logged in to vote
7 replies
@coordt
Comment options

@dougscc
Comment options

@dougscc
Comment options

@coordt
Comment options

@dougscc
Comment options

Answer selected by coordt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants