Add (real) examples

This commit is contained in:
Basti 2017-06-05 14:44:12 +02:00
parent 890483ea7f
commit 4f75f7615a
2 changed files with 362 additions and 0 deletions

342
examples/contribution.json Normal file
View File

@ -0,0 +1,342 @@
{
"@context": "https://schema.kosmos.org",
"@type": "Contribution",
"contributor": {
"ipfs": "QmQ2ZZS2bXgneQfKtVTVxe6dV7pcJuXnTeZJQtoVUFsAtJ"
},
"kind": "dev",
"description": "kosmos-web: Contributor list improvements",
"url": "https://github.com/67P/kredits-web/pull/11",
"details": {
"url": "https://api.github.com/repos/67P/kredits-web/pulls/11",
"id": 120487897,
"html_url": "https://github.com/67P/kredits-web/pull/11",
"diff_url": "https://github.com/67P/kredits-web/pull/11.diff",
"patch_url": "https://github.com/67P/kredits-web/pull/11.patch",
"issue_url": "https://api.github.com/repos/67P/kredits-web/issues/11",
"number": 11,
"state": "closed",
"locked": false,
"title": "Contributor list improvements",
"user": {
"login": "skddc",
"id": 842,
"avatar_url": "https://avatars2.githubusercontent.com/u/842?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/skddc",
"html_url": "https://github.com/skddc",
"followers_url": "https://api.github.com/users/skddc/followers",
"following_url": "https://api.github.com/users/skddc/following{/other_user}",
"gists_url": "https://api.github.com/users/skddc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/skddc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/skddc/subscriptions",
"organizations_url": "https://api.github.com/users/skddc/orgs",
"repos_url": "https://api.github.com/users/skddc/repos",
"events_url": "https://api.github.com/users/skddc/events{/privacy}",
"received_events_url": "https://api.github.com/users/skddc/received_events",
"type": "User",
"site_admin": false
},
"body": "* Don't show contributors with 0 kredits\n* Show correct numbers for kredits distribution",
"created_at": "2017-05-14T14:26:51Z",
"updated_at": "2017-05-14T17:28:20Z",
"closed_at": "2017-05-14T17:28:18Z",
"merged_at": "2017-05-14T17:28:18Z",
"merge_commit_sha": "dda5a8d3500a07bf0180bd65110c76b9741f6415",
"assignee": null,
"assignees": [
],
"requested_reviewers": [
],
"milestone": null,
"commits_url": "https://api.github.com/repos/67P/kredits-web/pulls/11/commits",
"review_comments_url": "https://api.github.com/repos/67P/kredits-web/pulls/11/comments",
"review_comment_url": "https://api.github.com/repos/67P/kredits-web/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/67P/kredits-web/issues/11/comments",
"statuses_url": "https://api.github.com/repos/67P/kredits-web/statuses/4f57ceaee9699fa473bd3e110465371879b27c3a",
"head": {
"label": "67P:feature/contributors_list",
"ref": "feature/contributors_list",
"sha": "4f57ceaee9699fa473bd3e110465371879b27c3a",
"user": {
"login": "67P",
"id": 9769503,
"avatar_url": "https://avatars2.githubusercontent.com/u/9769503?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/67P",
"html_url": "https://github.com/67P",
"followers_url": "https://api.github.com/users/67P/followers",
"following_url": "https://api.github.com/users/67P/following{/other_user}",
"gists_url": "https://api.github.com/users/67P/gists{/gist_id}",
"starred_url": "https://api.github.com/users/67P/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/67P/subscriptions",
"organizations_url": "https://api.github.com/users/67P/orgs",
"repos_url": "https://api.github.com/users/67P/repos",
"events_url": "https://api.github.com/users/67P/events{/privacy}",
"received_events_url": "https://api.github.com/users/67P/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 80489415,
"name": "kredits-web",
"full_name": "67P/kredits-web",
"owner": {
"login": "67P",
"id": 9769503,
"avatar_url": "https://avatars2.githubusercontent.com/u/9769503?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/67P",
"html_url": "https://github.com/67P",
"followers_url": "https://api.github.com/users/67P/followers",
"following_url": "https://api.github.com/users/67P/following{/other_user}",
"gists_url": "https://api.github.com/users/67P/gists{/gist_id}",
"starred_url": "https://api.github.com/users/67P/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/67P/subscriptions",
"organizations_url": "https://api.github.com/users/67P/orgs",
"repos_url": "https://api.github.com/users/67P/repos",
"events_url": "https://api.github.com/users/67P/events{/privacy}",
"received_events_url": "https://api.github.com/users/67P/received_events",
"type": "Organization",
"site_admin": false
},
"private": false,
"html_url": "https://github.com/67P/kredits-web",
"description": "Kredits stats & tools",
"fork": false,
"url": "https://api.github.com/repos/67P/kredits-web",
"forks_url": "https://api.github.com/repos/67P/kredits-web/forks",
"keys_url": "https://api.github.com/repos/67P/kredits-web/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/67P/kredits-web/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/67P/kredits-web/teams",
"hooks_url": "https://api.github.com/repos/67P/kredits-web/hooks",
"issue_events_url": "https://api.github.com/repos/67P/kredits-web/issues/events{/number}",
"events_url": "https://api.github.com/repos/67P/kredits-web/events",
"assignees_url": "https://api.github.com/repos/67P/kredits-web/assignees{/user}",
"branches_url": "https://api.github.com/repos/67P/kredits-web/branches{/branch}",
"tags_url": "https://api.github.com/repos/67P/kredits-web/tags",
"blobs_url": "https://api.github.com/repos/67P/kredits-web/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/67P/kredits-web/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/67P/kredits-web/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/67P/kredits-web/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/67P/kredits-web/statuses/{sha}",
"languages_url": "https://api.github.com/repos/67P/kredits-web/languages",
"stargazers_url": "https://api.github.com/repos/67P/kredits-web/stargazers",
"contributors_url": "https://api.github.com/repos/67P/kredits-web/contributors",
"subscribers_url": "https://api.github.com/repos/67P/kredits-web/subscribers",
"subscription_url": "https://api.github.com/repos/67P/kredits-web/subscription",
"commits_url": "https://api.github.com/repos/67P/kredits-web/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/67P/kredits-web/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/67P/kredits-web/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/67P/kredits-web/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/67P/kredits-web/contents/{+path}",
"compare_url": "https://api.github.com/repos/67P/kredits-web/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/67P/kredits-web/merges",
"archive_url": "https://api.github.com/repos/67P/kredits-web/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/67P/kredits-web/downloads",
"issues_url": "https://api.github.com/repos/67P/kredits-web/issues{/number}",
"pulls_url": "https://api.github.com/repos/67P/kredits-web/pulls{/number}",
"milestones_url": "https://api.github.com/repos/67P/kredits-web/milestones{/number}",
"notifications_url": "https://api.github.com/repos/67P/kredits-web/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/67P/kredits-web/labels{/name}",
"releases_url": "https://api.github.com/repos/67P/kredits-web/releases{/id}",
"deployments_url": "https://api.github.com/repos/67P/kredits-web/deployments",
"created_at": "2017-01-31T03:57:45Z",
"updated_at": "2017-02-20T05:41:10Z",
"pushed_at": "2017-06-04T17:29:03Z",
"git_url": "git://github.com/67P/kredits-web.git",
"ssh_url": "git@github.com:67P/kredits-web.git",
"clone_url": "https://github.com/67P/kredits-web.git",
"svn_url": "https://github.com/67P/kredits-web",
"homepage": "https://kredits.kosmos.org",
"size": 1865,
"stargazers_count": 0,
"watchers_count": 0,
"language": "JavaScript",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"open_issues_count": 3,
"forks": 0,
"open_issues": 3,
"watchers": 0,
"default_branch": "master"
}
},
"base": {
"label": "67P:master",
"ref": "master",
"sha": "8d07c7d7411d9ca34ee0aedd7877e4034108d857",
"user": {
"login": "67P",
"id": 9769503,
"avatar_url": "https://avatars2.githubusercontent.com/u/9769503?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/67P",
"html_url": "https://github.com/67P",
"followers_url": "https://api.github.com/users/67P/followers",
"following_url": "https://api.github.com/users/67P/following{/other_user}",
"gists_url": "https://api.github.com/users/67P/gists{/gist_id}",
"starred_url": "https://api.github.com/users/67P/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/67P/subscriptions",
"organizations_url": "https://api.github.com/users/67P/orgs",
"repos_url": "https://api.github.com/users/67P/repos",
"events_url": "https://api.github.com/users/67P/events{/privacy}",
"received_events_url": "https://api.github.com/users/67P/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 80489415,
"name": "kredits-web",
"full_name": "67P/kredits-web",
"owner": {
"login": "67P",
"id": 9769503,
"avatar_url": "https://avatars2.githubusercontent.com/u/9769503?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/67P",
"html_url": "https://github.com/67P",
"followers_url": "https://api.github.com/users/67P/followers",
"following_url": "https://api.github.com/users/67P/following{/other_user}",
"gists_url": "https://api.github.com/users/67P/gists{/gist_id}",
"starred_url": "https://api.github.com/users/67P/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/67P/subscriptions",
"organizations_url": "https://api.github.com/users/67P/orgs",
"repos_url": "https://api.github.com/users/67P/repos",
"events_url": "https://api.github.com/users/67P/events{/privacy}",
"received_events_url": "https://api.github.com/users/67P/received_events",
"type": "Organization",
"site_admin": false
},
"private": false,
"html_url": "https://github.com/67P/kredits-web",
"description": "Kredits stats & tools",
"fork": false,
"url": "https://api.github.com/repos/67P/kredits-web",
"forks_url": "https://api.github.com/repos/67P/kredits-web/forks",
"keys_url": "https://api.github.com/repos/67P/kredits-web/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/67P/kredits-web/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/67P/kredits-web/teams",
"hooks_url": "https://api.github.com/repos/67P/kredits-web/hooks",
"issue_events_url": "https://api.github.com/repos/67P/kredits-web/issues/events{/number}",
"events_url": "https://api.github.com/repos/67P/kredits-web/events",
"assignees_url": "https://api.github.com/repos/67P/kredits-web/assignees{/user}",
"branches_url": "https://api.github.com/repos/67P/kredits-web/branches{/branch}",
"tags_url": "https://api.github.com/repos/67P/kredits-web/tags",
"blobs_url": "https://api.github.com/repos/67P/kredits-web/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/67P/kredits-web/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/67P/kredits-web/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/67P/kredits-web/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/67P/kredits-web/statuses/{sha}",
"languages_url": "https://api.github.com/repos/67P/kredits-web/languages",
"stargazers_url": "https://api.github.com/repos/67P/kredits-web/stargazers",
"contributors_url": "https://api.github.com/repos/67P/kredits-web/contributors",
"subscribers_url": "https://api.github.com/repos/67P/kredits-web/subscribers",
"subscription_url": "https://api.github.com/repos/67P/kredits-web/subscription",
"commits_url": "https://api.github.com/repos/67P/kredits-web/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/67P/kredits-web/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/67P/kredits-web/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/67P/kredits-web/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/67P/kredits-web/contents/{+path}",
"compare_url": "https://api.github.com/repos/67P/kredits-web/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/67P/kredits-web/merges",
"archive_url": "https://api.github.com/repos/67P/kredits-web/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/67P/kredits-web/downloads",
"issues_url": "https://api.github.com/repos/67P/kredits-web/issues{/number}",
"pulls_url": "https://api.github.com/repos/67P/kredits-web/pulls{/number}",
"milestones_url": "https://api.github.com/repos/67P/kredits-web/milestones{/number}",
"notifications_url": "https://api.github.com/repos/67P/kredits-web/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/67P/kredits-web/labels{/name}",
"releases_url": "https://api.github.com/repos/67P/kredits-web/releases{/id}",
"deployments_url": "https://api.github.com/repos/67P/kredits-web/deployments",
"created_at": "2017-01-31T03:57:45Z",
"updated_at": "2017-02-20T05:41:10Z",
"pushed_at": "2017-06-04T17:29:03Z",
"git_url": "git://github.com/67P/kredits-web.git",
"ssh_url": "git@github.com:67P/kredits-web.git",
"clone_url": "https://github.com/67P/kredits-web.git",
"svn_url": "https://github.com/67P/kredits-web",
"homepage": "https://kredits.kosmos.org",
"size": 1865,
"stargazers_count": 0,
"watchers_count": 0,
"language": "JavaScript",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"open_issues_count": 3,
"forks": 0,
"open_issues": 3,
"watchers": 0,
"default_branch": "master"
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/67P/kredits-web/pulls/11"
},
"html": {
"href": "https://github.com/67P/kredits-web/pull/11"
},
"issue": {
"href": "https://api.github.com/repos/67P/kredits-web/issues/11"
},
"comments": {
"href": "https://api.github.com/repos/67P/kredits-web/issues/11/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/67P/kredits-web/pulls/11/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/67P/kredits-web/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/67P/kredits-web/pulls/11/commits"
},
"statuses": {
"href": "https://api.github.com/repos/67P/kredits-web/statuses/4f57ceaee9699fa473bd3e110465371879b27c3a"
}
},
"merged": true,
"mergeable": null,
"rebaseable": null,
"mergeable_state": "unknown",
"merged_by": {
"login": "skddc",
"id": 842,
"avatar_url": "https://avatars2.githubusercontent.com/u/842?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/skddc",
"html_url": "https://github.com/skddc",
"followers_url": "https://api.github.com/users/skddc/followers",
"following_url": "https://api.github.com/users/skddc/following{/other_user}",
"gists_url": "https://api.github.com/users/skddc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/skddc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/skddc/subscriptions",
"organizations_url": "https://api.github.com/users/skddc/orgs",
"repos_url": "https://api.github.com/users/skddc/repos",
"events_url": "https://api.github.com/users/skddc/events{/privacy}",
"received_events_url": "https://api.github.com/users/skddc/received_events",
"type": "User",
"site_admin": false
},
"comments": 0,
"review_comments": 1,
"maintainer_can_modify": false,
"commits": 3,
"additions": 46,
"deletions": 14,
"changed_files": 4
}
}

20
examples/contributor.json Normal file
View File

@ -0,0 +1,20 @@
{
"@context": "https://schema.kosmos.org",
"@type": "Contributor",
"kind": "person",
"name": "Râu Cao",
"url": "https://sebastian.kip.pe",
"accounts": [
{
"site": "github.com",
"username": "skddc",
"uid": 842,
"url": "https://github.com/skddc/"
},
{
"site": "wiki.kosmos.org",
"username": "Basti",
"url": "https://wiki.kosmos.org/User:Basti"
}
]
}