Closed DEMG-DEV closed 6 years ago
It's any of the keys from the main repo object returned by the Github API — things like name
, created_at
, or watchers
.
These are the possible keys (and values) for this repo. Some would make more sense to sort by than others!
"id": 3706336,
"node_id": "MDEwOlJlcG9zaXRvcnkzNzA2MzM2",
"name": "github-widget",
"full_name": "jawj/github-widget",
"private": false,
"html_url": "https://github.com/jawj/github-widget",
"description": "Simple script to display own GitHub projects on a webpage, ordered by number of watchers",
"fork": false,
"url": "https://api.github.com/repos/jawj/github-widget",
"forks_url": "https://api.github.com/repos/jawj/github-widget/forks",
"keys_url": "https://api.github.com/repos/jawj/github-widget/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/jawj/github-widget/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/jawj/github-widget/teams",
"hooks_url": "https://api.github.com/repos/jawj/github-widget/hooks",
"issue_events_url": "https://api.github.com/repos/jawj/github-widget/issues/events{/number}",
"events_url": "https://api.github.com/repos/jawj/github-widget/events",
"assignees_url": "https://api.github.com/repos/jawj/github-widget/assignees{/user}",
"branches_url": "https://api.github.com/repos/jawj/github-widget/branches{/branch}",
"tags_url": "https://api.github.com/repos/jawj/github-widget/tags",
"blobs_url": "https://api.github.com/repos/jawj/github-widget/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/jawj/github-widget/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/jawj/github-widget/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/jawj/github-widget/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/jawj/github-widget/statuses/{sha}",
"languages_url": "https://api.github.com/repos/jawj/github-widget/languages",
"stargazers_url": "https://api.github.com/repos/jawj/github-widget/stargazers",
"contributors_url": "https://api.github.com/repos/jawj/github-widget/contributors",
"subscribers_url": "https://api.github.com/repos/jawj/github-widget/subscribers",
"subscription_url": "https://api.github.com/repos/jawj/github-widget/subscription",
"commits_url": "https://api.github.com/repos/jawj/github-widget/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/jawj/github-widget/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/jawj/github-widget/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/jawj/github-widget/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/jawj/github-widget/contents/{+path}",
"compare_url": "https://api.github.com/repos/jawj/github-widget/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/jawj/github-widget/merges",
"archive_url": "https://api.github.com/repos/jawj/github-widget/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/jawj/github-widget/downloads",
"issues_url": "https://api.github.com/repos/jawj/github-widget/issues{/number}",
"pulls_url": "https://api.github.com/repos/jawj/github-widget/pulls{/number}",
"milestones_url": "https://api.github.com/repos/jawj/github-widget/milestones{/number}",
"notifications_url": "https://api.github.com/repos/jawj/github-widget/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/jawj/github-widget/labels{/name}",
"releases_url": "https://api.github.com/repos/jawj/github-widget/releases{/id}",
"deployments_url": "https://api.github.com/repos/jawj/github-widget/deployments",
"created_at": "2012-03-13T12:40:15Z",
"updated_at": "2018-05-30T23:26:28Z",
"pushed_at": "2018-04-25T12:54:13Z",
"git_url": "git://github.com/jawj/github-widget.git",
"ssh_url": "git@github.com:jawj/github-widget.git",
"clone_url": "https://github.com/jawj/github-widget.git",
"svn_url": "https://github.com/jawj/github-widget",
"homepage": "http://mackerron.com/webdev/",
"size": 37,
"stargazers_count": 28,
"watchers_count": 28,
"language": "CoffeeScript",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 6,
"mirror_url": null,
"archived": false,
"open_issues_count": 3,
"license": null,
"forks": 6,
"open_issues": 3,
"watchers": 28,
"default_branch": "master"
hi, how is the possibles keys of "sortBy":"?". or not implemented yet other options?.