Skip to content

Commit

Permalink
feat(ruby): Support releases of split ruby apiary packages (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma authored Jan 6, 2021
1 parent 5eeef35 commit 0b61bd0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions releasetool/commands/tag/ruby.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def determine_package_name_and_version(ctx: TagContext) -> None:

def get_release_notes(ctx: TagContext) -> None:
click.secho("> Grabbing the release notes.", fg="cyan")
if "google-cloud-ruby" in ctx.upstream_repo:
if (
"google-cloud-ruby" in ctx.upstream_repo
or "google-api-ruby-client" in ctx.upstream_repo
):
changelog_file = f"{ctx.package_name}/CHANGELOG.md"
else:
changelog_file = "CHANGELOG.md"
Expand Down Expand Up @@ -151,12 +154,13 @@ def tag(ctx: TagContext = None) -> TagContext:

create_release(ctx)

job_name = ctx.package_name.split("google-cloud-")[-1]

if "google-cloud-ruby" in ctx.upstream_repo:
job_name = ctx.package_name.split("google-cloud-")[-1]
ctx.kokoro_job_name = (
f"cloud-devrel/client-libraries/google-cloud-ruby/release/{job_name}"
)
elif "google-api-ruby-client" in ctx.upstream_repo:
ctx.kokoro_job_name = f"cloud-devrel/client-libraries/google-api-ruby-client/release/{ctx.package_name}"
else:
ctx.kokoro_job_name = (
f"cloud-devrel/client-libraries/{ctx.package_name}/release"
Expand Down

0 comments on commit 0b61bd0

Please sign in to comment.