devops.scripts.release

Script with the release commands used by the release workflows.

Functions

check_refs(version)

Fail if the release tag or the release branch already exists.

publish(repository, version)

Tag HEAD and publish its GitHub release; safe to re-run.

reviewers(repository)

Print the human PR authors of the release notes read from stdin.

version([head_ref, title, prepare])

Print the release tag for a release or hotfix branch.

wait_ci(repository, sha)

Wait until the configured CI workflows succeeded on the release commit.

devops.scripts.release.version(head_ref=<typer.models.OptionInfo object>, title=<typer.models.OptionInfo object>, prepare=<typer.models.OptionInfo object>)[source]

Print the release tag for a release or hotfix branch.

Parameters:
  • head_ref (str)

  • title (str | None)

  • prepare (bool)

Return type:

None

devops.scripts.release.check_refs(version)[source]

Fail if the release tag or the release branch already exists.

Parameters:

version (str)

Return type:

None

devops.scripts.release.reviewers(repository)[source]

Print the human PR authors of the release notes read from stdin.

Parameters:

repository (str)

Return type:

None

devops.scripts.release.wait_ci(repository, sha)[source]

Wait until the configured CI workflows succeeded on the release commit.

Parameters:
Return type:

None

devops.scripts.release.publish(repository, version)[source]

Tag HEAD and publish its GitHub release; safe to re-run.

Parameters:
  • repository (str)

  • version (str)

Return type:

None