3572 lines
200 KiB
Go
3572 lines
200 KiB
Go
package github
|
|
|
|
func commitCommentEventJSON() string {
|
|
return `{
|
|
"action": "created",
|
|
"comment": {
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/comments/11056394",
|
|
"html_url": "https://github.com/baxterthehacker/public-repo/commit/9049f1265b7d61be4a8904a9a27120d2064dab3b#commitcomment-11056394",
|
|
"id": 11056394,
|
|
"user": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"position": null,
|
|
"line": null,
|
|
"path": null,
|
|
"commit_id": "9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
|
"created_at": "2015-05-05T23:40:29Z",
|
|
"updated_at": "2015-05-05T23:40:29Z",
|
|
"body": "This is a really good change! :+1:"
|
|
},
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:12Z",
|
|
"pushed_at": "2015-05-05T23:40:27Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 0,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func deleteEventJSON() string {
|
|
return `{
|
|
"ref": "simple-tag",
|
|
"ref_type": "tag",
|
|
"pusher_type": "user",
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:30Z",
|
|
"pushed_at": "2015-05-05T23:40:40Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 0,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func deploymentEventJSON() string {
|
|
return `{
|
|
"deployment": {
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/deployments/710692",
|
|
"id": 710692,
|
|
"sha": "9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
|
"ref": "master",
|
|
"task": "deploy",
|
|
"payload": {
|
|
},
|
|
"environment": "production",
|
|
"description": null,
|
|
"creator": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"created_at": "2015-05-05T23:40:38Z",
|
|
"updated_at": "2015-05-05T23:40:38Z",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/deployments/710692/statuses",
|
|
"repository_url": "https://api.github.com/repos/baxterthehacker/public-repo"
|
|
},
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:30Z",
|
|
"pushed_at": "2015-05-05T23:40:38Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 0,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func deploymentStatusEventJSON() string {
|
|
return `{
|
|
"deployment": {
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/deployments/710692",
|
|
"id": 710692,
|
|
"sha": "9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
|
"ref": "master",
|
|
"task": "deploy",
|
|
"payload": {
|
|
},
|
|
"environment": "production",
|
|
"description": null,
|
|
"creator": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"created_at": "2015-05-05T23:40:38Z",
|
|
"updated_at": "2015-05-05T23:40:38Z",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/deployments/710692/statuses",
|
|
"repository_url": "https://api.github.com/repos/baxterthehacker/public-repo"
|
|
},
|
|
"deployment_status": {
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/deployments/710692/statuses/1115122",
|
|
"id": 1115122,
|
|
"state": "success",
|
|
"creator": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"description": null,
|
|
"target_url": null,
|
|
"created_at": "2015-05-05T23:40:39Z",
|
|
"updated_at": "2015-05-05T23:40:39Z",
|
|
"deployment_url": "https://api.github.com/repos/baxterthehacker/public-repo/deployments/710692",
|
|
"repository_url": "https://api.github.com/repos/baxterthehacker/public-repo"
|
|
},
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:30Z",
|
|
"pushed_at": "2015-05-05T23:40:38Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 0,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}
|
|
`
|
|
}
|
|
|
|
func forkEventJSON() string {
|
|
return `{
|
|
"forkee": {
|
|
"id": 35129393,
|
|
"name": "public-repo",
|
|
"full_name": "baxterandthehackers/public-repo",
|
|
"owner": {
|
|
"login": "baxterandthehackers",
|
|
"id": 7649605,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/7649605?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterandthehackers",
|
|
"html_url": "https://github.com/baxterandthehackers",
|
|
"followers_url": "https://api.github.com/users/baxterandthehackers/followers",
|
|
"following_url": "https://api.github.com/users/baxterandthehackers/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterandthehackers/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterandthehackers/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterandthehackers/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterandthehackers/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterandthehackers/repos",
|
|
"events_url": "https://api.github.com/users/baxterandthehackers/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterandthehackers/received_events",
|
|
"type": "Organization",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterandthehackers/public-repo",
|
|
"description": "",
|
|
"fork": true,
|
|
"url": "https://api.github.com/repos/baxterandthehackers/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterandthehackers/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterandthehackers/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterandthehackers/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterandthehackers/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterandthehackers/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterandthehackers/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterandthehackers/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterandthehackers/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterandthehackers/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterandthehackers/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterandthehackers/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterandthehackers/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterandthehackers/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterandthehackers/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterandthehackers/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterandthehackers/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterandthehackers/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterandthehackers/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterandthehackers/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterandthehackers/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterandthehackers/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterandthehackers/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterandthehackers/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterandthehackers/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterandthehackers/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterandthehackers/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterandthehackers/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterandthehackers/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterandthehackers/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterandthehackers/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterandthehackers/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterandthehackers/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterandthehackers/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterandthehackers/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterandthehackers/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:30Z",
|
|
"updated_at": "2015-05-05T23:40:30Z",
|
|
"pushed_at": "2015-05-05T23:40:27Z",
|
|
"git_url": "git://github.com/baxterandthehackers/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterandthehackers/public-repo.git",
|
|
"clone_url": "https://github.com/baxterandthehackers/public-repo.git",
|
|
"svn_url": "https://github.com/baxterandthehackers/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": false,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 0,
|
|
"forks": 0,
|
|
"open_issues": 0,
|
|
"watchers": 0,
|
|
"default_branch": "master",
|
|
"public": true
|
|
},
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:30Z",
|
|
"pushed_at": "2015-05-05T23:40:27Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 1,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 1,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterandthehackers",
|
|
"id": 7649605,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/7649605?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterandthehackers",
|
|
"html_url": "https://github.com/baxterandthehackers",
|
|
"followers_url": "https://api.github.com/users/baxterandthehackers/followers",
|
|
"following_url": "https://api.github.com/users/baxterandthehackers/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterandthehackers/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterandthehackers/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterandthehackers/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterandthehackers/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterandthehackers/repos",
|
|
"events_url": "https://api.github.com/users/baxterandthehackers/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterandthehackers/received_events",
|
|
"type": "Organization",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func gollumEventJSON() string {
|
|
return `{
|
|
"pages": [
|
|
{
|
|
"page_name": "Home",
|
|
"title": "Home",
|
|
"summary": null,
|
|
"action": "created",
|
|
"sha": "91ea1bd42aa2ba166b86e8aefe049e9837214e67",
|
|
"html_url": "https://github.com/baxterthehacker/public-repo/wiki/Home"
|
|
}
|
|
],
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:12Z",
|
|
"pushed_at": "2015-05-05T23:40:17Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 0,
|
|
"forks": 0,
|
|
"open_issues": 0,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "jasonrudolph",
|
|
"id": 2988,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/2988?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/jasonrudolph",
|
|
"html_url": "https://github.com/jasonrudolph",
|
|
"followers_url": "https://api.github.com/users/jasonrudolph/followers",
|
|
"following_url": "https://api.github.com/users/jasonrudolph/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/jasonrudolph/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/jasonrudolph/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/jasonrudolph/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/jasonrudolph/orgs",
|
|
"repos_url": "https://api.github.com/users/jasonrudolph/repos",
|
|
"events_url": "https://api.github.com/users/jasonrudolph/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/jasonrudolph/received_events",
|
|
"type": "User",
|
|
"site_admin": true
|
|
}
|
|
}`
|
|
}
|
|
|
|
func issueCommentEventJSON() string {
|
|
return `{
|
|
"action": "created",
|
|
"issue": {
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/labels{/name}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/comments",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/events",
|
|
"html_url": "https://github.com/baxterthehacker/public-repo/issues/2",
|
|
"id": 73464126,
|
|
"number": 2,
|
|
"title": "Spelling error in the README file",
|
|
"user": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"labels": [
|
|
{
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/labels/bug",
|
|
"name": "bug",
|
|
"color": "fc2929"
|
|
}
|
|
],
|
|
"state": "open",
|
|
"locked": false,
|
|
"assignee": null,
|
|
"milestone": null,
|
|
"comments": 1,
|
|
"created_at": "2015-05-05T23:40:28Z",
|
|
"updated_at": "2015-05-05T23:40:28Z",
|
|
"closed_at": null,
|
|
"body": "It looks like you accidently spelled 'commit' with two 't's."
|
|
},
|
|
"comment": {
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments/99262140",
|
|
"html_url": "https://github.com/baxterthehacker/public-repo/issues/2#issuecomment-99262140",
|
|
"issue_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2",
|
|
"id": 99262140,
|
|
"user": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"created_at": "2015-05-05T23:40:28Z",
|
|
"updated_at": "2015-05-05T23:40:28Z",
|
|
"body": "You are totally right! I'll get this fixed right away."
|
|
},
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:12Z",
|
|
"pushed_at": "2015-05-05T23:40:27Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 0,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func issuesEventJSON() string {
|
|
return `{
|
|
"action": "opened",
|
|
"issue": {
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/labels{/name}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/comments",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/events",
|
|
"html_url": "https://github.com/baxterthehacker/public-repo/issues/2",
|
|
"id": 73464126,
|
|
"number": 2,
|
|
"title": "Spelling error in the README file",
|
|
"user": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"labels": [
|
|
{
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/labels/bug",
|
|
"name": "bug",
|
|
"color": "fc2929"
|
|
}
|
|
],
|
|
"state": "open",
|
|
"locked": false,
|
|
"assignee": null,
|
|
"milestone": null,
|
|
"comments": 0,
|
|
"created_at": "2015-05-05T23:40:28Z",
|
|
"updated_at": "2015-05-05T23:40:28Z",
|
|
"closed_at": null,
|
|
"body": "It looks like you accidently spelled 'commit' with two 't's."
|
|
},
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:12Z",
|
|
"pushed_at": "2015-05-05T23:40:27Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 0,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func memberEventJSON() string {
|
|
return `{
|
|
"action": "added",
|
|
"member": {
|
|
"login": "octocat",
|
|
"id": 583231,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/octocat",
|
|
"html_url": "https://github.com/octocat",
|
|
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:30Z",
|
|
"pushed_at": "2015-05-05T23:40:40Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 0,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func membershipEventJSON() string {
|
|
return `{
|
|
"action": "added",
|
|
"scope": "team",
|
|
"member": {
|
|
"login": "kdaigle",
|
|
"id": 2501,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/2501?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/kdaigle",
|
|
"html_url": "https://github.com/kdaigle",
|
|
"followers_url": "https://api.github.com/users/kdaigle/followers",
|
|
"following_url": "https://api.github.com/users/kdaigle/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/kdaigle/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/kdaigle/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/kdaigle/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/kdaigle/orgs",
|
|
"repos_url": "https://api.github.com/users/kdaigle/repos",
|
|
"events_url": "https://api.github.com/users/kdaigle/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/kdaigle/received_events",
|
|
"type": "User",
|
|
"site_admin": true
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=2",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"team": {
|
|
"name": "Contractors",
|
|
"id": 123456,
|
|
"slug": "contractors",
|
|
"permission": "admin",
|
|
"url": "https://api.github.com/teams/123456",
|
|
"members_url": "https://api.github.com/teams/123456/members{/member}",
|
|
"repositories_url": "https://api.github.com/teams/123456/repos"
|
|
},
|
|
"organization": {
|
|
"login": "baxterandthehackers",
|
|
"id": 7649605,
|
|
"url": "https://api.github.com/orgs/baxterandthehackers",
|
|
"repos_url": "https://api.github.com/orgs/baxterandthehackers/repos",
|
|
"events_url": "https://api.github.com/orgs/baxterandthehackers/events",
|
|
"members_url": "https://api.github.com/orgs/baxterandthehackers/members{/member}",
|
|
"public_members_url": "https://api.github.com/orgs/baxterandthehackers/public_members{/member}",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/7649605?v=2"
|
|
}
|
|
}`
|
|
}
|
|
|
|
func pageBuildEventJSON() string {
|
|
return `{
|
|
"id": 15995382,
|
|
"build": {
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/pages/builds/15995382",
|
|
"status": "built",
|
|
"error": {
|
|
"message": null
|
|
},
|
|
"pusher": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"commit": "053b99542c83021d6b202d1a1f5ecd5ef7084e55",
|
|
"duration": 3790,
|
|
"created_at": "2015-05-05T23:40:13Z",
|
|
"updated_at": "2015-05-05T23:40:17Z"
|
|
},
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:12Z",
|
|
"pushed_at": "2015-05-05T23:40:17Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 0,
|
|
"forks": 0,
|
|
"open_issues": 0,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func publicEventJSON() string {
|
|
return `{
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:41Z",
|
|
"pushed_at": "2015-05-05T23:40:40Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 0,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func pullRequestReviewCommentEventJSON() string {
|
|
return `{
|
|
"action": "created",
|
|
"comment": {
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments/29724692",
|
|
"id": 29724692,
|
|
"diff_hunk": "@@ -1 +1 @@\n-# public-repo",
|
|
"path": "README.md",
|
|
"position": 1,
|
|
"original_position": 1,
|
|
"commit_id": "0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c",
|
|
"original_commit_id": "0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c",
|
|
"user": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"body": "Maybe you should use more emojji on this line.",
|
|
"created_at": "2015-05-05T23:40:27Z",
|
|
"updated_at": "2015-05-05T23:40:27Z",
|
|
"html_url": "https://github.com/baxterthehacker/public-repo/pull/1#discussion_r29724692",
|
|
"pull_request_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1",
|
|
"_links": {
|
|
"self": {
|
|
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments/29724692"
|
|
},
|
|
"html": {
|
|
"href": "https://github.com/baxterthehacker/public-repo/pull/1#discussion_r29724692"
|
|
},
|
|
"pull_request": {
|
|
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1"
|
|
}
|
|
}
|
|
},
|
|
"pull_request": {
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1",
|
|
"id": 34778301,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo/pull/1",
|
|
"diff_url": "https://github.com/baxterthehacker/public-repo/pull/1.diff",
|
|
"patch_url": "https://github.com/baxterthehacker/public-repo/pull/1.patch",
|
|
"issue_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/1",
|
|
"number": 1,
|
|
"state": "open",
|
|
"locked": false,
|
|
"title": "Update the README with new information",
|
|
"user": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"body": "This is a pretty simple change that we need to pull into master.",
|
|
"created_at": "2015-05-05T23:40:27Z",
|
|
"updated_at": "2015-05-05T23:40:27Z",
|
|
"closed_at": null,
|
|
"merged_at": null,
|
|
"merge_commit_sha": "18721552ba489fb84e12958c1b5694b5475f7991",
|
|
"assignee": null,
|
|
"milestone": null,
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/commits",
|
|
"review_comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/comments",
|
|
"review_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments{/number}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/1/comments",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c",
|
|
"head": {
|
|
"label": "baxterthehacker:changes",
|
|
"ref": "changes",
|
|
"sha": "0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c",
|
|
"user": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"repo": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:12Z",
|
|
"pushed_at": "2015-05-05T23:40:27Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 1,
|
|
"forks": 0,
|
|
"open_issues": 1,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
}
|
|
},
|
|
"base": {
|
|
"label": "baxterthehacker:master",
|
|
"ref": "master",
|
|
"sha": "9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
|
"user": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"repo": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:12Z",
|
|
"pushed_at": "2015-05-05T23:40:27Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 1,
|
|
"forks": 0,
|
|
"open_issues": 1,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
}
|
|
},
|
|
"_links": {
|
|
"self": {
|
|
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1"
|
|
},
|
|
"html": {
|
|
"href": "https://github.com/baxterthehacker/public-repo/pull/1"
|
|
},
|
|
"issue": {
|
|
"href": "https://api.github.com/repos/baxterthehacker/public-repo/issues/1"
|
|
},
|
|
"comments": {
|
|
"href": "https://api.github.com/repos/baxterthehacker/public-repo/issues/1/comments"
|
|
},
|
|
"review_comments": {
|
|
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/comments"
|
|
},
|
|
"review_comment": {
|
|
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments{/number}"
|
|
},
|
|
"commits": {
|
|
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/commits"
|
|
},
|
|
"statuses": {
|
|
"href": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c"
|
|
}
|
|
}
|
|
},
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:12Z",
|
|
"pushed_at": "2015-05-05T23:40:27Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 1,
|
|
"forks": 0,
|
|
"open_issues": 1,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func pushEventJSON() string {
|
|
return `{
|
|
"ref": "refs/heads/changes",
|
|
"before": "9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
|
"after": "0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c",
|
|
"created": false,
|
|
"deleted": false,
|
|
"forced": false,
|
|
"base_ref": null,
|
|
"compare": "https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f",
|
|
"commits": [
|
|
{
|
|
"id": "0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c",
|
|
"distinct": true,
|
|
"message": "Update README.md",
|
|
"timestamp": "2015-05-05T19:40:15-04:00",
|
|
"url": "https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c",
|
|
"author": {
|
|
"name": "baxterthehacker",
|
|
"email": "baxterthehacker@users.noreply.github.com",
|
|
"username": "baxterthehacker"
|
|
},
|
|
"committer": {
|
|
"name": "baxterthehacker",
|
|
"email": "baxterthehacker@users.noreply.github.com",
|
|
"username": "baxterthehacker"
|
|
},
|
|
"added": [
|
|
|
|
],
|
|
"removed": [
|
|
|
|
],
|
|
"modified": [
|
|
"README.md"
|
|
]
|
|
}
|
|
],
|
|
"head_commit": {
|
|
"id": "0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c",
|
|
"distinct": true,
|
|
"message": "Update README.md",
|
|
"timestamp": "2015-05-05T19:40:15-04:00",
|
|
"url": "https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c",
|
|
"author": {
|
|
"name": "baxterthehacker",
|
|
"email": "baxterthehacker@users.noreply.github.com",
|
|
"username": "baxterthehacker"
|
|
},
|
|
"committer": {
|
|
"name": "baxterthehacker",
|
|
"email": "baxterthehacker@users.noreply.github.com",
|
|
"username": "baxterthehacker"
|
|
},
|
|
"added": [
|
|
|
|
],
|
|
"removed": [
|
|
|
|
],
|
|
"modified": [
|
|
"README.md"
|
|
]
|
|
},
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"name": "baxterthehacker",
|
|
"email": "baxterthehacker@users.noreply.github.com"
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://github.com/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": 1430869212,
|
|
"updated_at": "2015-05-05T23:40:12Z",
|
|
"pushed_at": 1430869217,
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 0,
|
|
"forks": 0,
|
|
"open_issues": 0,
|
|
"watchers": 0,
|
|
"default_branch": "master",
|
|
"stargazers": 0,
|
|
"master_branch": "master"
|
|
},
|
|
"pusher": {
|
|
"name": "baxterthehacker",
|
|
"email": "baxterthehacker@users.noreply.github.com"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func repositoryEventJSON() string {
|
|
return `{
|
|
"action": "created",
|
|
"repository": {
|
|
"id": 27496774,
|
|
"name": "new-repository",
|
|
"full_name": "baxterandthehackers/new-repository",
|
|
"owner": {
|
|
"login": "baxterandthehackers",
|
|
"id": 7649605,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/7649605?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterandthehackers",
|
|
"html_url": "https://github.com/baxterandthehackers",
|
|
"followers_url": "https://api.github.com/users/baxterandthehackers/followers",
|
|
"following_url": "https://api.github.com/users/baxterandthehackers/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterandthehackers/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterandthehackers/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterandthehackers/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterandthehackers/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterandthehackers/repos",
|
|
"events_url": "https://api.github.com/users/baxterandthehackers/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterandthehackers/received_events",
|
|
"type": "Organization",
|
|
"site_admin": false
|
|
},
|
|
"private": true,
|
|
"html_url": "https://github.com/baxterandthehackers/new-repository",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterandthehackers/new-repository",
|
|
"forks_url": "https://api.github.com/repos/baxterandthehackers/new-repository/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterandthehackers/new-repository/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterandthehackers/new-repository/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterandthehackers/new-repository/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterandthehackers/new-repository/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterandthehackers/new-repository/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterandthehackers/new-repository/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterandthehackers/new-repository/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterandthehackers/new-repository/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterandthehackers/new-repository/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterandthehackers/new-repository/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterandthehackers/new-repository/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterandthehackers/new-repository/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterandthehackers/new-repository/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterandthehackers/new-repository/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterandthehackers/new-repository/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterandthehackers/new-repository/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterandthehackers/new-repository/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterandthehackers/new-repository/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterandthehackers/new-repository/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterandthehackers/new-repository/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterandthehackers/new-repository/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterandthehackers/new-repository/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterandthehackers/new-repository/issues/comments/{number}",
|
|
"contents_url": "https://api.github.com/repos/baxterandthehackers/new-repository/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterandthehackers/new-repository/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterandthehackers/new-repository/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterandthehackers/new-repository/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterandthehackers/new-repository/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterandthehackers/new-repository/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterandthehackers/new-repository/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterandthehackers/new-repository/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterandthehackers/new-repository/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterandthehackers/new-repository/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterandthehackers/new-repository/releases{/id}",
|
|
"created_at": "2014-12-03T16:39:25Z",
|
|
"updated_at": "2014-12-03T16:39:25Z",
|
|
"pushed_at": "2014-12-03T16:39:25Z",
|
|
"git_url": "git://github.com/baxterandthehackers/new-repository.git",
|
|
"ssh_url": "git@github.com:baxterandthehackers/new-repository.git",
|
|
"clone_url": "https://github.com/baxterandthehackers/new-repository.git",
|
|
"svn_url": "https://github.com/baxterandthehackers/new-repository",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": false,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 0,
|
|
"forks": 0,
|
|
"open_issues": 0,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"organization": {
|
|
"login": "baxterandthehackers",
|
|
"id": 7649605,
|
|
"url": "https://api.github.com/orgs/baxterandthehackers",
|
|
"repos_url": "https://api.github.com/orgs/baxterandthehackers/repos",
|
|
"events_url": "https://api.github.com/orgs/baxterandthehackers/events",
|
|
"members_url": "https://api.github.com/orgs/baxterandthehackers/members{/member}",
|
|
"public_members_url": "https://api.github.com/orgs/baxterandthehackers/public_members{/member}",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/7649605?v=2"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=2",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func releaseEventJSON() string {
|
|
return `{
|
|
"action": "published",
|
|
"release": {
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/releases/1261438",
|
|
"assets_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases/1261438/assets",
|
|
"upload_url": "https://uploads.github.com/repos/baxterthehacker/public-repo/releases/1261438/assets{?name}",
|
|
"html_url": "https://github.com/baxterthehacker/public-repo/releases/tag/0.0.1",
|
|
"id": 1261438,
|
|
"tag_name": "0.0.1",
|
|
"target_commitish": "master",
|
|
"name": null,
|
|
"draft": false,
|
|
"author": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"prerelease": false,
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"published_at": "2015-05-05T23:40:38Z",
|
|
"assets": [
|
|
|
|
],
|
|
"tarball_url": "https://api.github.com/repos/baxterthehacker/public-repo/tarball/0.0.1",
|
|
"zipball_url": "https://api.github.com/repos/baxterthehacker/public-repo/zipball/0.0.1",
|
|
"body": null
|
|
},
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:30Z",
|
|
"pushed_at": "2015-05-05T23:40:38Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 0,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func statusEventJSON() string {
|
|
return `{
|
|
"id": 214015194,
|
|
"sha": "9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
|
"name": "baxterthehacker/public-repo",
|
|
"target_url": null,
|
|
"context": "default",
|
|
"description": null,
|
|
"state": "success",
|
|
"commit": {
|
|
"sha": "9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
|
"commit": {
|
|
"author": {
|
|
"name": "baxterthehacker",
|
|
"email": "baxterthehacker@users.noreply.github.com",
|
|
"date": "2015-05-05T23:40:12Z"
|
|
},
|
|
"committer": {
|
|
"name": "baxterthehacker",
|
|
"email": "baxterthehacker@users.noreply.github.com",
|
|
"date": "2015-05-05T23:40:12Z"
|
|
},
|
|
"message": "Initial commit",
|
|
"tree": {
|
|
"sha": "02b49ad0ba4f1acd9f06531b21e16a4ac5d341d0",
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees/02b49ad0ba4f1acd9f06531b21e16a4ac5d341d0"
|
|
},
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits/9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
|
"comment_count": 1
|
|
},
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/commits/9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
|
"html_url": "https://github.com/baxterthehacker/public-repo/commit/9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits/9049f1265b7d61be4a8904a9a27120d2064dab3b/comments",
|
|
"author": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"committer": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"parents": [
|
|
|
|
]
|
|
},
|
|
"branches": [
|
|
{
|
|
"name": "master",
|
|
"commit": {
|
|
"sha": "9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/commits/9049f1265b7d61be4a8904a9a27120d2064dab3b"
|
|
}
|
|
},
|
|
{
|
|
"name": "changes",
|
|
"commit": {
|
|
"sha": "0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c",
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/commits/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c"
|
|
}
|
|
},
|
|
{
|
|
"name": "gh-pages",
|
|
"commit": {
|
|
"sha": "b11bb7545ac14abafc6191a0481b0d961e7793c6",
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo/commits/b11bb7545ac14abafc6191a0481b0d961e7793c6"
|
|
}
|
|
}
|
|
],
|
|
"created_at": "2015-05-05T23:40:39Z",
|
|
"updated_at": "2015-05-05T23:40:39Z",
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:30Z",
|
|
"pushed_at": "2015-05-05T23:40:39Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 0,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func teamAddEventJSON() string {
|
|
return `{
|
|
"team": {
|
|
"name": "github",
|
|
"id": 836012,
|
|
"slug": "github",
|
|
"description": "",
|
|
"permission": "pull",
|
|
"url": "https://api.github.com/teams/836012",
|
|
"members_url": "https://api.github.com/teams/836012/members{/member}",
|
|
"repositories_url": "https://api.github.com/teams/836012/repos"
|
|
},
|
|
"repository": {
|
|
"id": 35129393,
|
|
"name": "public-repo",
|
|
"full_name": "baxterandthehackers/public-repo",
|
|
"owner": {
|
|
"login": "baxterandthehackers",
|
|
"id": 7649605,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/7649605?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterandthehackers",
|
|
"html_url": "https://github.com/baxterandthehackers",
|
|
"followers_url": "https://api.github.com/users/baxterandthehackers/followers",
|
|
"following_url": "https://api.github.com/users/baxterandthehackers/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterandthehackers/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterandthehackers/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterandthehackers/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterandthehackers/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterandthehackers/repos",
|
|
"events_url": "https://api.github.com/users/baxterandthehackers/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterandthehackers/received_events",
|
|
"type": "Organization",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterandthehackers/public-repo",
|
|
"description": "",
|
|
"fork": true,
|
|
"url": "https://api.github.com/repos/baxterandthehackers/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterandthehackers/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterandthehackers/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterandthehackers/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterandthehackers/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterandthehackers/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterandthehackers/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterandthehackers/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterandthehackers/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterandthehackers/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterandthehackers/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterandthehackers/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterandthehackers/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterandthehackers/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterandthehackers/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterandthehackers/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterandthehackers/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterandthehackers/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterandthehackers/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterandthehackers/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterandthehackers/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterandthehackers/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterandthehackers/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterandthehackers/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterandthehackers/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterandthehackers/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterandthehackers/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterandthehackers/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterandthehackers/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterandthehackers/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterandthehackers/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterandthehackers/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterandthehackers/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterandthehackers/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterandthehackers/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterandthehackers/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:30Z",
|
|
"updated_at": "2015-05-05T23:40:30Z",
|
|
"pushed_at": "2015-05-05T23:40:27Z",
|
|
"git_url": "git://github.com/baxterandthehackers/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterandthehackers/public-repo.git",
|
|
"clone_url": "https://github.com/baxterandthehackers/public-repo.git",
|
|
"svn_url": "https://github.com/baxterandthehackers/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": false,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 0,
|
|
"forks": 0,
|
|
"open_issues": 0,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"organization": {
|
|
"login": "baxterandthehackers",
|
|
"id": 7649605,
|
|
"url": "https://api.github.com/orgs/baxterandthehackers",
|
|
"repos_url": "https://api.github.com/orgs/baxterandthehackers/repos",
|
|
"events_url": "https://api.github.com/orgs/baxterandthehackers/events",
|
|
"members_url": "https://api.github.com/orgs/baxterandthehackers/members{/member}",
|
|
"public_members_url": "https://api.github.com/orgs/baxterandthehackers/public_members{/member}",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/7649605?v=3",
|
|
"description": null
|
|
},
|
|
"sender": {
|
|
"login": "baxterandthehackers",
|
|
"id": 7649605,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/7649605?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterandthehackers",
|
|
"html_url": "https://github.com/baxterandthehackers",
|
|
"followers_url": "https://api.github.com/users/baxterandthehackers/followers",
|
|
"following_url": "https://api.github.com/users/baxterandthehackers/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterandthehackers/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterandthehackers/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterandthehackers/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterandthehackers/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterandthehackers/repos",
|
|
"events_url": "https://api.github.com/users/baxterandthehackers/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterandthehackers/received_events",
|
|
"type": "Organization",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func watchEventJSON() string {
|
|
return `{
|
|
"action": "started",
|
|
"repository": {
|
|
"id": 35129377,
|
|
"name": "public-repo",
|
|
"full_name": "baxterthehacker/public-repo",
|
|
"owner": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
},
|
|
"private": false,
|
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
|
"description": "",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
|
"created_at": "2015-05-05T23:40:12Z",
|
|
"updated_at": "2015-05-05T23:40:30Z",
|
|
"pushed_at": "2015-05-05T23:40:27Z",
|
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
|
"homepage": null,
|
|
"size": 0,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": null,
|
|
"has_issues": true,
|
|
"has_downloads": true,
|
|
"has_wiki": true,
|
|
"has_pages": true,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"open_issues_count": 2,
|
|
"forks": 0,
|
|
"open_issues": 2,
|
|
"watchers": 0,
|
|
"default_branch": "master"
|
|
},
|
|
"sender": {
|
|
"login": "baxterthehacker",
|
|
"id": 6752317,
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/baxterthehacker",
|
|
"html_url": "https://github.com/baxterthehacker",
|
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
|
"type": "User",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func WorkflowJobJSON() string {
|
|
return `{
|
|
"action": "completed",
|
|
"workflow_job": {
|
|
"id": 34960636490,
|
|
"run_id": 12537003369,
|
|
"workflow_name": ".NET",
|
|
"head_branch": "feature/test",
|
|
"run_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/actions/runs/12537003369",
|
|
"run_attempt": 1,
|
|
"node_id": "CR_kwDONd0bVc8AAAAII9D6Sg",
|
|
"head_sha": "2c4f2526866d85e29bd7caea0791d861a0c713aa",
|
|
"url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/actions/jobs/34960636490",
|
|
"html_url": "https://github.com/DeusDeorum1/yhome-controller/actions/runs/12537003369/job/34960636490",
|
|
"status": "completed",
|
|
"conclusion": "success",
|
|
"created_at": "2024-12-29T16:28:44Z",
|
|
"started_at": "2024-12-29T16:28:50Z",
|
|
"completed_at": "2024-12-29T16:29:17Z",
|
|
"name": "Run build",
|
|
"steps": [
|
|
{
|
|
"name": "Set up job",
|
|
"status": "completed",
|
|
"conclusion": "success",
|
|
"number": 1,
|
|
"started_at": "2024-12-29T16:28:49Z",
|
|
"completed_at": "2024-12-29T16:28:50Z"
|
|
},
|
|
{
|
|
"name": "Checkout",
|
|
"status": "completed",
|
|
"conclusion": "success",
|
|
"number": 2,
|
|
"started_at": "2024-12-29T16:28:50Z",
|
|
"completed_at": "2024-12-29T16:28:51Z"
|
|
}
|
|
],
|
|
"check_run_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/check-runs/34960636490",
|
|
"labels": [
|
|
"ubuntu-latest"
|
|
],
|
|
"runner_id": 3,
|
|
"runner_name": "GitHub Actions 3",
|
|
"runner_group_id": 2,
|
|
"runner_group_name": "GitHub Actions"
|
|
},
|
|
"repository": {
|
|
"id": 903682901,
|
|
"node_id": "R_kgDONd0bVQ",
|
|
"name": "yhome-controller",
|
|
"full_name": "DeusDeorum1/yhome-controller",
|
|
"private": true,
|
|
"owner": {
|
|
"login": "DeusDeorum1",
|
|
"id": 23059354,
|
|
"node_id": "MDQ6VXNlcjIzMDU5MzU0",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/23059354?v=4",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/DeusDeorum1",
|
|
"html_url": "https://github.com/DeusDeorum1",
|
|
"followers_url": "https://api.github.com/users/DeusDeorum1/followers",
|
|
"following_url": "https://api.github.com/users/DeusDeorum1/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/DeusDeorum1/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/DeusDeorum1/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/DeusDeorum1/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/DeusDeorum1/orgs",
|
|
"repos_url": "https://api.github.com/users/DeusDeorum1/repos",
|
|
"events_url": "https://api.github.com/users/DeusDeorum1/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/DeusDeorum1/received_events",
|
|
"type": "User",
|
|
"user_view_type": "public",
|
|
"site_admin": false
|
|
},
|
|
"html_url": "https://github.com/DeusDeorum1/yhome-controller",
|
|
"description": null,
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/DeusDeorum1/yhome-controller",
|
|
"forks_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/forks",
|
|
"keys_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/teams",
|
|
"hooks_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/events",
|
|
"assignees_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/tags",
|
|
"blobs_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/languages",
|
|
"stargazers_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/subscription",
|
|
"commits_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/merges",
|
|
"archive_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/downloads",
|
|
"issues_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/releases{/id}",
|
|
"deployments_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/deployments",
|
|
"created_at": "2024-12-15T09:23:35Z",
|
|
"updated_at": "2024-12-22T14:25:20Z",
|
|
"pushed_at": "2024-12-29T16:28:40Z",
|
|
"git_url": "git://github.com/DeusDeorum1/yhome-controller.git",
|
|
"ssh_url": "git@github.com:DeusDeorum1/yhome-controller.git",
|
|
"clone_url": "https://github.com/DeusDeorum1/yhome-controller.git",
|
|
"svn_url": "https://github.com/DeusDeorum1/yhome-controller",
|
|
"homepage": null,
|
|
"size": 813,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": "C#",
|
|
"has_issues": true,
|
|
"has_projects": true,
|
|
"has_downloads": true,
|
|
"has_wiki": false,
|
|
"has_pages": false,
|
|
"has_discussions": false,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"archived": false,
|
|
"disabled": false,
|
|
"open_issues_count": 0,
|
|
"license": null,
|
|
"allow_forking": true,
|
|
"is_template": false,
|
|
"web_commit_signoff_required": false,
|
|
"topics": [
|
|
|
|
],
|
|
"visibility": "private",
|
|
"forks": 0,
|
|
"open_issues": 0,
|
|
"watchers": 0,
|
|
"default_branch": "develop"
|
|
},
|
|
"sender": {
|
|
"login": "DeusDeorum1",
|
|
"id": 23059354,
|
|
"node_id": "MDQ6VXNlcjIzMDU5MzU0",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/23059354?v=4",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/DeusDeorum1",
|
|
"html_url": "https://github.com/DeusDeorum1",
|
|
"followers_url": "https://api.github.com/users/DeusDeorum1/followers",
|
|
"following_url": "https://api.github.com/users/DeusDeorum1/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/DeusDeorum1/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/DeusDeorum1/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/DeusDeorum1/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/DeusDeorum1/orgs",
|
|
"repos_url": "https://api.github.com/users/DeusDeorum1/repos",
|
|
"events_url": "https://api.github.com/users/DeusDeorum1/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/DeusDeorum1/received_events",
|
|
"type": "User",
|
|
"user_view_type": "public",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|
|
|
|
func WorkflowRunJSON() string {
|
|
return `{
|
|
"action": "completed",
|
|
"workflow_run": {
|
|
"id": 12537003369,
|
|
"name": ".NET",
|
|
"node_id": "WFR_kwLONd0bVc8AAAAC60N9aQ",
|
|
"head_branch": "feature/test",
|
|
"head_sha": "2c4f2526866d85e29bd7caea0791d861a0c713aa",
|
|
"path": ".github/workflows/dotnet.yml",
|
|
"display_title": "fix step name (#15)",
|
|
"run_number": 52,
|
|
"event": "push",
|
|
"status": "completed",
|
|
"conclusion": "success",
|
|
"workflow_id": 133367596,
|
|
"check_suite_id": 32519948712,
|
|
"check_suite_node_id": "CS_kwDONd0bVc8AAAAHklcJqA",
|
|
"url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/actions/runs/12537003369",
|
|
"html_url": "https://github.com/DeusDeorum1/yhome-controller/actions/runs/12537003369",
|
|
"pull_requests": [
|
|
|
|
],
|
|
"created_at": "2024-12-29T16:28:42Z",
|
|
"updated_at": "2024-12-29T16:30:08Z",
|
|
"actor": {
|
|
"login": "DeusDeorum1",
|
|
"id": 23059354,
|
|
"node_id": "MDQ6VXNlcjIzMDU5MzU0",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/23059354?v=4",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/DeusDeorum1",
|
|
"html_url": "https://github.com/DeusDeorum1",
|
|
"followers_url": "https://api.github.com/users/DeusDeorum1/followers",
|
|
"following_url": "https://api.github.com/users/DeusDeorum1/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/DeusDeorum1/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/DeusDeorum1/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/DeusDeorum1/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/DeusDeorum1/orgs",
|
|
"repos_url": "https://api.github.com/users/DeusDeorum1/repos",
|
|
"events_url": "https://api.github.com/users/DeusDeorum1/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/DeusDeorum1/received_events",
|
|
"type": "User",
|
|
"user_view_type": "public",
|
|
"site_admin": false
|
|
},
|
|
"run_attempt": 1,
|
|
"referenced_workflows": [
|
|
|
|
],
|
|
"run_started_at": "2024-12-29T16:28:42Z",
|
|
"triggering_actor": {
|
|
"login": "DeusDeorum1",
|
|
"id": 23059354,
|
|
"node_id": "MDQ6VXNlcjIzMDU5MzU0",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/23059354?v=4",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/DeusDeorum1",
|
|
"html_url": "https://github.com/DeusDeorum1",
|
|
"followers_url": "https://api.github.com/users/DeusDeorum1/followers",
|
|
"following_url": "https://api.github.com/users/DeusDeorum1/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/DeusDeorum1/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/DeusDeorum1/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/DeusDeorum1/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/DeusDeorum1/orgs",
|
|
"repos_url": "https://api.github.com/users/DeusDeorum1/repos",
|
|
"events_url": "https://api.github.com/users/DeusDeorum1/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/DeusDeorum1/received_events",
|
|
"type": "User",
|
|
"user_view_type": "public",
|
|
"site_admin": false
|
|
},
|
|
"jobs_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/actions/runs/12537003369/jobs",
|
|
"logs_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/actions/runs/12537003369/logs",
|
|
"check_suite_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/check-suites/32519948712",
|
|
"artifacts_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/actions/runs/12537003369/artifacts",
|
|
"cancel_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/actions/runs/12537003369/cancel",
|
|
"rerun_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/actions/runs/12537003369/rerun",
|
|
"previous_attempt_url": null,
|
|
"workflow_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/actions/workflows/133367596",
|
|
"head_commit": {
|
|
"id": "2c4f2526866d85e29bd7caea0791d861a0c713aa",
|
|
"tree_id": "332883d5db0e30b010eac21edf512ba6f005eb92",
|
|
"message": "fix step name (#15)",
|
|
"timestamp": "2024-12-22T14:25:16Z",
|
|
"author": {
|
|
"name": "Arina2106",
|
|
"email": "77919706+Arina2106@users.noreply.github.com"
|
|
},
|
|
"committer": {
|
|
"name": "GitHub",
|
|
"email": "noreply@github.com"
|
|
}
|
|
},
|
|
"repository": {
|
|
"id": 903682901,
|
|
"node_id": "R_kgDONd0bVQ",
|
|
"name": "yhome-controller",
|
|
"full_name": "DeusDeorum1/yhome-controller",
|
|
"private": true,
|
|
"owner": {
|
|
"login": "DeusDeorum1",
|
|
"id": 23059354,
|
|
"node_id": "MDQ6VXNlcjIzMDU5MzU0",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/23059354?v=4",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/DeusDeorum1",
|
|
"html_url": "https://github.com/DeusDeorum1",
|
|
"followers_url": "https://api.github.com/users/DeusDeorum1/followers",
|
|
"following_url": "https://api.github.com/users/DeusDeorum1/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/DeusDeorum1/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/DeusDeorum1/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/DeusDeorum1/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/DeusDeorum1/orgs",
|
|
"repos_url": "https://api.github.com/users/DeusDeorum1/repos",
|
|
"events_url": "https://api.github.com/users/DeusDeorum1/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/DeusDeorum1/received_events",
|
|
"type": "User",
|
|
"user_view_type": "public",
|
|
"site_admin": false
|
|
},
|
|
"html_url": "https://github.com/DeusDeorum1/yhome-controller",
|
|
"description": null,
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/DeusDeorum1/yhome-controller",
|
|
"forks_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/forks",
|
|
"keys_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/teams",
|
|
"hooks_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/events",
|
|
"assignees_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/tags",
|
|
"blobs_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/languages",
|
|
"stargazers_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/subscription",
|
|
"commits_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/merges",
|
|
"archive_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/downloads",
|
|
"issues_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/releases{/id}",
|
|
"deployments_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/deployments"
|
|
},
|
|
"head_repository": {
|
|
"id": 903682901,
|
|
"node_id": "R_kgDONd0bVQ",
|
|
"name": "yhome-controller",
|
|
"full_name": "DeusDeorum1/yhome-controller",
|
|
"private": true,
|
|
"owner": {
|
|
"login": "DeusDeorum1",
|
|
"id": 23059354,
|
|
"node_id": "MDQ6VXNlcjIzMDU5MzU0",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/23059354?v=4",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/DeusDeorum1",
|
|
"html_url": "https://github.com/DeusDeorum1",
|
|
"followers_url": "https://api.github.com/users/DeusDeorum1/followers",
|
|
"following_url": "https://api.github.com/users/DeusDeorum1/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/DeusDeorum1/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/DeusDeorum1/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/DeusDeorum1/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/DeusDeorum1/orgs",
|
|
"repos_url": "https://api.github.com/users/DeusDeorum1/repos",
|
|
"events_url": "https://api.github.com/users/DeusDeorum1/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/DeusDeorum1/received_events",
|
|
"type": "User",
|
|
"user_view_type": "public",
|
|
"site_admin": false
|
|
},
|
|
"html_url": "https://github.com/DeusDeorum1/yhome-controller",
|
|
"description": null,
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/DeusDeorum1/yhome-controller",
|
|
"forks_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/forks",
|
|
"keys_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/teams",
|
|
"hooks_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/events",
|
|
"assignees_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/tags",
|
|
"blobs_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/languages",
|
|
"stargazers_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/subscription",
|
|
"commits_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/merges",
|
|
"archive_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/downloads",
|
|
"issues_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/releases{/id}",
|
|
"deployments_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/deployments"
|
|
}
|
|
},
|
|
"workflow": {
|
|
"id": 133367596,
|
|
"node_id": "W_kwDONd0bVc4H8wcs",
|
|
"name": ".NET",
|
|
"path": ".github/workflows/dotnet.yml",
|
|
"state": "active",
|
|
"created_at": "2024-12-15T09:57:52.000Z",
|
|
"updated_at": "2024-12-15T12:11:31.000Z",
|
|
"url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/actions/workflows/133367596",
|
|
"html_url": "https://github.com/DeusDeorum1/yhome-controller/blob/develop/.github/workflows/dotnet.yml",
|
|
"badge_url": "https://github.com/DeusDeorum1/yhome-controller/workflows/.NET/badge.svg"
|
|
},
|
|
"repository": {
|
|
"id": 903682901,
|
|
"node_id": "R_kgDONd0bVQ",
|
|
"name": "yhome-controller",
|
|
"full_name": "DeusDeorum1/yhome-controller",
|
|
"private": true,
|
|
"owner": {
|
|
"login": "DeusDeorum1",
|
|
"id": 23059354,
|
|
"node_id": "MDQ6VXNlcjIzMDU5MzU0",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/23059354?v=4",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/DeusDeorum1",
|
|
"html_url": "https://github.com/DeusDeorum1",
|
|
"followers_url": "https://api.github.com/users/DeusDeorum1/followers",
|
|
"following_url": "https://api.github.com/users/DeusDeorum1/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/DeusDeorum1/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/DeusDeorum1/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/DeusDeorum1/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/DeusDeorum1/orgs",
|
|
"repos_url": "https://api.github.com/users/DeusDeorum1/repos",
|
|
"events_url": "https://api.github.com/users/DeusDeorum1/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/DeusDeorum1/received_events",
|
|
"type": "User",
|
|
"user_view_type": "public",
|
|
"site_admin": false
|
|
},
|
|
"html_url": "https://github.com/DeusDeorum1/yhome-controller",
|
|
"description": null,
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/DeusDeorum1/yhome-controller",
|
|
"forks_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/forks",
|
|
"keys_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/teams",
|
|
"hooks_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/events",
|
|
"assignees_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/tags",
|
|
"blobs_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/languages",
|
|
"stargazers_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/subscription",
|
|
"commits_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/merges",
|
|
"archive_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/downloads",
|
|
"issues_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/releases{/id}",
|
|
"deployments_url": "https://api.github.com/repos/DeusDeorum1/yhome-controller/deployments",
|
|
"created_at": "2024-12-15T09:23:35Z",
|
|
"updated_at": "2024-12-22T14:25:20Z",
|
|
"pushed_at": "2024-12-29T16:28:40Z",
|
|
"git_url": "git://github.com/DeusDeorum1/yhome-controller.git",
|
|
"ssh_url": "git@github.com:DeusDeorum1/yhome-controller.git",
|
|
"clone_url": "https://github.com/DeusDeorum1/yhome-controller.git",
|
|
"svn_url": "https://github.com/DeusDeorum1/yhome-controller",
|
|
"homepage": null,
|
|
"size": 813,
|
|
"stargazers_count": 0,
|
|
"watchers_count": 0,
|
|
"language": "C#",
|
|
"has_issues": true,
|
|
"has_projects": true,
|
|
"has_downloads": true,
|
|
"has_wiki": false,
|
|
"has_pages": false,
|
|
"has_discussions": false,
|
|
"forks_count": 0,
|
|
"mirror_url": null,
|
|
"archived": false,
|
|
"disabled": false,
|
|
"open_issues_count": 0,
|
|
"license": null,
|
|
"allow_forking": true,
|
|
"is_template": false,
|
|
"web_commit_signoff_required": false,
|
|
"topics": [
|
|
|
|
],
|
|
"visibility": "private",
|
|
"forks": 0,
|
|
"open_issues": 0,
|
|
"watchers": 0,
|
|
"default_branch": "develop"
|
|
},
|
|
"sender": {
|
|
"login": "DeusDeorum1",
|
|
"id": 23059354,
|
|
"node_id": "MDQ6VXNlcjIzMDU5MzU0",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/23059354?v=4",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/DeusDeorum1",
|
|
"html_url": "https://github.com/DeusDeorum1",
|
|
"followers_url": "https://api.github.com/users/DeusDeorum1/followers",
|
|
"following_url": "https://api.github.com/users/DeusDeorum1/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/DeusDeorum1/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/DeusDeorum1/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/DeusDeorum1/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/DeusDeorum1/orgs",
|
|
"repos_url": "https://api.github.com/users/DeusDeorum1/repos",
|
|
"events_url": "https://api.github.com/users/DeusDeorum1/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/DeusDeorum1/received_events",
|
|
"type": "User",
|
|
"user_view_type": "public",
|
|
"site_admin": false
|
|
}
|
|
}`
|
|
}
|