Skip to content
Snippets Groups Projects
Unverified Commit 5588beb3 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #8597 from dtrodrigues/creator-license

formula_creator: autodetect license from GitHub when available
parents 4cc111ce 70c1f39e
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,7 @@ module Homebrew
metadata = GitHub.repository(@user, @name)
@desc = metadata["description"]
@homepage = metadata["homepage"]
@license = metadata["license"]["spdx_id"] if metadata["license"]
rescue GitHub::HTTPNotFoundError
# If there was no repository found assume the network connection is at
# fault rather than the input URL.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment