{"action":"created","comment":{"url":"https://api.github.com/repos/coala/community/pulls/comments/208374951","pull_request_review_id":144171683,"id":208374951,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODM3NDk1MQ==","diff_hunk":"@@ -0,0 +1,61 @@\n+ISSUE_POINTS_DICT = {\n+    'difficulty/newcomer': 5,\n+    'difficulty/low': 7,\n+    'difficulty/medium': 15,\n+    'difficulty/high': 20,\n+    'importance/low': 5,\n+    'importance/medium': 7,\n+    'importance/high': 10,\n+    'importance/critical': 13,\n+    'area/documentation': 5,\n+    'area/upstream': 7,\n+    'area/genericbears': 10,\n+    'area/lintbears': 7,\n+    'area/nativebears': 5,\n+    'type/bug': 5,\n+    'type/feature': 5,\n+    'bear proposal': 5,\n+    'status/invalid': -5,\n+    'status/duplicate': -5,\n+}\n+\n+MR_POINTS_DICT = {\n+    'difficulty/newcomer': 7,\n+    'difficulty/low': 10,\n+    'difficulty/medium': 15,\n+    'difficulty/high': 20,\n+    'importance/low': 5,\n+    'importance/medium': 7,\n+    'importance/high': 10,\n+    'importance/critical': 13,\n+    'area/documentation': 7,\n+    'area/upstream': 7,\n+    'area/genericbears': 13,\n+    'area/lintbears': 10,\n+    'area/nativebears': 7,\n+    'type/bug': 10,\n+    'type/feature': 7,\n+    'bear proposal': 5,\n+    'status/invalid': -5,\n+    'status/duplicate': -5,\n+}\n+\n+\n+def get_total_points(activity_type, labels):","path":"gamification/data/points.py","position":44,"original_position":44,"commit_id":"fa3530aa35bb398cce386bdd80bce7b97d59d48f","original_commit_id":"fa3530aa35bb398cce386bdd80bce7b97d59d48f","user":{"login":"jayvdb","id":15092,"node_id":"MDQ6VXNlcjE1MDky","avatar_url":"https://avatars1.githubusercontent.com/u/15092?v=4","gravatar_id":"","url":"https://api.github.com/users/jayvdb","html_url":"https://github.com/jayvdb","followers_url":"https://api.github.com/users/jayvdb/followers","following_url":"https://api.github.com/users/jayvdb/following{/other_user}","gists_url":"https://api.github.com/users/jayvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvdb/subscriptions","organizations_url":"https://api.github.com/users/jayvdb/orgs","repos_url":"https://api.github.com/users/jayvdb/repos","events_url":"https://api.github.com/users/jayvdb/events{/privacy}","received_events_url":"https://api.github.com/users/jayvdb/received_events","type":"User","site_admin":false},"body":"this isnt 'data'.\r\n\r\nit belongs in a different subcomponent.","created_at":"2018-08-07T20:31:26Z","updated_at":"2018-08-07T20:42:58Z","html_url":"https://github.com/coala/community/pull/160#discussion_r208374951","pull_request_url":"https://api.github.com/repos/coala/community/pulls/160","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/coala/community/pulls/comments/208374951"},"html":{"href":"https://github.com/coala/community/pull/160#discussion_r208374951"},"pull_request":{"href":"https://api.github.com/repos/coala/community/pulls/160"}}},"pull_request":{"url":"https://api.github.com/repos/coala/community/pulls/160","id":198113542,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MTEzNTQy","html_url":"https://github.com/coala/community/pull/160","diff_url":"https://github.com/coala/community/pull/160.diff","patch_url":"https://github.com/coala/community/pull/160.patch","issue_url":"https://api.github.com/repos/coala/community/issues/160","number":160,"state":"open","locked":false,"title":"Add gamification app","user":{"login":"sks444","id":22263040,"node_id":"MDQ6VXNlcjIyMjYzMDQw","avatar_url":"https://avatars0.githubusercontent.com/u/22263040?v=4","gravatar_id":"","url":"https://api.github.com/users/sks444","html_url":"https://github.com/sks444","followers_url":"https://api.github.com/users/sks444/followers","following_url":"https://api.github.com/users/sks444/following{/other_user}","gists_url":"https://api.github.com/users/sks444/gists{/gist_id}","starred_url":"https://api.github.com/users/sks444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sks444/subscriptions","organizations_url":"https://api.github.com/users/sks444/orgs","repos_url":"https://api.github.com/users/sks444/repos","events_url":"https://api.github.com/users/sks444/events{/privacy}","received_events_url":"https://api.github.com/users/sks444/received_events","type":"User","site_admin":false},"body":"**WIP**\r\n\r\n**commit 1, 2 and 3 is from other prs and will be removed when all the work is done**\r\n\r\n**Deploy Preview** https://deploy-preview-160--coala-community.netlify.com/gamification/\r\n\r\nAssumptions and Todo:\r\n\r\n- Using pastebin links to import the data as webservices is not up yet.\r\n\r\n- Points, levels, and badges are not finalized yet, I have assigned random points, just to test if all the methods are working properly.","created_at":"2018-06-28T18:23:54Z","updated_at":"2018-08-07T20:42:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38f52e09d2eb2196d4507b670f66f150d41cbe26","assignee":{"login":"sks444","id":22263040,"node_id":"MDQ6VXNlcjIyMjYzMDQw","avatar_url":"https://avatars0.githubusercontent.com/u/22263040?v=4","gravatar_id":"","url":"https://api.github.com/users/sks444","html_url":"https://github.com/sks444","followers_url":"https://api.github.com/users/sks444/followers","following_url":"https://api.github.com/users/sks444/following{/other_user}","gists_url":"https://api.github.com/users/sks444/gists{/gist_id}","starred_url":"https://api.github.com/users/sks444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sks444/subscriptions","organizations_url":"https://api.github.com/users/sks444/orgs","repos_url":"https://api.github.com/users/sks444/repos","events_url":"https://api.github.com/users/sks444/events{/privacy}","received_events_url":"https://api.github.com/users/sks444/received_events","type":"User","site_admin":false},"assignees":[{"login":"sks444","id":22263040,"node_id":"MDQ6VXNlcjIyMjYzMDQw","avatar_url":"https://avatars0.githubusercontent.com/u/22263040?v=4","gravatar_id":"","url":"https://api.github.com/users/sks444","html_url":"https://github.com/sks444","followers_url":"https://api.github.com/users/sks444/followers","following_url":"https://api.github.com/users/sks444/following{/other_user}","gists_url":"https://api.github.com/users/sks444/gists{/gist_id}","starred_url":"https://api.github.com/users/sks444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sks444/subscriptions","organizations_url":"https://api.github.com/users/sks444/orgs","repos_url":"https://api.github.com/users/sks444/repos","events_url":"https://api.github.com/users/sks444/events{/privacy}","received_events_url":"https://api.github.com/users/sks444/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"gkrishnan724","id":21004514,"node_id":"MDQ6VXNlcjIxMDA0NTE0","avatar_url":"https://avatars3.githubusercontent.com/u/21004514?v=4","gravatar_id":"","url":"https://api.github.com/users/gkrishnan724","html_url":"https://github.com/gkrishnan724","followers_url":"https://api.github.com/users/gkrishnan724/followers","following_url":"https://api.github.com/users/gkrishnan724/following{/other_user}","gists_url":"https://api.github.com/users/gkrishnan724/gists{/gist_id}","starred_url":"https://api.github.com/users/gkrishnan724/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkrishnan724/subscriptions","organizations_url":"https://api.github.com/users/gkrishnan724/orgs","repos_url":"https://api.github.com/users/gkrishnan724/repos","events_url":"https://api.github.com/users/gkrishnan724/events{/privacy}","received_events_url":"https://api.github.com/users/gkrishnan724/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":766216467,"node_id":"MDU6TGFiZWw3NjYyMTY0Njc=","url":"https://api.github.com/repos/coala/community/labels/difficulty/medium","name":"difficulty/medium","color":"0052cc","default":false},{"id":769801210,"node_id":"MDU6TGFiZWw3Njk4MDEyMTA=","url":"https://api.github.com/repos/coala/community/labels/process/pending%20review","name":"process/pending review","color":"ededed","default":false},{"id":778599186,"node_id":"MDU6TGFiZWw3Nzg1OTkxODY=","url":"https://api.github.com/repos/coala/community/labels/size/XXL","name":"size/XXL","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/coala/community/pulls/160/commits","review_comments_url":"https://api.github.com/repos/coala/community/pulls/160/comments","review_comment_url":"https://api.github.com/repos/coala/community/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/community/issues/160/comments","statuses_url":"https://api.github.com/repos/coala/community/statuses/fa3530aa35bb398cce386bdd80bce7b97d59d48f","head":{"label":"sks444:gamification1","ref":"gamification1","sha":"fa3530aa35bb398cce386bdd80bce7b97d59d48f","user":{"login":"sks444","id":22263040,"node_id":"MDQ6VXNlcjIyMjYzMDQw","avatar_url":"https://avatars0.githubusercontent.com/u/22263040?v=4","gravatar_id":"","url":"https://api.github.com/users/sks444","html_url":"https://github.com/sks444","followers_url":"https://api.github.com/users/sks444/followers","following_url":"https://api.github.com/users/sks444/following{/other_user}","gists_url":"https://api.github.com/users/sks444/gists{/gist_id}","starred_url":"https://api.github.com/users/sks444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sks444/subscriptions","organizations_url":"https://api.github.com/users/sks444/orgs","repos_url":"https://api.github.com/users/sks444/repos","events_url":"https://api.github.com/users/sks444/events{/privacy}","received_events_url":"https://api.github.com/users/sks444/received_events","type":"User","site_admin":false},"repo":{"id":112772969,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI3NzI5Njk=","name":"community","full_name":"sks444/community","owner":{"login":"sks444","id":22263040,"node_id":"MDQ6VXNlcjIyMjYzMDQw","avatar_url":"https://avatars0.githubusercontent.com/u/22263040?v=4","gravatar_id":"","url":"https://api.github.com/users/sks444","html_url":"https://github.com/sks444","followers_url":"https://api.github.com/users/sks444/followers","following_url":"https://api.github.com/users/sks444/following{/other_user}","gists_url":"https://api.github.com/users/sks444/gists{/gist_id}","starred_url":"https://api.github.com/users/sks444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sks444/subscriptions","organizations_url":"https://api.github.com/users/sks444/orgs","repos_url":"https://api.github.com/users/sks444/repos","events_url":"https://api.github.com/users/sks444/events{/privacy}","received_events_url":"https://api.github.com/users/sks444/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sks444/community","description":null,"fork":true,"url":"https://api.github.com/repos/sks444/community","forks_url":"https://api.github.com/repos/sks444/community/forks","keys_url":"https://api.github.com/repos/sks444/community/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sks444/community/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sks444/community/teams","hooks_url":"https://api.github.com/repos/sks444/community/hooks","issue_events_url":"https://api.github.com/repos/sks444/community/issues/events{/number}","events_url":"https://api.github.com/repos/sks444/community/events","assignees_url":"https://api.github.com/repos/sks444/community/assignees{/user}","branches_url":"https://api.github.com/repos/sks444/community/branches{/branch}","tags_url":"https://api.github.com/repos/sks444/community/tags","blobs_url":"https://api.github.com/repos/sks444/community/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sks444/community/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sks444/community/git/refs{/sha}","trees_url":"https://api.github.com/repos/sks444/community/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sks444/community/statuses/{sha}","languages_url":"https://api.github.com/repos/sks444/community/languages","stargazers_url":"https://api.github.com/repos/sks444/community/stargazers","contributors_url":"https://api.github.com/repos/sks444/community/contributors","subscribers_url":"https://api.github.com/repos/sks444/community/subscribers","subscription_url":"https://api.github.com/repos/sks444/community/subscription","commits_url":"https://api.github.com/repos/sks444/community/commits{/sha}","git_commits_url":"https://api.github.com/repos/sks444/community/git/commits{/sha}","comments_url":"https://api.github.com/repos/sks444/community/comments{/number}","issue_comment_url":"https://api.github.com/repos/sks444/community/issues/comments{/number}","contents_url":"https://api.github.com/repos/sks444/community/contents/{+path}","compare_url":"https://api.github.com/repos/sks444/community/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sks444/community/merges","archive_url":"https://api.github.com/repos/sks444/community/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sks444/community/downloads","issues_url":"https://api.github.com/repos/sks444/community/issues{/number}","pulls_url":"https://api.github.com/repos/sks444/community/pulls{/number}","milestones_url":"https://api.github.com/repos/sks444/community/milestones{/number}","notifications_url":"https://api.github.com/repos/sks444/community/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sks444/community/labels{/name}","releases_url":"https://api.github.com/repos/sks444/community/releases{/id}","deployments_url":"https://api.github.com/repos/sks444/community/deployments","created_at":"2017-12-01T18:25:28Z","updated_at":"2018-08-06T16:05:48Z","pushed_at":"2018-08-07T19:20:37Z","git_url":"git://github.com/sks444/community.git","ssh_url":"git@github.com:sks444/community.git","clone_url":"https://github.com/sks444/community.git","svn_url":"https://github.com/sks444/community","homepage":null,"size":331,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"coala:master","ref":"master","sha":"b62e2e35cff8de9944a4743874f6fcc6ac361126","user":{"login":"coala","id":10620750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjIwNzUw","avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"repo":{"id":112669631,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI2Njk2MzE=","name":"community","full_name":"coala/community","owner":{"login":"coala","id":10620750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjIwNzUw","avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala/community","description":"Generic re-usable community site","fork":false,"url":"https://api.github.com/repos/coala/community","forks_url":"https://api.github.com/repos/coala/community/forks","keys_url":"https://api.github.com/repos/coala/community/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala/community/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala/community/teams","hooks_url":"https://api.github.com/repos/coala/community/hooks","issue_events_url":"https://api.github.com/repos/coala/community/issues/events{/number}","events_url":"https://api.github.com/repos/coala/community/events","assignees_url":"https://api.github.com/repos/coala/community/assignees{/user}","branches_url":"https://api.github.com/repos/coala/community/branches{/branch}","tags_url":"https://api.github.com/repos/coala/community/tags","blobs_url":"https://api.github.com/repos/coala/community/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala/community/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala/community/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala/community/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala/community/statuses/{sha}","languages_url":"https://api.github.com/repos/coala/community/languages","stargazers_url":"https://api.github.com/repos/coala/community/stargazers","contributors_url":"https://api.github.com/repos/coala/community/contributors","subscribers_url":"https://api.github.com/repos/coala/community/subscribers","subscription_url":"https://api.github.com/repos/coala/community/subscription","commits_url":"https://api.github.com/repos/coala/community/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala/community/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala/community/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala/community/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala/community/contents/{+path}","compare_url":"https://api.github.com/repos/coala/community/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala/community/merges","archive_url":"https://api.github.com/repos/coala/community/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala/community/downloads","issues_url":"https://api.github.com/repos/coala/community/issues{/number}","pulls_url":"https://api.github.com/repos/coala/community/pulls{/number}","milestones_url":"https://api.github.com/repos/coala/community/milestones{/number}","notifications_url":"https://api.github.com/repos/coala/community/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala/community/labels{/name}","releases_url":"https://api.github.com/repos/coala/community/releases{/id}","deployments_url":"https://api.github.com/repos/coala/community/deployments","created_at":"2017-11-30T22:51:36Z","updated_at":"2018-08-06T15:35:49Z","pushed_at":"2018-08-07T19:20:40Z","git_url":"git://github.com/coala/community.git","ssh_url":"git@github.com:coala/community.git","clone_url":"https://github.com/coala/community.git","svn_url":"https://github.com/coala/community","homepage":"http://coala-community.netlify.com/","size":2904,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":48,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":28,"open_issues":48,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/community/pulls/160"},"html":{"href":"https://github.com/coala/community/pull/160"},"issue":{"href":"https://api.github.com/repos/coala/community/issues/160"},"comments":{"href":"https://api.github.com/repos/coala/community/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/community/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/community/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/community/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/coala/community/statuses/fa3530aa35bb398cce386bdd80bce7b97d59d48f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jayvdb"}}