|
| 1 | +package codecheck.github.events |
| 2 | + |
| 3 | +import org.json4s.jackson.JsonMethods |
| 4 | + |
| 5 | +trait IssueEventJson { |
| 6 | + |
| 7 | + val issueEventJson = JsonMethods.parse( |
| 8 | + """ |
| 9 | + |{ |
| 10 | + | "action": "opened", |
| 11 | + | "issue": { |
| 12 | + | "url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2", |
| 13 | + | "labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/labels{/name}", |
| 14 | + | "comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/comments", |
| 15 | + | "events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/events", |
| 16 | + | "html_url": "https://github.com/baxterthehacker/public-repo/issues/2", |
| 17 | + | "id": 73464126, |
| 18 | + | "number": 2, |
| 19 | + | "title": "Spelling error in the README file", |
| 20 | + | "user": { |
| 21 | + | "login": "baxterthehacker", |
| 22 | + | "id": 6752317, |
| 23 | + | "avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3", |
| 24 | + | "gravatar_id": "", |
| 25 | + | "url": "https://api.github.com/users/baxterthehacker", |
| 26 | + | "html_url": "https://github.com/baxterthehacker", |
| 27 | + | "followers_url": "https://api.github.com/users/baxterthehacker/followers", |
| 28 | + | "following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}", |
| 29 | + | "gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", |
| 30 | + | "starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}", |
| 31 | + | "subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions", |
| 32 | + | "organizations_url": "https://api.github.com/users/baxterthehacker/orgs", |
| 33 | + | "repos_url": "https://api.github.com/users/baxterthehacker/repos", |
| 34 | + | "events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", |
| 35 | + | "received_events_url": "https://api.github.com/users/baxterthehacker/received_events", |
| 36 | + | "type": "User", |
| 37 | + | "site_admin": false |
| 38 | + | }, |
| 39 | + | "labels": [ |
| 40 | + | { |
| 41 | + | "url": "https://api.github.com/repos/baxterthehacker/public-repo/labels/bug", |
| 42 | + | "name": "bug", |
| 43 | + | "color": "fc2929" |
| 44 | + | } |
| 45 | + | ], |
| 46 | + | "state": "open", |
| 47 | + | "locked": false, |
| 48 | + | "assignee": null, |
| 49 | + | "milestone": null, |
| 50 | + | "comments": 0, |
| 51 | + | "created_at": "2015-05-05T23:40:28Z", |
| 52 | + | "updated_at": "2015-05-05T23:40:28Z", |
| 53 | + | "closed_at": null, |
| 54 | + | "body": "It looks like you accidently spelled 'commit' with two 't's." |
| 55 | + | }, |
| 56 | + | "repository": { |
| 57 | + | "id": 35129377, |
| 58 | + | "name": "public-repo", |
| 59 | + | "full_name": "baxterthehacker/public-repo", |
| 60 | + | "owner": { |
| 61 | + | "login": "baxterthehacker", |
| 62 | + | "id": 6752317, |
| 63 | + | "avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3", |
| 64 | + | "gravatar_id": "", |
| 65 | + | "url": "https://api.github.com/users/baxterthehacker", |
| 66 | + | "html_url": "https://github.com/baxterthehacker", |
| 67 | + | "followers_url": "https://api.github.com/users/baxterthehacker/followers", |
| 68 | + | "following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}", |
| 69 | + | "gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", |
| 70 | + | "starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}", |
| 71 | + | "subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions", |
| 72 | + | "organizations_url": "https://api.github.com/users/baxterthehacker/orgs", |
| 73 | + | "repos_url": "https://api.github.com/users/baxterthehacker/repos", |
| 74 | + | "events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", |
| 75 | + | "received_events_url": "https://api.github.com/users/baxterthehacker/received_events", |
| 76 | + | "type": "User", |
| 77 | + | "site_admin": false |
| 78 | + | }, |
| 79 | + | "private": false, |
| 80 | + | "html_url": "https://github.com/baxterthehacker/public-repo", |
| 81 | + | "description": "", |
| 82 | + | "fork": false, |
| 83 | + | "url": "https://api.github.com/repos/baxterthehacker/public-repo", |
| 84 | + | "forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks", |
| 85 | + | "keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}", |
| 86 | + | "collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}", |
| 87 | + | "teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams", |
| 88 | + | "hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks", |
| 89 | + | "issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}", |
| 90 | + | "events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events", |
| 91 | + | "assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}", |
| 92 | + | "branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}", |
| 93 | + | "tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags", |
| 94 | + | "blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}", |
| 95 | + | "git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}", |
| 96 | + | "git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}", |
| 97 | + | "trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}", |
| 98 | + | "statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}", |
| 99 | + | "languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages", |
| 100 | + | "stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers", |
| 101 | + | "contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors", |
| 102 | + | "subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers", |
| 103 | + | "subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription", |
| 104 | + | "commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}", |
| 105 | + | "git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}", |
| 106 | + | "comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}", |
| 107 | + | "issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}", |
| 108 | + | "contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}", |
| 109 | + | "compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}", |
| 110 | + | "merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges", |
| 111 | + | "archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}", |
| 112 | + | "downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads", |
| 113 | + | "issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}", |
| 114 | + | "pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}", |
| 115 | + | "milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}", |
| 116 | + | "notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}", |
| 117 | + | "labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}", |
| 118 | + | "releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}", |
| 119 | + | "created_at": "2015-05-05T23:40:12Z", |
| 120 | + | "updated_at": "2015-05-05T23:40:12Z", |
| 121 | + | "pushed_at": "2015-05-05T23:40:27Z", |
| 122 | + | "git_url": "git://github.com/baxterthehacker/public-repo.git", |
| 123 | + | "ssh_url": "[email protected]:baxterthehacker/public-repo.git", |
| 124 | + | "clone_url": "https://github.com/baxterthehacker/public-repo.git", |
| 125 | + | "svn_url": "https://github.com/baxterthehacker/public-repo", |
| 126 | + | "homepage": null, |
| 127 | + | "size": 0, |
| 128 | + | "stargazers_count": 0, |
| 129 | + | "watchers_count": 0, |
| 130 | + | "language": null, |
| 131 | + | "has_issues": true, |
| 132 | + | "has_downloads": true, |
| 133 | + | "has_wiki": true, |
| 134 | + | "has_pages": true, |
| 135 | + | "forks_count": 0, |
| 136 | + | "mirror_url": null, |
| 137 | + | "open_issues_count": 2, |
| 138 | + | "forks": 0, |
| 139 | + | "open_issues": 2, |
| 140 | + | "watchers": 0, |
| 141 | + | "default_branch": "master" |
| 142 | + | }, |
| 143 | + | "sender": { |
| 144 | + | "login": "baxterthehacker", |
| 145 | + | "id": 6752317, |
| 146 | + | "avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3", |
| 147 | + | "gravatar_id": "", |
| 148 | + | "url": "https://api.github.com/users/baxterthehacker", |
| 149 | + | "html_url": "https://github.com/baxterthehacker", |
| 150 | + | "followers_url": "https://api.github.com/users/baxterthehacker/followers", |
| 151 | + | "following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}", |
| 152 | + | "gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", |
| 153 | + | "starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}", |
| 154 | + | "subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions", |
| 155 | + | "organizations_url": "https://api.github.com/users/baxterthehacker/orgs", |
| 156 | + | "repos_url": "https://api.github.com/users/baxterthehacker/repos", |
| 157 | + | "events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", |
| 158 | + | "received_events_url": "https://api.github.com/users/baxterthehacker/received_events", |
| 159 | + | "type": "User", |
| 160 | + | "site_admin": false |
| 161 | + | } |
| 162 | + |}""".stripMargin) |
| 163 | +} |
0 commit comments