mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
create: use GitHub project URL if homepage is empty
This commit is contained in:
parent
76e154fe82
commit
c0476672b5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user