devops.release.refs

Check that a release tag and its release branch are still free.

Functions

check_release_refs(version, config)

Fail if the tag or the release/<version> branch already exists.

devops.release.refs.check_release_refs(version, config)[source]

Fail if the tag or the release/<version> branch already exists.

Git errors are raised, never read as “the reference is missing”.

Parameters:
  • version (str) – The release tag, for example v1.2.3.

  • config (GitConfig) – The Git configuration with the tag prefix.

Raises:

ReleaseError – If the version is malformed or the tag or branch exists.

Return type:

None