{"action":"created","comment":{"url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/comments/184089489","pull_request_review_id":115213336,"id":184089489,"diff_hunk":"@@ -19,7 +19,7 @@ def metric_tags\n     end\n \n     def metric_fields\n-      { value: 1 }\n+      { project: payload['project'], package: payload['package'], count: Package.count }","path":"src/api/app/models/event/create_package.rb","position":5,"original_position":5,"commit_id":"55761cd471b8f649f49847c8b17dfaac089eda32","original_commit_id":"55761cd471b8f649f49847c8b17dfaac089eda32","user":{"login":"mdeniz","id":11314634,"avatar_url":"https://avatars1.githubusercontent.com/u/11314634?v=4","gravatar_id":"","url":"https://api.github.com/users/mdeniz","html_url":"https://github.com/mdeniz","followers_url":"https://api.github.com/users/mdeniz/followers","following_url":"https://api.github.com/users/mdeniz/following{/other_user}","gists_url":"https://api.github.com/users/mdeniz/gists{/gist_id}","starred_url":"https://api.github.com/users/mdeniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdeniz/subscriptions","organizations_url":"https://api.github.com/users/mdeniz/orgs","repos_url":"https://api.github.com/users/mdeniz/repos","events_url":"https://api.github.com/users/mdeniz/events{/privacy}","received_events_url":"https://api.github.com/users/mdeniz/received_events","type":"User","site_admin":false},"body":"Yes, but we change our mind :grinning: ","created_at":"2018-04-25T14:51:38Z","updated_at":"2018-04-25T14:51:38Z","html_url":"https://github.com/openSUSE/open-build-service/pull/4907#discussion_r184089489","pull_request_url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/4907","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/comments/184089489"},"html":{"href":"https://github.com/openSUSE/open-build-service/pull/4907#discussion_r184089489"},"pull_request":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/4907"}},"in_reply_to_id":184089299},"pull_request":{"url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/4907","id":184059807,"html_url":"https://github.com/openSUSE/open-build-service/pull/4907","diff_url":"https://github.com/openSUSE/open-build-service/pull/4907.diff","patch_url":"https://github.com/openSUSE/open-build-service/pull/4907.patch","issue_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/4907","number":4907,"state":"open","locked":false,"title":"Send total counts of AHM of Project, Package and Requests","user":{"login":"mdeniz","id":11314634,"avatar_url":"https://avatars1.githubusercontent.com/u/11314634?v=4","gravatar_id":"","url":"https://api.github.com/users/mdeniz","html_url":"https://github.com/mdeniz","followers_url":"https://api.github.com/users/mdeniz/followers","following_url":"https://api.github.com/users/mdeniz/following{/other_user}","gists_url":"https://api.github.com/users/mdeniz/gists{/gist_id}","starred_url":"https://api.github.com/users/mdeniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdeniz/subscriptions","organizations_url":"https://api.github.com/users/mdeniz/orgs","repos_url":"https://api.github.com/users/mdeniz/repos","events_url":"https://api.github.com/users/mdeniz/events{/privacy}","received_events_url":"https://api.github.com/users/mdeniz/received_events","type":"User","site_admin":false},"body":"For showing totals for projects, packages and requests while are\r\ncreated/deleted we needed to send the counts","created_at":"2018-04-25T14:41:08Z","updated_at":"2018-04-25T14:51:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3fc21218d7bf2262a87d43d120be213c1af868d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ChrisBr","id":3799140,"avatar_url":"https://avatars1.githubusercontent.com/u/3799140?v=4","gravatar_id":"","url":"https://api.github.com/users/ChrisBr","html_url":"https://github.com/ChrisBr","followers_url":"https://api.github.com/users/ChrisBr/followers","following_url":"https://api.github.com/users/ChrisBr/following{/other_user}","gists_url":"https://api.github.com/users/ChrisBr/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisBr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisBr/subscriptions","organizations_url":"https://api.github.com/users/ChrisBr/orgs","repos_url":"https://api.github.com/users/ChrisBr/repos","events_url":"https://api.github.com/users/ChrisBr/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisBr/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":21922370,"url":"https://api.github.com/repos/openSUSE/open-build-service/labels/Frontend%20%F0%9F%91%BB","name":"Frontend 👻","color":"c7def8","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/4907/commits","review_comments_url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/4907/comments","review_comment_url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/4907/comments","statuses_url":"https://api.github.com/repos/openSUSE/open-build-service/statuses/55761cd471b8f649f49847c8b17dfaac089eda32","head":{"label":"mdeniz:add_counts_to_ahm_notifications","ref":"add_counts_to_ahm_notifications","sha":"55761cd471b8f649f49847c8b17dfaac089eda32","user":{"login":"mdeniz","id":11314634,"avatar_url":"https://avatars1.githubusercontent.com/u/11314634?v=4","gravatar_id":"","url":"https://api.github.com/users/mdeniz","html_url":"https://github.com/mdeniz","followers_url":"https://api.github.com/users/mdeniz/followers","following_url":"https://api.github.com/users/mdeniz/following{/other_user}","gists_url":"https://api.github.com/users/mdeniz/gists{/gist_id}","starred_url":"https://api.github.com/users/mdeniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdeniz/subscriptions","organizations_url":"https://api.github.com/users/mdeniz/orgs","repos_url":"https://api.github.com/users/mdeniz/repos","events_url":"https://api.github.com/users/mdeniz/events{/privacy}","received_events_url":"https://api.github.com/users/mdeniz/received_events","type":"User","site_admin":false},"repo":{"id":38368392,"name":"open-build-service","full_name":"mdeniz/open-build-service","owner":{"login":"mdeniz","id":11314634,"avatar_url":"https://avatars1.githubusercontent.com/u/11314634?v=4","gravatar_id":"","url":"https://api.github.com/users/mdeniz","html_url":"https://github.com/mdeniz","followers_url":"https://api.github.com/users/mdeniz/followers","following_url":"https://api.github.com/users/mdeniz/following{/other_user}","gists_url":"https://api.github.com/users/mdeniz/gists{/gist_id}","starred_url":"https://api.github.com/users/mdeniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdeniz/subscriptions","organizations_url":"https://api.github.com/users/mdeniz/orgs","repos_url":"https://api.github.com/users/mdeniz/repos","events_url":"https://api.github.com/users/mdeniz/events{/privacy}","received_events_url":"https://api.github.com/users/mdeniz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mdeniz/open-build-service","description":"A generic system to build and distribute packages from sources in an automatic, consistent and reproducible way. Release your software for a wide range of operating systems and hardware architectures.","fork":true,"url":"https://api.github.com/repos/mdeniz/open-build-service","forks_url":"https://api.github.com/repos/mdeniz/open-build-service/forks","keys_url":"https://api.github.com/repos/mdeniz/open-build-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdeniz/open-build-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdeniz/open-build-service/teams","hooks_url":"https://api.github.com/repos/mdeniz/open-build-service/hooks","issue_events_url":"https://api.github.com/repos/mdeniz/open-build-service/issues/events{/number}","events_url":"https://api.github.com/repos/mdeniz/open-build-service/events","assignees_url":"https://api.github.com/repos/mdeniz/open-build-service/assignees{/user}","branches_url":"https://api.github.com/repos/mdeniz/open-build-service/branches{/branch}","tags_url":"https://api.github.com/repos/mdeniz/open-build-service/tags","blobs_url":"https://api.github.com/repos/mdeniz/open-build-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdeniz/open-build-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdeniz/open-build-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdeniz/open-build-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdeniz/open-build-service/statuses/{sha}","languages_url":"https://api.github.com/repos/mdeniz/open-build-service/languages","stargazers_url":"https://api.github.com/repos/mdeniz/open-build-service/stargazers","contributors_url":"https://api.github.com/repos/mdeniz/open-build-service/contributors","subscribers_url":"https://api.github.com/repos/mdeniz/open-build-service/subscribers","subscription_url":"https://api.github.com/repos/mdeniz/open-build-service/subscription","commits_url":"https://api.github.com/repos/mdeniz/open-build-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdeniz/open-build-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdeniz/open-build-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdeniz/open-build-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdeniz/open-build-service/contents/{+path}","compare_url":"https://api.github.com/repos/mdeniz/open-build-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdeniz/open-build-service/merges","archive_url":"https://api.github.com/repos/mdeniz/open-build-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdeniz/open-build-service/downloads","issues_url":"https://api.github.com/repos/mdeniz/open-build-service/issues{/number}","pulls_url":"https://api.github.com/repos/mdeniz/open-build-service/pulls{/number}","milestones_url":"https://api.github.com/repos/mdeniz/open-build-service/milestones{/number}","notifications_url":"https://api.github.com/repos/mdeniz/open-build-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdeniz/open-build-service/labels{/name}","releases_url":"https://api.github.com/repos/mdeniz/open-build-service/releases{/id}","deployments_url":"https://api.github.com/repos/mdeniz/open-build-service/deployments","created_at":"2015-07-01T11:49:49Z","updated_at":"2018-04-25T14:19:36Z","pushed_at":"2018-04-25T14:49:44Z","git_url":"git://github.com/mdeniz/open-build-service.git","ssh_url":"git@github.com:mdeniz/open-build-service.git","clone_url":"https://github.com/mdeniz/open-build-service.git","svn_url":"https://github.com/mdeniz/open-build-service","homepage":"http://openbuildservice.org/","size":57959,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openSUSE:master","ref":"master","sha":"bfaa1b7a26d37e6744e8b401718097eb488f209c","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars2.githubusercontent.com/u/623819?v=4","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":2046192,"name":"open-build-service","full_name":"openSUSE/open-build-service","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars2.githubusercontent.com/u/623819?v=4","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openSUSE/open-build-service","description":"A generic system to build and distribute packages from sources in an automatic, consistent and reproducible way. Release your software for a wide range of operating systems and hardware architectures.","fork":false,"url":"https://api.github.com/repos/openSUSE/open-build-service","forks_url":"https://api.github.com/repos/openSUSE/open-build-service/forks","keys_url":"https://api.github.com/repos/openSUSE/open-build-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/open-build-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/open-build-service/teams","hooks_url":"https://api.github.com/repos/openSUSE/open-build-service/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/open-build-service/events","assignees_url":"https://api.github.com/repos/openSUSE/open-build-service/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/open-build-service/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/open-build-service/tags","blobs_url":"https://api.github.com/repos/openSUSE/open-build-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/open-build-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/open-build-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/open-build-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/open-build-service/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/open-build-service/languages","stargazers_url":"https://api.github.com/repos/openSUSE/open-build-service/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/open-build-service/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/open-build-service/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/open-build-service/subscription","commits_url":"https://api.github.com/repos/openSUSE/open-build-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/open-build-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/open-build-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/open-build-service/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/open-build-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/open-build-service/merges","archive_url":"https://api.github.com/repos/openSUSE/open-build-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/open-build-service/downloads","issues_url":"https://api.github.com/repos/openSUSE/open-build-service/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/open-build-service/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/open-build-service/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/open-build-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/open-build-service/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/open-build-service/releases{/id}","deployments_url":"https://api.github.com/repos/openSUSE/open-build-service/deployments","created_at":"2011-07-14T06:52:57Z","updated_at":"2018-04-25T14:45:04Z","pushed_at":"2018-04-25T14:49:46Z","git_url":"git://github.com/openSUSE/open-build-service.git","ssh_url":"git@github.com:openSUSE/open-build-service.git","clone_url":"https://github.com/openSUSE/open-build-service.git","svn_url":"https://github.com/openSUSE/open-build-service","homepage":"http://openbuildservice.org/","size":58816,"stargazers_count":347,"watchers_count":347,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":232,"mirror_url":null,"archived":false,"open_issues_count":484,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":232,"open_issues":484,"watchers":347,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/4907"},"html":{"href":"https://github.com/openSUSE/open-build-service/pull/4907"},"issue":{"href":"https://api.github.com/repos/openSUSE/open-build-service/issues/4907"},"comments":{"href":"https://api.github.com/repos/openSUSE/open-build-service/issues/4907/comments"},"review_comments":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/4907/comments"},"review_comment":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/4907/commits"},"statuses":{"href":"https://api.github.com/repos/openSUSE/open-build-service/statuses/55761cd471b8f649f49847c8b17dfaac089eda32"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mdeniz"}}