{"action":"created","comment":{"url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls/comments/97076557","pull_request_review_id":17679167,"id":97076557,"diff_hunk":"@@ -79,31 +65,12 @@ export const configurationSchema = {\n \n // ===================================================================\n \n-Handlebars.registerHelper('compare', function (lvalue, operator, rvalue, options) {\n-  if (arguments.length < 3) {\n-    throw new Error('Handlerbars Helper \"compare\" needs 2 parameters')\n-  }\n-\n-  if (!compareOperators[operator]) {\n-    throw new Error(`Handlerbars Helper \"compare\" doesn't know the operator ${operator}`)\n-  }\n-\n-  return compareOperators[operator](lvalue, rvalue) ? options.fn(this) : options.inverse(this)\n+Handlebars.registerHelper('isSup', function (lvalue, rvalue, options) {\n+  return lvalue > rvalue ? options.fn(this) : options.inverse(this)\n })\n \n-Handlebars.registerHelper('math', function (lvalue, operator, rvalue, options) {\n-  if (arguments.length < 3) {\n-    throw new Error('Handlerbars Helper \"math\" needs 2 parameters')\n-  }\n-\n-  if (!mathOperators[operator]) {\n-    throw new Error(`Handlerbars Helper \"math\" doesn't know the operator ${operator}`)\n-  }\n-\n-  lvalue = +lvalue\n-  rvalue = +rvalue\n-\n-  return mathOperators[operator](lvalue, rvalue)\n+Handlebars.registerHelper('add', function (lvalue, rvalue, options) {\n+  return lvalue + rvalue","path":"src/index.js","position":null,"original_position":74,"commit_id":"50a7fdfdc964e7ed4eb0065b9e41266e175b0157","original_commit_id":"50a7fdfdc964e7ed4eb0065b9e41266e175b0157","user":{"login":"julien-f","id":298721,"avatar_url":"https://avatars.githubusercontent.com/u/298721?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-f","html_url":"https://github.com/julien-f","followers_url":"https://api.github.com/users/julien-f/followers","following_url":"https://api.github.com/users/julien-f/following{/other_user}","gists_url":"https://api.github.com/users/julien-f/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-f/subscriptions","organizations_url":"https://api.github.com/users/julien-f/orgs","repos_url":"https://api.github.com/users/julien-f/repos","events_url":"https://api.github.com/users/julien-f/events{/privacy}","received_events_url":"https://api.github.com/users/julien-f/received_events","type":"User","site_admin":false},"body":"Keep previous helpers, but just implement the operators you need.","created_at":"2017-01-20T14:04:45Z","updated_at":"2017-01-20T14:06:16Z","html_url":"https://github.com/vatesfr/xo-server-usage-report/pull/15#discussion_r97076557","pull_request_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls/comments/97076557"},"html":{"href":"https://github.com/vatesfr/xo-server-usage-report/pull/15#discussion_r97076557"},"pull_request":{"href":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls/15","id":98961744,"html_url":"https://github.com/vatesfr/xo-server-usage-report/pull/15","diff_url":"https://github.com/vatesfr/xo-server-usage-report/pull/15.diff","patch_url":"https://github.com/vatesfr/xo-server-usage-report/pull/15.patch","issue_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/issues/15","number":15,"state":"open","locked":false,"title":"Implementation","user":{"login":"badrAZ","id":21563339,"avatar_url":"https://avatars.githubusercontent.com/u/21563339?v=3","gravatar_id":"","url":"https://api.github.com/users/badrAZ","html_url":"https://github.com/badrAZ","followers_url":"https://api.github.com/users/badrAZ/followers","following_url":"https://api.github.com/users/badrAZ/following{/other_user}","gists_url":"https://api.github.com/users/badrAZ/gists{/gist_id}","starred_url":"https://api.github.com/users/badrAZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badrAZ/subscriptions","organizations_url":"https://api.github.com/users/badrAZ/orgs","repos_url":"https://api.github.com/users/badrAZ/repos","events_url":"https://api.github.com/users/badrAZ/events{/privacy}","received_events_url":"https://api.github.com/users/badrAZ/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-21T16:20:25Z","updated_at":"2017-01-20T14:06:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32b7015a585e9880a73a06f6f410f06ab7a7af31","assignee":{"login":"badrAZ","id":21563339,"avatar_url":"https://avatars.githubusercontent.com/u/21563339?v=3","gravatar_id":"","url":"https://api.github.com/users/badrAZ","html_url":"https://github.com/badrAZ","followers_url":"https://api.github.com/users/badrAZ/followers","following_url":"https://api.github.com/users/badrAZ/following{/other_user}","gists_url":"https://api.github.com/users/badrAZ/gists{/gist_id}","starred_url":"https://api.github.com/users/badrAZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badrAZ/subscriptions","organizations_url":"https://api.github.com/users/badrAZ/orgs","repos_url":"https://api.github.com/users/badrAZ/repos","events_url":"https://api.github.com/users/badrAZ/events{/privacy}","received_events_url":"https://api.github.com/users/badrAZ/received_events","type":"User","site_admin":false},"assignees":[{"login":"badrAZ","id":21563339,"avatar_url":"https://avatars.githubusercontent.com/u/21563339?v=3","gravatar_id":"","url":"https://api.github.com/users/badrAZ","html_url":"https://github.com/badrAZ","followers_url":"https://api.github.com/users/badrAZ/followers","following_url":"https://api.github.com/users/badrAZ/following{/other_user}","gists_url":"https://api.github.com/users/badrAZ/gists{/gist_id}","starred_url":"https://api.github.com/users/badrAZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badrAZ/subscriptions","organizations_url":"https://api.github.com/users/badrAZ/orgs","repos_url":"https://api.github.com/users/badrAZ/repos","events_url":"https://api.github.com/users/badrAZ/events{/privacy}","received_events_url":"https://api.github.com/users/badrAZ/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls/15/commits","review_comments_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls/15/comments","review_comment_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/issues/15/comments","statuses_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/statuses/50a7fdfdc964e7ed4eb0065b9e41266e175b0157","head":{"label":"vatesfr:implementation","ref":"implementation","sha":"50a7fdfdc964e7ed4eb0065b9e41266e175b0157","user":{"login":"vatesfr","id":2064170,"avatar_url":"https://avatars.githubusercontent.com/u/2064170?v=3","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"repo":{"id":49074268,"name":"xo-server-usage-report","full_name":"vatesfr/xo-server-usage-report","owner":{"login":"vatesfr","id":2064170,"avatar_url":"https://avatars.githubusercontent.com/u/2064170?v=3","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vatesfr/xo-server-usage-report","description":null,"fork":false,"url":"https://api.github.com/repos/vatesfr/xo-server-usage-report","forks_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/forks","keys_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/teams","hooks_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/hooks","issue_events_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/issues/events{/number}","events_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/events","assignees_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/assignees{/user}","branches_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/branches{/branch}","tags_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/tags","blobs_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/git/refs{/sha}","trees_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/statuses/{sha}","languages_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/languages","stargazers_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/stargazers","contributors_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/contributors","subscribers_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/subscribers","subscription_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/subscription","commits_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/commits{/sha}","git_commits_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/git/commits{/sha}","comments_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/comments{/number}","issue_comment_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/issues/comments{/number}","contents_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/contents/{+path}","compare_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/merges","archive_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/downloads","issues_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/issues{/number}","pulls_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls{/number}","milestones_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/milestones{/number}","notifications_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/labels{/name}","releases_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/releases{/id}","deployments_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/deployments","created_at":"2016-01-05T15:27:37Z","updated_at":"2017-01-13T13:28:44Z","pushed_at":"2017-01-20T13:52:34Z","git_url":"git://github.com/vatesfr/xo-server-usage-report.git","ssh_url":"git@github.com:vatesfr/xo-server-usage-report.git","clone_url":"https://github.com/vatesfr/xo-server-usage-report.git","svn_url":"https://github.com/vatesfr/xo-server-usage-report","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"vatesfr:master","ref":"master","sha":"a8ccb4f9c3cd1d34c93efe8f4fa7b2ce0f3774af","user":{"login":"vatesfr","id":2064170,"avatar_url":"https://avatars.githubusercontent.com/u/2064170?v=3","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"repo":{"id":49074268,"name":"xo-server-usage-report","full_name":"vatesfr/xo-server-usage-report","owner":{"login":"vatesfr","id":2064170,"avatar_url":"https://avatars.githubusercontent.com/u/2064170?v=3","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vatesfr/xo-server-usage-report","description":null,"fork":false,"url":"https://api.github.com/repos/vatesfr/xo-server-usage-report","forks_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/forks","keys_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/teams","hooks_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/hooks","issue_events_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/issues/events{/number}","events_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/events","assignees_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/assignees{/user}","branches_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/branches{/branch}","tags_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/tags","blobs_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/git/refs{/sha}","trees_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/statuses/{sha}","languages_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/languages","stargazers_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/stargazers","contributors_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/contributors","subscribers_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/subscribers","subscription_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/subscription","commits_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/commits{/sha}","git_commits_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/git/commits{/sha}","comments_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/comments{/number}","issue_comment_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/issues/comments{/number}","contents_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/contents/{+path}","compare_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/merges","archive_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/downloads","issues_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/issues{/number}","pulls_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls{/number}","milestones_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/milestones{/number}","notifications_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/labels{/name}","releases_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/releases{/id}","deployments_url":"https://api.github.com/repos/vatesfr/xo-server-usage-report/deployments","created_at":"2016-01-05T15:27:37Z","updated_at":"2017-01-13T13:28:44Z","pushed_at":"2017-01-20T13:52:34Z","git_url":"git://github.com/vatesfr/xo-server-usage-report.git","ssh_url":"git@github.com:vatesfr/xo-server-usage-report.git","clone_url":"https://github.com/vatesfr/xo-server-usage-report.git","svn_url":"https://github.com/vatesfr/xo-server-usage-report","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"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/vatesfr/xo-server-usage-report/pulls/15"},"html":{"href":"https://github.com/vatesfr/xo-server-usage-report/pull/15"},"issue":{"href":"https://api.github.com/repos/vatesfr/xo-server-usage-report/issues/15"},"comments":{"href":"https://api.github.com/repos/vatesfr/xo-server-usage-report/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vatesfr/xo-server-usage-report/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/vatesfr/xo-server-usage-report/statuses/50a7fdfdc964e7ed4eb0065b9e41266e175b0157"}}}}
{"actor":{"display_login":"julien-f"}}