Skip to content

Commit

Permalink
Merge pull request #8597 from dtrodrigues/creator-license
Browse files Browse the repository at this point in the history
formula_creator: autodetect license from GitHub when available
  • Loading branch information
MikeMcQuaid authored Sep 4, 2020
2 parents 4cc111c + 70c1f39 commit 5588beb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/formula_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def generate!
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.
Expand Down

0 comments on commit 5588beb

Please sign in to comment.