Verified Commit fd107096 authored by José M. Requena Plens's avatar José M. Requena Plens Committed by GitLab
Browse files

feat(license_templates): add Popular to LicenseTemplate

Changelog: Improvements
parent ab6093d6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ type LicenseTemplate struct {
	Featured    bool     `json:"featured"`
	HTMLURL     string   `json:"html_url"`
	SourceURL   string   `json:"source_url"`
	Popular     bool     `json:"popular"`
	Description string   `json:"description"`
	Conditions  []string `json:"conditions"`
	Permissions []string `json:"permissions"`
+4 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ func TestLicenseTemplatesService_ListLicenseTemplates(t *testing.T) {
					"featured": true,
					"html_url": "http://choosealicense.com/licenses/apache-2.0/",
					"source_url": "http://www.apache.org/licenses/LICENSE-2.0.html",
					"popular": true,
					"description": "A permissive license that also provides an express grant of patent rights from contributors to users.",
					"conditions": [
						"include-copyright",
@@ -52,6 +53,7 @@ func TestLicenseTemplatesService_ListLicenseTemplates(t *testing.T) {
		Featured:    true,
		HTMLURL:     "http://choosealicense.com/licenses/apache-2.0/",
		SourceURL:   "http://www.apache.org/licenses/LICENSE-2.0.html",
		Popular:     true,
		Description: "A permissive license that also provides an express grant of patent rights from contributors to users.",
		Conditions:  []string{"include-copyright", "document-changes"},
		Permissions: []string{"commercial-use", "modifications", "distribution", "patent-use", "private-use"},
@@ -100,6 +102,7 @@ func TestLicenseTemplatesService_GetLicenseTemplate(t *testing.T) {
				"featured": true,
				"html_url": "http://choosealicense.com/licenses/apache-2.0/",
				"source_url": "http://www.apache.org/licenses/LICENSE-2.0.html",
				"popular": true,
				"description": "A permissive license that also provides an express grant of patent rights from contributors to users.",
				"conditions": [
					"include-copyright",
@@ -128,6 +131,7 @@ func TestLicenseTemplatesService_GetLicenseTemplate(t *testing.T) {
		Featured:    true,
		HTMLURL:     "http://choosealicense.com/licenses/apache-2.0/",
		SourceURL:   "http://www.apache.org/licenses/LICENSE-2.0.html",
		Popular:     true,
		Description: "A permissive license that also provides an express grant of patent rights from contributors to users.",
		Conditions:  []string{"include-copyright", "document-changes"},
		Permissions: []string{"commercial-use", "modifications", "distribution", "patent-use", "private-use"},