← 输入框|github.com|刷新
Skip to content

Allow user to manually specify the next version number #1192

Open

Description

@MicaelJarniac

Feature Request

Description

It may be useful for some use-cases to allow the user to manually specify the next version number.

Use cases

One such use-case would be the "Epoch SemVer" idea, where the MAJOR version behaves slightly differently in the case of a "notorious" update, increasing by 100 instead of by 1, for example.

Another use-case would be when the repo is in a broken state, and PSR can't figure out what to do. Being able to override the next version entirely would allow the user to get out of these broken states more easily. This would have helped me in #1188, for example.

Possible implementation

semantic-release version --force 1.2.3 to force the next version to be v1.2.3.

This would then check if the provided version isn't lower than the current one, and if valid, bump straight to it.

Alternative solutions

There are flags to force bumps to MINOR, MAJOR, or PATCH, but these will only increase the specified portion by 1, which isn't suitable for all use-cases.

The user could also manually work with Git and such to try to craft a scenario where semantic-release version will have the desired result, but it'd be error-prone and tricky to do.

Another option would be to manually perform all the automated steps PSR would take, but this is once again error-prone and tricky.

Activity

  1. added
    feature
    triage
    on Feb 17, 2025
  2. added
    confirmed
    and removed
    triage
    on Feb 17, 2025
  3. github-actions commented on Apr 19, 2025

    @github-actions

    It has been 60 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?

  4. added
    needs-update
    on Apr 19, 2025
  5. codejedi365 commented on Apr 19, 2025

    @codejedi365
    Contributor

    Still in backlog

  6. removed
    needs-update
    on Apr 20, 2025
  7. github-actions commented on Jun 19, 2025

    @github-actions

    It has been 60 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?

  8. added
    needs-update
    on Jun 19, 2025
  9. codejedi365 commented on Jun 20, 2025

    @codejedi365
    Contributor

    No update yet, still in backlog.

  10. removed
    needs-update
    on Jun 20, 2025
  11. github-actions commented on Sep 19, 2025

    @github-actions

    It has been 90 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?

  12. added
    needs-update
    on Sep 19, 2025
  13. codejedi365 commented on Sep 23, 2025

    @codejedi365
    Contributor

    Still in backlog

  14. removed
    needs-update
    on Sep 24, 2025
  15. github-actions commented on Dec 23, 2025

    @github-actions

    It has been 90 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?

  16. added
    needs-update
    on Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedfeatureneeds-update

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions