GitHub recently introduced a new feature where it automatically lists the repo's license: https://github.com/blog/2252-license-now-displayed-on-repository-overview
@mgattozzi is working on this (https://github.com/FreeCodeCamp/FreeCodeCamp/pull/10842)
So I've looked into this some more. Unless we split the licenses and make one of the LICENSEs non mark down Github won't recognize it with their code and the repo won't display the badge.
This means if the feature is wanted the License file must be split up unfortunately. That or a ticket is submitted to Github to patch their feature to recognize the license based on it having all of the contents of one license in a file and then ignoring the rest. I'm not sure why they didn't design it this way but those seem to be the only options available unfortunately.
@mgattozzi were you able to get the gem working locally?
I was looking all over and couldn't find it. However after researching I
found what gem they use buried in the docs. Let me retry again and I'll
keep you posted.
On Sun, Sep 25, 2016, 01:08 Quincy Larson [email protected] wrote:
@mgattozzi https://github.com/mgattozzi were you able to get the gem
working locally?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/10869#issuecomment-249403131,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADWgH5Uf3116y4BntaFLjJvNi4ztSS7Dks5qtgHNgaJpZM4KEj9f
.
@mgattozzi Can it be done this way. Having a main license, and a provisional license... or perhaps something else.
I had suggested splitting it but I don't think @QuincyLarson really wants that. I think the next solution would be to patch licensee the gem used by github upstream to detect other file names and things. A lot harder and it depends on when Github updates it if they do use it. Otherwise, splitting seems to be most viable at this time unless I figure something else out.
Okay. I'll also try looking into other ways as well.
@QuincyLarson The gem results with the below:
raisedadead:~/workspace/FreeCodeCamp (staging) $ gem install licensee
Fetching: rugged-0.24.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed rugged-0.24.0
Fetching: licensee-8.7.0.gem (100%)
Successfully installed licensee-8.7.0
2 gems installed
raisedadead:~/workspace/FreeCodeCamp (staging) $ licensee
License file: LICENSE.md
License hash: ac19042dbde4fcfd6b2b2838272d4710a7dc8005
Attribution: Copyright (c) 2016 Free Code Camp.
Here's the closest licenses:
* CC-BY-4.0 similarity: 86.67%
raisedadead:~/workspace/FreeCodeCamp (staging) $
The gem detects our current LICENCE.md as closer to CC-BY-4.0, if we want it to be BSD-3 then the text would have to be updated as such in the LICENCE.md
@raisedadead wow - thank you for installing this and running this. I will look into this and get back to you on how we should proceed.
OK - here's @kemitchell recommended we do:
@mgattozzi or @raisedadead would you be interested in doing the honors?
@mgattozzi since you already have had made a PR, I feel you should take the credit for this contribution ... 😃 !
In case you are not available, I will be glad to take it up.
Most helpful comment
@mgattozzi since you already have had made a PR, I feel you should take the credit for this contribution ... 😃 !
In case you are not available, I will be glad to take it up.