Closed mikeschinkel closed 1 year ago
I know you have the file, but maybe it doesn't recognize it because of the .txt
extension (vs. .md
, or none?)
Github appears to know where the license is (right sidebar on desktop):
:point_up:
Hi @lann —
Thank you for such a super-quick response.
Correct. GitHub knows where your license is, but it does not recognize what your license is.
However, since I posted this issue I realized that you cannot change it via the admin UI for an existing project but instead you need to edit it so that GitHub will recognize it correctly. A PR will soon follow for this.
BTW, for clarity take a look at what Postman shows when calling the GitHub API to request your repository's license:
And here is what it looks when requesting a license that GitHub recognizes:
Next here it what it looks like on the GitHub UI when GitHub knows what a license is:
And here it what it looks like for your repo where GitHub does not know what your license is:
As promised, please see #339 that would allow GitHub to recognize your license.
Actually, that did not fix it. Hold on the PR, please...
Okay, so here is the fix:
I am working on a license checker using the GitHub API and it comes back with
NOASSERTION
for this repo rather thanMIT
.Would it be possible for you to assert your license type in the Github Admin U so the API response would say
MIT
?https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository
Thank you in advance or considering.