From 9a1698d0a4fc1c89d79ce856a4654d1044a3bc47 Mon Sep 17 00:00:00 2001 From: kongr45gpen Date: Thu, 15 Sep 2016 18:33:32 +0300 Subject: Add some sample files --- samples/pr-comment.json | 189 ++++++++++++++++++++++ samples/pr-create.json | 413 ++++++++++++++++++++++++++++++++++++++++++++++++ samples/status.json | 197 +++++++++++++++++++++++ 3 files changed, 799 insertions(+) create mode 100644 samples/pr-comment.json create mode 100644 samples/pr-create.json create mode 100644 samples/status.json (limited to 'samples') diff --git a/samples/pr-comment.json b/samples/pr-comment.json new file mode 100644 index 0000000..7b71ab2 --- /dev/null +++ b/samples/pr-comment.json @@ -0,0 +1,189 @@ +{ + "action": "created", + "issue": { + "url": "https://api.github.com/repos/kongr45gpen/test/issues/7", + "repository_url": "https://api.github.com/repos/kongr45gpen/test", + "labels_url": "https://api.github.com/repos/kongr45gpen/test/issues/7/labels{/name}", + "comments_url": "https://api.github.com/repos/kongr45gpen/test/issues/7/comments", + "events_url": "https://api.github.com/repos/kongr45gpen/test/issues/7/events", + "html_url": "https://github.com/kongr45gpen/test/pull/7", + "id": 177039147, + "number": 7, + "title": "Update README.md", + "user": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [ + + ], + "milestone": null, + "comments": 1, + "created_at": "2016-09-14T22:29:27Z", + "updated_at": "2016-09-15T14:31:29Z", + "closed_at": null, + "pull_request": { + "url": "https://api.github.com/repos/kongr45gpen/test/pulls/7", + "html_url": "https://github.com/kongr45gpen/test/pull/7", + "diff_url": "https://github.com/kongr45gpen/test/pull/7.diff", + "patch_url": "https://github.com/kongr45gpen/test/pull/7.patch" + }, + "body": "Add an optional extended description." + }, + "comment": { + "url": "https://api.github.com/repos/kongr45gpen/test/issues/comments/247345280", + "html_url": "https://github.com/kongr45gpen/test/pull/7#issuecomment-247345280", + "issue_url": "https://api.github.com/repos/kongr45gpen/test/issues/7", + "id": 247345280, + "user": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2016-09-15T14:31:29Z", + "updated_at": "2016-09-15T14:31:29Z", + "body": "This is great!" + }, + "repository": { + "id": 7406434, + "name": "test", + "full_name": "kongr45gpen/test", + "owner": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/kongr45gpen/test", + "description": "You can safely ignore this repo :)", + "fork": false, + "url": "https://api.github.com/repos/kongr45gpen/test", + "forks_url": "https://api.github.com/repos/kongr45gpen/test/forks", + "keys_url": "https://api.github.com/repos/kongr45gpen/test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kongr45gpen/test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kongr45gpen/test/teams", + "hooks_url": "https://api.github.com/repos/kongr45gpen/test/hooks", + "issue_events_url": "https://api.github.com/repos/kongr45gpen/test/issues/events{/number}", + "events_url": "https://api.github.com/repos/kongr45gpen/test/events", + "assignees_url": "https://api.github.com/repos/kongr45gpen/test/assignees{/user}", + "branches_url": "https://api.github.com/repos/kongr45gpen/test/branches{/branch}", + "tags_url": "https://api.github.com/repos/kongr45gpen/test/tags", + "blobs_url": "https://api.github.com/repos/kongr45gpen/test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kongr45gpen/test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kongr45gpen/test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kongr45gpen/test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kongr45gpen/test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kongr45gpen/test/languages", + "stargazers_url": "https://api.github.com/repos/kongr45gpen/test/stargazers", + "contributors_url": "https://api.github.com/repos/kongr45gpen/test/contributors", + "subscribers_url": "https://api.github.com/repos/kongr45gpen/test/subscribers", + "subscription_url": "https://api.github.com/repos/kongr45gpen/test/subscription", + "commits_url": "https://api.github.com/repos/kongr45gpen/test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kongr45gpen/test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kongr45gpen/test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kongr45gpen/test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kongr45gpen/test/contents/{+path}", + "compare_url": "https://api.github.com/repos/kongr45gpen/test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kongr45gpen/test/merges", + "archive_url": "https://api.github.com/repos/kongr45gpen/test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kongr45gpen/test/downloads", + "issues_url": "https://api.github.com/repos/kongr45gpen/test/issues{/number}", + "pulls_url": "https://api.github.com/repos/kongr45gpen/test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kongr45gpen/test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kongr45gpen/test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kongr45gpen/test/labels{/name}", + "releases_url": "https://api.github.com/repos/kongr45gpen/test/releases{/id}", + "deployments_url": "https://api.github.com/repos/kongr45gpen/test/deployments", + "created_at": "2013-01-02T12:33:20Z", + "updated_at": "2016-02-07T12:41:16Z", + "pushed_at": "2016-09-14T22:29:27Z", + "git_url": "git://github.com/kongr45gpen/test.git", + "ssh_url": "git@github.com:kongr45gpen/test.git", + "clone_url": "https://github.com/kongr45gpen/test.git", + "svn_url": "https://github.com/kongr45gpen/test", + "homepage": "", + "size": 20, + "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": 4, + "forks": 0, + "open_issues": 4, + "watchers": 0, + "default_branch": "pullr1" + }, + "sender": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/samples/pr-create.json b/samples/pr-create.json new file mode 100644 index 0000000..b4866ed --- /dev/null +++ b/samples/pr-create.json @@ -0,0 +1,413 @@ +{ + "action": "opened", + "number": 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": null, + "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:26Z", + "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:26Z", + "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" + } + }, + "merged": false, + "mergeable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 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:26Z", + "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 + } +} + diff --git a/samples/status.json b/samples/status.json new file mode 100644 index 0000000..e402837 --- /dev/null +++ b/samples/status.json @@ -0,0 +1,197 @@ +{ + "id": 753767077, + "sha": "731b45d003fbc6ed671bd61d3215a910786db0a8", + "name": "kongr45gpen/supybot-github", + "target_url": "https://travis-ci.org/kongr45gpen/supybot-github/builds/160199852", + "context": "continuous-integration/travis-ci/push", + "description": "The Travis CI build is in progress", + "state": "pending", + "commit": { + "sha": "731b45d003fbc6ed671bd61d3215a910786db0a8", + "commit": { + "author": { + "name": "kongr45gpen", + "email": "electrovesta@gmail.com", + "date": "2016-09-15T15:29:42Z" + }, + "committer": { + "name": "kongr45gpen", + "email": "electrovesta@gmail.com", + "date": "2016-09-15T15:29:42Z" + }, + "message": "Use limnoria for tests", + "tree": { + "sha": "9008612f65e8a1062dd76efc704eb8412eaa34bd", + "url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/trees/9008612f65e8a1062dd76efc704eb8412eaa34bd" + }, + "url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/commits/731b45d003fbc6ed671bd61d3215a910786db0a8", + "comment_count": 0 + }, + "url": "https://api.github.com/repos/kongr45gpen/supybot-github/commits/731b45d003fbc6ed671bd61d3215a910786db0a8", + "html_url": "https://github.com/kongr45gpen/supybot-github/commit/731b45d003fbc6ed671bd61d3215a910786db0a8", + "comments_url": "https://api.github.com/repos/kongr45gpen/supybot-github/commits/731b45d003fbc6ed671bd61d3215a910786db0a8/comments", + "author": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + }, + "committer": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + }, + "parents": [ + { + "sha": "810828948c4175c36fa196146ce45d58c89c0b74", + "url": "https://api.github.com/repos/kongr45gpen/supybot-github/commits/810828948c4175c36fa196146ce45d58c89c0b74", + "html_url": "https://github.com/kongr45gpen/supybot-github/commit/810828948c4175c36fa196146ce45d58c89c0b74" + } + ] + }, + "branches": [ + { + "name": "master", + "commit": { + "sha": "731b45d003fbc6ed671bd61d3215a910786db0a8", + "url": "https://api.github.com/repos/kongr45gpen/supybot-github/commits/731b45d003fbc6ed671bd61d3215a910786db0a8" + } + } + ], + "created_at": "2016-09-15T15:31:01Z", + "updated_at": "2016-09-15T15:31:01Z", + "repository": { + "id": 11590921, + "name": "supybot-github", + "full_name": "kongr45gpen/supybot-github", + "owner": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/kongr45gpen/supybot-github", + "description": "Highly configurable and beta limnoria/supybot IRC bot plugin that uses an HTTP webhooks to report commits and other updates from Github repositories", + "fork": false, + "url": "https://api.github.com/repos/kongr45gpen/supybot-github", + "forks_url": "https://api.github.com/repos/kongr45gpen/supybot-github/forks", + "keys_url": "https://api.github.com/repos/kongr45gpen/supybot-github/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kongr45gpen/supybot-github/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kongr45gpen/supybot-github/teams", + "hooks_url": "https://api.github.com/repos/kongr45gpen/supybot-github/hooks", + "issue_events_url": "https://api.github.com/repos/kongr45gpen/supybot-github/issues/events{/number}", + "events_url": "https://api.github.com/repos/kongr45gpen/supybot-github/events", + "assignees_url": "https://api.github.com/repos/kongr45gpen/supybot-github/assignees{/user}", + "branches_url": "https://api.github.com/repos/kongr45gpen/supybot-github/branches{/branch}", + "tags_url": "https://api.github.com/repos/kongr45gpen/supybot-github/tags", + "blobs_url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kongr45gpen/supybot-github/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kongr45gpen/supybot-github/languages", + "stargazers_url": "https://api.github.com/repos/kongr45gpen/supybot-github/stargazers", + "contributors_url": "https://api.github.com/repos/kongr45gpen/supybot-github/contributors", + "subscribers_url": "https://api.github.com/repos/kongr45gpen/supybot-github/subscribers", + "subscription_url": "https://api.github.com/repos/kongr45gpen/supybot-github/subscription", + "commits_url": "https://api.github.com/repos/kongr45gpen/supybot-github/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kongr45gpen/supybot-github/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kongr45gpen/supybot-github/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kongr45gpen/supybot-github/contents/{+path}", + "compare_url": "https://api.github.com/repos/kongr45gpen/supybot-github/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kongr45gpen/supybot-github/merges", + "archive_url": "https://api.github.com/repos/kongr45gpen/supybot-github/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kongr45gpen/supybot-github/downloads", + "issues_url": "https://api.github.com/repos/kongr45gpen/supybot-github/issues{/number}", + "pulls_url": "https://api.github.com/repos/kongr45gpen/supybot-github/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kongr45gpen/supybot-github/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kongr45gpen/supybot-github/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kongr45gpen/supybot-github/labels{/name}", + "releases_url": "https://api.github.com/repos/kongr45gpen/supybot-github/releases{/id}", + "deployments_url": "https://api.github.com/repos/kongr45gpen/supybot-github/deployments", + "created_at": "2013-07-22T19:55:10Z", + "updated_at": "2016-07-19T09:28:38Z", + "pushed_at": "2016-09-15T15:29:51Z", + "git_url": "git://github.com/kongr45gpen/supybot-github.git", + "ssh_url": "git@github.com:kongr45gpen/supybot-github.git", + "clone_url": "https://github.com/kongr45gpen/supybot-github.git", + "svn_url": "https://github.com/kongr45gpen/supybot-github", + "homepage": "http://supybot-github.readthedocs.org/", + "size": 101, + "stargazers_count": 2, + "watchers_count": 2, + "language": "Python", + "has_issues": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "open_issues_count": 3, + "forks": 0, + "open_issues": 3, + "watchers": 2, + "default_branch": "master" + }, + "sender": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + } +} -- cgit v1.2.3