From 70c1f39ec02a8109bd0ad9aecdb979e028568949 Mon Sep 17 00:00:00 2001
From: Dustin Rodrigues <dust.rod@gmail.com>
Date: Fri, 4 Sep 2020 00:12:05 -0400
Subject: [PATCH] formula_creator: autodetect license from GitHub when
 available

---
 Library/Homebrew/formula_creator.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb
index 2e18398990..75ddba1483 100644
--- a/Library/Homebrew/formula_creator.rb
+++ b/Library/Homebrew/formula_creator.rb
@@ -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.
-- 
GitLab