Skip to content

feat(quality): accept CC content licenses for Learning & Resources - #66

Merged
jamesconwaydev merged 2 commits into
mainfrom
feat-content-licenses
Nov 6, 2026
Merged

jamesconwaydev merged 2 commits into
mainfrom
feat-content-licenses

Conversation

@jamesconwaydev

Copy link
Copy Markdown
Collaborator

Entries in the learning-resources category can now use CC0-1.0, CC-BY-4.0 or CC-BY-SA-4.0. Every other category still requires an OSI license, and the NonCommercial and NoDerivatives variants are rejected everywhere.

check_repo gets an allowed_extra parameter that counts in every detection path (spdx_id, the /license fallback, SPDX expressions, canonical-text phrases, README names). decide(), the seed path and rot pass the set for the entry's category, so a CC-licensed learning-resources entry is not removed by rot. When a CC license is found in another category, the not-found message says CC is accepted for Learning & Resources only.

Canonical texts for CC0, CC-BY, CC-BY-SA and CC-BY-NC (as a negative case) are vendored from spdx/license-list-data.

Part of the v0.1 launch.

Entries in learning-resources may now carry CC0-1.0, CC-BY-4.0 or
CC-BY-SA-4.0. Every other category still needs an OSI license, and
the NonCommercial and NoDerivatives variants stay rejected everywhere.

check_repo takes allowed_extra, applied to GitHub's spdx_id, the
/license fallback, SPDX expressions, phrase detection and README names.
decide(), the seed path and rot pass extra_licenses_for(category), so a
CC-licensed learning-resources entry is no longer removed by rot.
…ings

find_license reads one file at a time again, so an earlier non-OSI
rejection can't be hidden by a later unreadable file. The CC hint is
submit-only, README lines naming NC or ND variants no longer match, and
the unused import is gone.
@jamesconwaydev
jamesconwaydev merged commit af4ac74 into main Nov 6, 2026
8 checks passed
@jamesconwaydev
jamesconwaydev deleted the feat-content-licenses branch November 6, 2026 03:40
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.

1 participant