{"action":"created","comment":{"url":"https://api.github.com/repos/AT-07/coding/pulls/comments/199687840","pull_request_review_id":133853887,"id":199687840,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTY4Nzg0MA==","diff_hunk":"@@ -0,0 +1,29 @@\n+package org.fundacionjala.coding.denis;\n+\n+/**\n+ * this is the main class.\n+ */\n+public class Droot {\n+    private static final int NUMCHECK = 9;\n+\n+    /**\n+     * @param n is the number of the work.\n+     * @return sum time execute.\n+     */\n+    public int digitalRoot(int n) {\n+        if (n > NUMCHECK) {\n+            final int dataDiv = 10;\n+            while (n > NUMCHECK) {\n+                int sum = 0;\n+                while (n != 0) {\n+                    sum += n % dataDiv;\n+                    n /= dataDiv;\n+                }\n+                n = sum;\n+            }\n+            return n;\n+        } else {\n+            return n;\n+        }","path":"src/main/java/org/fundacionjala/coding/denis/Droot.java","position":27,"original_position":27,"commit_id":"627d8bbb352af0e531a042397dd7915eb7bf9413","original_commit_id":"627d8bbb352af0e531a042397dd7915eb7bf9413","user":{"login":"carledriss","id":3298869,"node_id":"MDQ6VXNlcjMyOTg4Njk=","avatar_url":"https://avatars2.githubusercontent.com/u/3298869?v=4","gravatar_id":"","url":"https://api.github.com/users/carledriss","html_url":"https://github.com/carledriss","followers_url":"https://api.github.com/users/carledriss/followers","following_url":"https://api.github.com/users/carledriss/following{/other_user}","gists_url":"https://api.github.com/users/carledriss/gists{/gist_id}","starred_url":"https://api.github.com/users/carledriss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carledriss/subscriptions","organizations_url":"https://api.github.com/users/carledriss/orgs","repos_url":"https://api.github.com/users/carledriss/repos","events_url":"https://api.github.com/users/carledriss/events{/privacy}","received_events_url":"https://api.github.com/users/carledriss/received_events","type":"User","site_admin":false},"body":"This may be refactored like this.\r\n```java\r\n    int digitalRoot(int n) {\r\n        while (n >= NUMCHECK) {\r\n            int sum = 0;\r\n            while (n != 0) {\r\n                sum += n % NUMCHECK;\r\n                n /= NUMCHECK;\r\n            }\r\n            n = sum;\r\n        }\r\n        return n;\r\n    }\r\n```","created_at":"2018-07-03T05:36:16Z","updated_at":"2018-07-03T05:36:23Z","html_url":"https://github.com/AT-07/coding/pull/51#discussion_r199687840","pull_request_url":"https://api.github.com/repos/AT-07/coding/pulls/51","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/AT-07/coding/pulls/comments/199687840"},"html":{"href":"https://github.com/AT-07/coding/pull/51#discussion_r199687840"},"pull_request":{"href":"https://api.github.com/repos/AT-07/coding/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/AT-07/coding/pulls/51","id":198393209,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MzkzMjA5","html_url":"https://github.com/AT-07/coding/pull/51","diff_url":"https://github.com/AT-07/coding/pull/51.diff","patch_url":"https://github.com/AT-07/coding/pull/51.patch","issue_url":"https://api.github.com/repos/AT-07/coding/issues/51","number":51,"state":"open","locked":false,"title":"denis digitRoot","user":{"login":"denis1729","id":40204046,"node_id":"MDQ6VXNlcjQwMjA0MDQ2","avatar_url":"https://avatars2.githubusercontent.com/u/40204046?v=4","gravatar_id":"","url":"https://api.github.com/users/denis1729","html_url":"https://github.com/denis1729","followers_url":"https://api.github.com/users/denis1729/followers","following_url":"https://api.github.com/users/denis1729/following{/other_user}","gists_url":"https://api.github.com/users/denis1729/gists{/gist_id}","starred_url":"https://api.github.com/users/denis1729/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denis1729/subscriptions","organizations_url":"https://api.github.com/users/denis1729/orgs","repos_url":"https://api.github.com/users/denis1729/repos","events_url":"https://api.github.com/users/denis1729/events{/privacy}","received_events_url":"https://api.github.com/users/denis1729/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-29T18:35:56Z","updated_at":"2018-07-03T05:36:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1908e45cb8bbe2824f112620da3adec628a4775","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AT-07/coding/pulls/51/commits","review_comments_url":"https://api.github.com/repos/AT-07/coding/pulls/51/comments","review_comment_url":"https://api.github.com/repos/AT-07/coding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AT-07/coding/issues/51/comments","statuses_url":"https://api.github.com/repos/AT-07/coding/statuses/627d8bbb352af0e531a042397dd7915eb7bf9413","head":{"label":"AT-07:denis/digitalRoot","ref":"denis/digitalRoot","sha":"627d8bbb352af0e531a042397dd7915eb7bf9413","user":{"login":"AT-07","id":40148813,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMTQ4ODEz","avatar_url":"https://avatars2.githubusercontent.com/u/40148813?v=4","gravatar_id":"","url":"https://api.github.com/users/AT-07","html_url":"https://github.com/AT-07","followers_url":"https://api.github.com/users/AT-07/followers","following_url":"https://api.github.com/users/AT-07/following{/other_user}","gists_url":"https://api.github.com/users/AT-07/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-07/subscriptions","organizations_url":"https://api.github.com/users/AT-07/orgs","repos_url":"https://api.github.com/users/AT-07/repos","events_url":"https://api.github.com/users/AT-07/events{/privacy}","received_events_url":"https://api.github.com/users/AT-07/received_events","type":"Organization","site_admin":false},"repo":{"id":136834518,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY4MzQ1MTg=","name":"coding","full_name":"AT-07/coding","owner":{"login":"AT-07","id":40148813,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMTQ4ODEz","avatar_url":"https://avatars2.githubusercontent.com/u/40148813?v=4","gravatar_id":"","url":"https://api.github.com/users/AT-07","html_url":"https://github.com/AT-07","followers_url":"https://api.github.com/users/AT-07/followers","following_url":"https://api.github.com/users/AT-07/following{/other_user}","gists_url":"https://api.github.com/users/AT-07/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-07/subscriptions","organizations_url":"https://api.github.com/users/AT-07/orgs","repos_url":"https://api.github.com/users/AT-07/repos","events_url":"https://api.github.com/users/AT-07/events{/privacy}","received_events_url":"https://api.github.com/users/AT-07/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AT-07/coding","description":null,"fork":false,"url":"https://api.github.com/repos/AT-07/coding","forks_url":"https://api.github.com/repos/AT-07/coding/forks","keys_url":"https://api.github.com/repos/AT-07/coding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AT-07/coding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AT-07/coding/teams","hooks_url":"https://api.github.com/repos/AT-07/coding/hooks","issue_events_url":"https://api.github.com/repos/AT-07/coding/issues/events{/number}","events_url":"https://api.github.com/repos/AT-07/coding/events","assignees_url":"https://api.github.com/repos/AT-07/coding/assignees{/user}","branches_url":"https://api.github.com/repos/AT-07/coding/branches{/branch}","tags_url":"https://api.github.com/repos/AT-07/coding/tags","blobs_url":"https://api.github.com/repos/AT-07/coding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AT-07/coding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AT-07/coding/git/refs{/sha}","trees_url":"https://api.github.com/repos/AT-07/coding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AT-07/coding/statuses/{sha}","languages_url":"https://api.github.com/repos/AT-07/coding/languages","stargazers_url":"https://api.github.com/repos/AT-07/coding/stargazers","contributors_url":"https://api.github.com/repos/AT-07/coding/contributors","subscribers_url":"https://api.github.com/repos/AT-07/coding/subscribers","subscription_url":"https://api.github.com/repos/AT-07/coding/subscription","commits_url":"https://api.github.com/repos/AT-07/coding/commits{/sha}","git_commits_url":"https://api.github.com/repos/AT-07/coding/git/commits{/sha}","comments_url":"https://api.github.com/repos/AT-07/coding/comments{/number}","issue_comment_url":"https://api.github.com/repos/AT-07/coding/issues/comments{/number}","contents_url":"https://api.github.com/repos/AT-07/coding/contents/{+path}","compare_url":"https://api.github.com/repos/AT-07/coding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AT-07/coding/merges","archive_url":"https://api.github.com/repos/AT-07/coding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AT-07/coding/downloads","issues_url":"https://api.github.com/repos/AT-07/coding/issues{/number}","pulls_url":"https://api.github.com/repos/AT-07/coding/pulls{/number}","milestones_url":"https://api.github.com/repos/AT-07/coding/milestones{/number}","notifications_url":"https://api.github.com/repos/AT-07/coding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AT-07/coding/labels{/name}","releases_url":"https://api.github.com/repos/AT-07/coding/releases{/id}","deployments_url":"https://api.github.com/repos/AT-07/coding/deployments","created_at":"2018-06-10T18:30:00Z","updated_at":"2018-07-03T05:09:13Z","pushed_at":"2018-07-03T05:09:14Z","git_url":"git://github.com/AT-07/coding.git","ssh_url":"git@github.com:AT-07/coding.git","clone_url":"https://github.com/AT-07/coding.git","svn_url":"https://github.com/AT-07/coding","homepage":null,"size":220,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":17,"license":null,"forks":0,"open_issues":17,"watchers":0,"default_branch":"develop"}},"base":{"label":"AT-07:develop","ref":"develop","sha":"24509e7cb8048fb101dbd512c7c53714224368fb","user":{"login":"AT-07","id":40148813,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMTQ4ODEz","avatar_url":"https://avatars2.githubusercontent.com/u/40148813?v=4","gravatar_id":"","url":"https://api.github.com/users/AT-07","html_url":"https://github.com/AT-07","followers_url":"https://api.github.com/users/AT-07/followers","following_url":"https://api.github.com/users/AT-07/following{/other_user}","gists_url":"https://api.github.com/users/AT-07/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-07/subscriptions","organizations_url":"https://api.github.com/users/AT-07/orgs","repos_url":"https://api.github.com/users/AT-07/repos","events_url":"https://api.github.com/users/AT-07/events{/privacy}","received_events_url":"https://api.github.com/users/AT-07/received_events","type":"Organization","site_admin":false},"repo":{"id":136834518,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY4MzQ1MTg=","name":"coding","full_name":"AT-07/coding","owner":{"login":"AT-07","id":40148813,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMTQ4ODEz","avatar_url":"https://avatars2.githubusercontent.com/u/40148813?v=4","gravatar_id":"","url":"https://api.github.com/users/AT-07","html_url":"https://github.com/AT-07","followers_url":"https://api.github.com/users/AT-07/followers","following_url":"https://api.github.com/users/AT-07/following{/other_user}","gists_url":"https://api.github.com/users/AT-07/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-07/subscriptions","organizations_url":"https://api.github.com/users/AT-07/orgs","repos_url":"https://api.github.com/users/AT-07/repos","events_url":"https://api.github.com/users/AT-07/events{/privacy}","received_events_url":"https://api.github.com/users/AT-07/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AT-07/coding","description":null,"fork":false,"url":"https://api.github.com/repos/AT-07/coding","forks_url":"https://api.github.com/repos/AT-07/coding/forks","keys_url":"https://api.github.com/repos/AT-07/coding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AT-07/coding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AT-07/coding/teams","hooks_url":"https://api.github.com/repos/AT-07/coding/hooks","issue_events_url":"https://api.github.com/repos/AT-07/coding/issues/events{/number}","events_url":"https://api.github.com/repos/AT-07/coding/events","assignees_url":"https://api.github.com/repos/AT-07/coding/assignees{/user}","branches_url":"https://api.github.com/repos/AT-07/coding/branches{/branch}","tags_url":"https://api.github.com/repos/AT-07/coding/tags","blobs_url":"https://api.github.com/repos/AT-07/coding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AT-07/coding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AT-07/coding/git/refs{/sha}","trees_url":"https://api.github.com/repos/AT-07/coding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AT-07/coding/statuses/{sha}","languages_url":"https://api.github.com/repos/AT-07/coding/languages","stargazers_url":"https://api.github.com/repos/AT-07/coding/stargazers","contributors_url":"https://api.github.com/repos/AT-07/coding/contributors","subscribers_url":"https://api.github.com/repos/AT-07/coding/subscribers","subscription_url":"https://api.github.com/repos/AT-07/coding/subscription","commits_url":"https://api.github.com/repos/AT-07/coding/commits{/sha}","git_commits_url":"https://api.github.com/repos/AT-07/coding/git/commits{/sha}","comments_url":"https://api.github.com/repos/AT-07/coding/comments{/number}","issue_comment_url":"https://api.github.com/repos/AT-07/coding/issues/comments{/number}","contents_url":"https://api.github.com/repos/AT-07/coding/contents/{+path}","compare_url":"https://api.github.com/repos/AT-07/coding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AT-07/coding/merges","archive_url":"https://api.github.com/repos/AT-07/coding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AT-07/coding/downloads","issues_url":"https://api.github.com/repos/AT-07/coding/issues{/number}","pulls_url":"https://api.github.com/repos/AT-07/coding/pulls{/number}","milestones_url":"https://api.github.com/repos/AT-07/coding/milestones{/number}","notifications_url":"https://api.github.com/repos/AT-07/coding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AT-07/coding/labels{/name}","releases_url":"https://api.github.com/repos/AT-07/coding/releases{/id}","deployments_url":"https://api.github.com/repos/AT-07/coding/deployments","created_at":"2018-06-10T18:30:00Z","updated_at":"2018-07-03T05:09:13Z","pushed_at":"2018-07-03T05:09:14Z","git_url":"git://github.com/AT-07/coding.git","ssh_url":"git@github.com:AT-07/coding.git","clone_url":"https://github.com/AT-07/coding.git","svn_url":"https://github.com/AT-07/coding","homepage":null,"size":220,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":17,"license":null,"forks":0,"open_issues":17,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/AT-07/coding/pulls/51"},"html":{"href":"https://github.com/AT-07/coding/pull/51"},"issue":{"href":"https://api.github.com/repos/AT-07/coding/issues/51"},"comments":{"href":"https://api.github.com/repos/AT-07/coding/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/AT-07/coding/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/AT-07/coding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AT-07/coding/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/AT-07/coding/statuses/627d8bbb352af0e531a042397dd7915eb7bf9413"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"carledriss"}}