Skip to content

Instantly share code, notes, and snippets.

@cdbkr
Created May 15, 2019 17:46
Show Gist options
  • Save cdbkr/82cfd5062362049a52a12996720ba73b to your computer and use it in GitHub Desktop.
Save cdbkr/82cfd5062362049a52a12996720ba73b to your computer and use it in GitHub Desktop.
a simple example
const commitsCollection = {
"total_count": 4,
"incomplete_results": false,
"items": [
{
"url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
"sha": "bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
"html_url": "https://github.com/octocat/Spoon-Knife/commit/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
"comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f/comments",
"commit": {
"url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
"author": {
"date": "2014-02-04T14:38:36-08:00",
"name": "The Octocat",
"email": "[email protected]"
},
"committer": {
"date": "2014-02-12T15:18:55-08:00",
"name": "The Octocat",
"email": "[email protected]"
},
"message": "Create styles.css and updated README",
"tree": {
"url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees/a639e96f9038797fba6e0469f94a4b0cc459fa68",
"sha": "a639e96f9038797fba6e0469f94a4b0cc459fa68"
},
"comment_count": 8
},
"score": 4.9971514
},
{
"url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/a639e96f9038797fba6e0469f94a4b0cc459fa6844",
"sha": "a639e96f9038797fba6e0469f94a4b0cc459fa6844",
"html_url": "https://github.com/octocat/Spoon-Knife/commit/a639e96f9038797fba6e0469f94a4b0cc459fa6844",
"comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/a639e96f9038797fba6e0469f94a4b0cc459fa6844/comments",
"commit": {
"url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits/a639e96f9038797fba6e0469f94a4b0cc459fa6844",
"author": {
"date": "2014-02-04T14:38:36-08:00",
"name": "The Octocat",
"email": "[email protected]"
},
"committer": {
"date": "2014-02-12T15:18:55-08:00",
"name": "The Octocat",
"email": "[email protected]"
},
"message": "Updated eslint configuration",
"tree": {
"url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees/a639e96f9038797fba6e0469f94a4b0cc459fa6844",
"sha": "a639e96f9038797fba6e0469f94a4b0cc459fa6844"
},
"comment_count": 8
},
"score": 4.9971514
},
{
"url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/a639e96f9038797fba6e0469f94a4b0cc459fa6844",
"sha": "a639e96f9038797fba6e0469f94a4b0cc459fa6844",
"html_url": "https://github.com/octocat/Spoon-Knife/commit/a639e96f9038797fba6e0469f94a4b0cc459fa6844",
"comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/a639e96f9038797fba6e0469f94a4b0cc459fa6844/comments",
"commit": {
"url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits/a639e96f9038797fba6e0469f94a4b0cc459fa6844",
"author": {
"date": "2014-02-04T14:38:36-08:00",
"name": "The Octocat",
"email": "[email protected]"
},
"committer": {
"date": "2014-02-12T15:18:55-08:00",
"name": "The Octocat",
"email": "[email protected]"
},
"message": null,
"tree": {
"url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees/a639e96f9038797fba6e0469f94a4b0cc459fa6844",
"sha": "a639e96f9038797fba6e0469f94a4b0cc459fa6844"
},
"comment_count": 8
},
"score": 4.9971514
},
{
"url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f3333",
"sha": "bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f3333",
"html_url": "https://github.com/octocat/Spoon-Knife/commit/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f3333",
"comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f3333/comments",
"commit": {
"url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f33333",
"author": {
"date": "2014-02-04T14:38:36-08:00",
"name": "The Octocat Clone",
"email": "[email protected]"
},
"committer": {
"date": "2014-02-12T15:18:55-08:00",
"name": "The Octocat Clone",
"email": "[email protected]"
},
"message": "Create styles.css and updated README",
"tree": {
"url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f33333",
"sha": "bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f33333"
},
"comment_count": 8
},
"score": 4.9971514
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment