Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion toys/gapic/linkinator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def determine_skips gem_name
"^https://rubygems\\.org/gems/#{wrapper_gem_name}",
"^https://cloud\\.google\\.com/ruby/docs/reference/#{gem_name}/latest$",
"^https://rubydoc\\.info/gems/#{gem_name}",
"^https?://stackoverflow\\.com/questions/tagged/google-cloud-platform\\+ruby$"
"^https?://stackoverflow\\.com/questions/tagged/google-cloud-platform\\+ruby$",
"^https://console\\.cloud\\.google\\.com/apis/library/\\\w+\\.googleapis\\.com$"
]
if gem_name == wrapper_gem_name
skip_regexes << "^https://cloud\\.google\\.com/ruby/docs/reference/#{gem_name}-v\\d\\w*/latest$"
Expand Down
3 changes: 2 additions & 1 deletion toys/release/manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,6 @@ def default_github_token
return value unless value.empty?
result = exec ["gh", "auth", "status", "-t"], out: :capture, err: :capture
match = /Token: (\w+)/.match(result.captured_out + result.captured_err)
match ? match[1] : nil
return nil unless match
match[1]
end
3 changes: 2 additions & 1 deletion toys/release/please.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ def default_github_token
return value unless value.empty?
result = exec ["gh", "auth", "status", "-t"], out: :capture, err: :capture
match = /Token: (\w+)/.match(result.captured_out + result.captured_err)
match ? match[1] : nil
return nil unless match
match[1]
end

def default_version_path dir, package_name
Expand Down