but when I add the same LICENSE to my repo no overview is shown.
How to achieve this?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityIf you use GitHub's built in way of adding a license, either when you create a repo or through adding a new file, it adds the overview/preview as well.
I don't know of a way to add the overview when you upload your own license file (not through GitHub's way of adding a license).
The license overview in GitHub is only displayed if GitHub can recognize your license. To recognize licenses, GitHub relies on the open source project Licensee. Common reasons for unrecognized licenses include:
The license is not in its own file. The license text needs to be, in full, in its own file, preferably LICENSE
or LICENSE.md
. The name of the license is insufficient, as is the full content in the README.md
.
You made an addendum to the license text. Licensee expects a near-perfect match to the original license text (rf. choosealicense.com). Any additional title or footnote will prevent recognition.
Licensee does not support your license. Licensee only recognizes licenses registered on choosealicense.com. The code behind this website is open source and new licenses can be submitted.