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