create: use GitHub project URL if homepage is empty

This commit is contained in:
Anatoli Babenia 2025-03-27 08:00:30 +03:00
parent 76e154fe82
commit c0476672b5

View File

@ -87,7 +87,11 @@ module Homebrew
if @github
@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"]
end
end