From eb88a3d293a7e5d90779fb54497106bc14a6c14c Mon Sep 17 00:00:00 2001 From: Daniel Azuma Date: Wed, 26 Jul 2023 19:03:13 -0700 Subject: [PATCH] chore: Fixes to bump-version (#22609) --- .toys/bump-version.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.toys/bump-version.rb b/.toys/bump-version.rb index 10adfbcee4f7..c241eb50204a 100644 --- a/.toys/bump-version.rb +++ b/.toys/bump-version.rb @@ -66,6 +66,9 @@ def setup end def verify_version + unless gem_version =~ /^\d+\.\d+\.\d+$/ + raise "Bad version format: #{gem_version}" + end manifest_data = JSON.parse File.read ".release-please-manifest.json" gem_names.each do |gem_name| cur_version = manifest_data[gem_name] @@ -118,7 +121,7 @@ def approve_pr pr_number def wait_for_pr_checks pr_number puts "Waiting for #{pr_number} checks..." - exec ["pr", "checks", pr_number, "--watch", "--interval=10", "--required"] + exec ["gh", "pr", "checks", pr_number, "--watch", "--interval=10", "--required"] puts "Checks finished for #{pr_number}" end