This Choreo retrieves a list of comments for a single commit. The documentation for this GitHub resource can be found here.
Below is an example of acceptable inputs:
Base: master
Head: e023ef4d34dbb6f853ee8e8c6c24b316bf25623a
Repo: {YOUR REPOSITORY NAME}
User: {YOUR GITHUB USERNAME}
The following is a sample of the JSON information returned by this Choreo:
{
"ahead_by": 0,
"patch_url": "https://github.com/aarontemboodev/Projects/compare/master...be7a18ed79ccbd80f7ad161a88f0b7c1beab0495.patch",
"merge_base_commit": {
"committer": {
"gravatar_id": "bd970ab7256e42d745d899115a5052c9",
"avatar_url": "https://secure.gravatar.com/avatar/bd970ab7256e42d745d899115a5052c9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
"id": 1899943,
"login": "aarontemboodev",
"url": "https://api.github.com/users/aarontemboodev"
},
"sha": "be7a18ed79ccbd80f7ad161a88f0b7c1beab0495",
"commit": {
"committer": {
"email": "aarontemboodev@gmail.com",
"date": "2012-06-27T12:29:11-07:00",
"name": "aarontemboodev"
},
"message": "Initial commit",
"tree": {
"sha": "e410cbb7b70d1ad940e9509299631f4fcdb90fed",
"url": "https://api.github.com/repos/aarontemboodev/Projects/git/trees/e410cbb7b70d1ad940e9509299631f4fcdb90fed"
},
"author": {
"email": "aarontemboodev@gmail.com",
"date": "2012-06-27T12:29:11-07:00",
"name": "aarontemboodev"
},
"url": "https://api.github.com/repos/aarontemboodev/Projects/git/commits/be7a18ed79ccbd80f7ad161a88f0b7c1beab0495"
},
"author": {
"gravatar_id": "bd970ab7256e42d745d899115a5052c9",
"avatar_url": "https://secure.gravatar.com/avatar/bd970ab7256e42d745d899115a5052c9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
"id": 1899943,
"login": "aarontemboodev",
"url": "https://api.github.com/users/aarontemboodev"
},
"parents": [],
"url": "https://api.github.com/repos/aarontemboodev/Projects/commits/be7a18ed79ccbd80f7ad161a88f0b7c1beab0495"
},
"total_commits": 0,
"status": "behind",
"html_url": "https://github.com/aarontemboodev/Projects/compare/master...be7a18ed79ccbd80f7ad161a88f0b7c1beab0495",
"commits": [],
"base_commit": {
"committer": {
"gravatar_id": "bd970ab7256e42d745d899115a5052c9",
"avatar_url": "https://secure.gravatar.com/avatar/bd970ab7256e42d745d899115a5052c9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
"id": 1899943,
"login": "aarontemboodev",
"url": "https://api.github.com/users/aarontemboodev"
},
"sha": "0e69db49de0e1048a13f4918240a9dc9776d33d6",
"commit": {
"committer": {
"email": "aarontemboodev@gmail.com",
"date": "2012-07-10T09:25:53-07:00",
"name": "aarontemboodev"
},
"message": "new test",
"tree": {
"sha": "ab238264fb871b12a874a321fa303108f8fb1688",
"url": "https://api.github.com/repos/aarontemboodev/Projects/git/trees/ab238264fb871b12a874a321fa303108f8fb1688"
},
"author": {
"email": "aarontemboodev@gmail.com",
"date": "2012-07-10T09:25:53-07:00",
"name": "aarontemboodev"
},
"url": "https://api.github.com/repos/aarontemboodev/Projects/git/commits/0e69db49de0e1048a13f4918240a9dc9776d33d6"
},
"author": {
"gravatar_id": "bd970ab7256e42d745d899115a5052c9",
"avatar_url": "https://secure.gravatar.com/avatar/bd970ab7256e42d745d899115a5052c9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
"id": 1899943,
"login": "aarontemboodev",
"url": "https://api.github.com/users/aarontemboodev"
},
"parents": [
{
"sha": "4294a7cafb1aacd49aea571e4df05eed1a6d9b38",
"url": "https://api.github.com/repos/aarontemboodev/Projects/commits/4294a7cafb1aacd49aea571e4df05eed1a6d9b38"
}
],
"url": "https://api.github.com/repos/aarontemboodev/Projects/commits/0e69db49de0e1048a13f4918240a9dc9776d33d6"
},
"permalink_url": "https://github.com/aarontemboodev/Projects/compare/aarontemboodev:0e69db4...aarontemboodev:be7a18e",
"diff_url": "https://github.com/aarontemboodev/Projects/compare/master...be7a18ed79ccbd80f7ad161a88f0b7c1beab0495.diff",
"behind_by": 2,
"files": [],
"url": "https://api.github.com/repos/aarontemboodev/Projects/compare/master...be7a18ed79ccbd80f7ad161a88f0b7c1beab0495"
}