Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undetected license file for unusual repos #49

Open
Dynnammo opened this issue Sep 26, 2022 · 1 comment
Open

Undetected license file for unusual repos #49

Dynnammo opened this issue Sep 26, 2022 · 1 comment

Comments

@Dynnammo
Copy link
Contributor

Some repos have license files named somewhat strangely : License-Agplv3.txt, etc. (cf. github.com/decidim/decidim as instance).

It would be great, instead of covering this by having a license_files list, to work followingly :

  1. For GH, using the API, which itself relies on Licensee, a ruby gem that do the job pretty well : https://docs.github.com/en/rest/licenses#get-the-license-for-a-repository
  2. For Bitbucket, same API endpoint does exist : https://developer.atlassian.com/server/bitbucket/rest/v804/api-group-project/#api-api-latest-projects-projectkey-repos-repositoryslug-license-get
@Mte90
Copy link
Owner

Mte90 commented Sep 27, 2022

Yes, when the project started there wasn't something like this.

Ideally the actual behaviour can be a fallback in case the endpoint don't work, we should look also on GItLab if there is something similar as per #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants