Skip to content

Use Github API to extract license info #17

@andreww

Description

@andreww

Github scans repos for licence files, and if it finds them and understands the contents it annotates repositories with the licence. This is exposed via the API: https://developer.github.com/v3/repos/

We could (and probably should) extract this information via the API call rather than trying to scrape the content of the repo. However, this leaves us with an question: what do we do if there is a file but github didn't understand it. We should probably do a fallback check for this and tag such resources as having an "unknown" licence (rather than having putting "no licence" in the output).

While we are at it, it would be worth seeing if there is any other information we can use. For example, the API exposes parents of forked repos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions