Merge pull request #19623 from abitrolly/github-homepage-empty

create: use GitHub project URL if homepage is empty
This commit is contained in:
Mike McQuaid 2025-03-28 11:52:05 +00:00 committed by GitHub
commit 11426c9680
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,7 +93,11 @@ module Homebrew
if @github if @github
@desc = @github["description"] @desc = @github["description"]
@homepage = @github["homepage"] @homepage = if @github["homepage"].empty?
"https://github.com/#{@github["full_name"]}"
else
@github["homepage"]
end
@license = @github["license"]["spdx_id"] if @github["license"] @license = @github["license"]["spdx_id"] if @github["license"]
end end
end end