GitHub PullRequestReviewCommentEvent at 2014-02-19 02:31:33
Repository: merit
Actor: tute
Payload: {"comment":{"url":"https://api.github.com/repos/tute/merit/pulls/comments/9852111","id":9852111,"diff_hunk":"@@ -10,29 +10,36 @@ def badge_ids\n         badges_sashes.map(&:badge_id)\n       end\n \n-      def points(category = 'default')\n-        scores.where(category: category).first.points\n+      # Retrieve the number of points from a category\n+      # Category 'default' is used by default\n+      # Use :all to sum all points","path":"lib/merit/models/base/merit/sash.rb","position":8,"original_position":8,"commit_id":"536703e1b874854a66416e7220e768e8c998736d","original_commit_id":"536703e1b874854a66416e7220e768e8c998736d","user":{"login":"tute","id":54260,"avatar_url":"https://gravatar.com/avatar/73c6b8b1ef87c072549584c0a9248537?d=https%3A%2F%2Fidenticons.github.com%2F2b469a881b4ae48e461e3b038751ec82.png&r=x","gravatar_id":"73c6b8b1ef87c072549584c0a9248537","url":"https://api.github.com/users/tute","html_url":"https://github.com/tute","followers_url":"https://api.github.com/users/tute/followers","following_url":"https://api.github.com/users/tute/following{/other_user}","gists_url":"https://api.github.com/users/tute/gists{/gist_id}","starred_url":"https://api.github.com/users/tute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tute/subscriptions","organizations_url":"https://api.github.com/users/tute/orgs","repos_url":"https://api.github.com/users/tute/repos","events_url":"https://api.github.com/users/tute/events{/privacy}","received_events_url":"https://api.github.com/users/tute/received_events","type":"User","site_admin":false},"body":"This comment should be updated: \"by default all points are summed up, can also specify a certain category\", or alike.","created_at":"2014-02-19T02:31:33Z","updated_at":"2014-02-19T02:31:33Z","html_url":"https://github.com/tute/merit/pull/140#discussion_r9852111","pull_request_url":"https://api.github.com/repos/tute/merit/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/tute/merit/pulls/comments/9852111"},"html":{"href":"https://github.com/tute/merit/pull/140#discussion_r9852111"},"pull_request":{"href":"https://api.github.com/repos/tute/merit/pulls/140"}}}}