oss.ninja icon indicating copy to clipboard operation
oss.ninja copied to clipboard

[Question] Does this let github identify the license used?

Open EmmaRamirez opened this issue 7 years ago • 3 comments

When you use this tool, will it also update the license property on the project's Github Repo?

i.e. I have a LICENSE.md with MIT in my repo, so Github displays that my repo uses MIT

EmmaRamirez avatar Jan 11 '18 19:01 EmmaRamirez

Github uses Licensee to detect licenses within projects, which should be able to find license information from your package.json or similar files:

https://github.com/benbalter/licensee/blob/master/lib/licensee/project_files/package_manager_file.rb#L20

(interestingly, I'm not seeing "MIT" show up for this repo, which has it listed in the package.json. strange!)

developit avatar Jan 11 '18 23:01 developit

There's some more to it than that I believe, I know there are some specific requirements to the file itself. However, if you're pulling the templates directly from the GitHub API... 🤔

Edit: For this repo you'd still need the actual LICENSE file for the MIT thing to show up 💪

Edit2: Oh no that can't be right otherwise this whole project wouldn't work 🤔

JasonEtco avatar Jan 14 '18 03:01 JasonEtco

Hi .. I am having the issue to have the published of the license and we are now working it..

JODIN1727 avatar May 15 '21 17:05 JODIN1727