Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that workshops have a LICENSE file in root #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moosichu
Copy link
Contributor

Fixes #237.

image

@moosichu moosichu requested a review from jaredkhan February 17, 2018 17:42
@@ -54,6 +54,7 @@ struct WorkshopsController {
var warnings: [String] = []
if workshop.title == "Sample Workshop" { warnings.append("Title has not been set") }
if workshop.contributors.isEmpty { warnings.append("Contributors have not been listed") }
if !workshop.hasLicense { warnings.append("Lisence missing: The root of the workshop repo should have a LICENSE file containing the following license: \(workshop.license)") }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: Lisence ⟶ License

@@ -39,6 +40,7 @@ extension Workshop {
slidesLink = try builder.getSlidesLink()
tags = try builder.getTags()
license = try builder.getLicense()
hasLicense = try Workshop.getHasLicense(localPath: localPath)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This license / hasLicense thing looks a bit confusing.
Could you explain again the justification for having both the license ID in the metadata.yaml and the LICENSE text file? Maybe we should get rid of the license id

Alternatively, why not rename the license field on Workshop to licenseId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants