needmorecowbell / giggity

Wraps github api for openly available information about an organization, user, or repo
Apache License 2.0
127 stars 19 forks source link

remove unnecessary keys in tree #7

Closed needmorecowbell closed 5 years ago

needmorecowbell commented 5 years ago

many of the keys are just links to other endpoints. Not much of this is useful, so it would make things cleaner to just not include them. Here is an example of what might get deleted:

This is edited from the results given from a request to the repo endpoint of the api

Repo Structure (This is a fairly liberal list, I think it could probably be cut down more)

{
    "id": 59394602,
    "name": "AaronConversation",
    "full_name": "needmorecowbell/AaronConversation",
    "private": false,
    "owner": {
      "login": "needmorecowbell"
    },
    "html_url": "https://github.com/needmorecowbell/AaronConversation",
    "description": "Old code from a fun postal service experience",
    "fork": false,
    "url": "https://api.github.com/repos/needmorecowbell/AaronConversation",
    "forks_url": "https://api.github.com/repos/needmorecowbell/AaronConversation/forks",
    "created_at": "2016-05-22T04:20:41Z",
    "updated_at": "2016-05-22T04:21:56Z",
    "pushed_at": "2016-05-22T04:21:55Z",
    "size": 9,
    "stargazers_count": 0,
    "watchers_count": 0,
    "language": "Java",
    "has_issues": true,
    "has_projects": true,
    "has_downloads": true,
    "has_wiki": true,
    "has_pages": false,
    "forks_count": 0,
    "open_issues_count": 0,
    "license": null,
    "forks": 0,
    "open_issues": 0,
    "watchers": 0,
    "default_branch": "master"
 }
needmorecowbell commented 5 years ago

Closed, fixed in this commit

https://github.com/needmorecowbell/giggity/commit/cdfdedfbaaab5eae707202e21620a1aa636cadbd