Skip to content

Commit

Permalink
airbyte-ci: add rc bump type to bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere committed Oct 11, 2024
1 parent 0189a00 commit f5a5d3d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions airbyte-ci/connectors/pipelines/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,7 @@ airbyte-ci connectors --language=low-code migrate-to-manifest-only

| Version | PR | Description |
| ------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| 4.39.0 | [#46380](https://github.com/airbytehq/airbyte/pull/46380) | The `bump-version` command now allows the `rc` bump type. |
| 4.38.0 | [#46380](https://github.com/airbytehq/airbyte/pull/46380) | `connectors up-to-date` now supports manifest-only connectors! |
| 4.37.0 | [#46380](https://github.com/airbytehq/airbyte/pull/46380) | Include custom components file handling in manifest-only migrations |
| 4.36.2 | [#46278](https://github.com/airbytehq/airbyte/pull/46278) | Fixed a bug in RC rollout and promote not taking `semaphore` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BumpType(click.ParamType):
name = "bump-type"

def __init__(self) -> None:
self.choices = ["patch", "minor", "major"]
self.choices = ["patch", "minor", "major", "rc"]

def convert(self, value: str, param: Optional[click.Parameter], ctx: Optional[click.Context]) -> str:
if value in self.choices:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def get_bumped_version(version: str | None, bump_type: str) -> str:
new_version = current_version.bump_minor()
elif bump_type == "major":
new_version = current_version.bump_major()
elif bump_type == "rc":
new_version = current_version.bump_prerelease()
elif bump_type.startswith("version:"):
version_str = bump_type.split("version:", 1)[1]
if semver.VersionInfo.is_valid(version_str):
Expand Down
2 changes: 1 addition & 1 deletion airbyte-ci/connectors/pipelines/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "pipelines"
version = "4.38.0"
version = "4.39.0"
description = "Packaged maintained by the connector operations team to perform CI for connectors' pipelines"
authors = ["Airbyte <contact@airbyte.io>"]

Expand Down

0 comments on commit f5a5d3d

Please sign in to comment.