Loading license_templates.go +1 −0 Original line number Diff line number Diff line Loading @@ -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"` Loading license_templates_test.go +4 −0 Original line number Diff line number Diff line Loading @@ -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", Loading Loading @@ -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"}, Loading Loading @@ -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", Loading Loading @@ -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"}, Loading Loading
license_templates.go +1 −0 Original line number Diff line number Diff line Loading @@ -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"` Loading
license_templates_test.go +4 −0 Original line number Diff line number Diff line Loading @@ -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", Loading Loading @@ -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"}, Loading Loading @@ -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", Loading Loading @@ -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"}, Loading