{"action":"created","comment":{"url":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/comments/215579140","pull_request_review_id":152863469,"id":215579140,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTU3OTE0MA==","diff_hunk":"@@ -16,19 +16,50 @@ class Repository {\n     //\n     // Replace this comment with your code\n     //\n+\n+    const table = Util.createAndAppend('table', parent);\n+    const tr = Util.createAndAppend('tr', table);\n+    Util.createAndAppend('td', tr, { 'html': 'Repository  : ', 'class': 'tr' });\n+    Util.createAndAppend('td', tr, { 'html': this.repo.name });","path":"homework/src/Repository.js","position":19,"original_position":19,"commit_id":"6a391bc75d99623ec6c4842a0baf19b75020d823","original_commit_id":"6a391bc75d99623ec6c4842a0baf19b75020d823","user":{"login":"remarcmij","id":2788771,"node_id":"MDQ6VXNlcjI3ODg3NzE=","avatar_url":"https://avatars0.githubusercontent.com/u/2788771?v=4","gravatar_id":"","url":"https://api.github.com/users/remarcmij","html_url":"https://github.com/remarcmij","followers_url":"https://api.github.com/users/remarcmij/followers","following_url":"https://api.github.com/users/remarcmij/following{/other_user}","gists_url":"https://api.github.com/users/remarcmij/gists{/gist_id}","starred_url":"https://api.github.com/users/remarcmij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remarcmij/subscriptions","organizations_url":"https://api.github.com/users/remarcmij/orgs","repos_url":"https://api.github.com/users/remarcmij/repos","events_url":"https://api.github.com/users/remarcmij/events{/privacy}","received_events_url":"https://api.github.com/users/remarcmij/received_events","type":"User","site_admin":false},"body":"You have repeated code here: you are creating a `tr` with two `td` children three times. You could pply the DRY principle by creating a method, e.g. `addRow`:\r\n\r\n```js\r\n\r\nrender(parent) {\r\n  const table = Util.createAndAppend('table', parent);\r\n  this.addRow(table, 'Repository :', this.repo.name);\r\n  //...\r\n}\r\n\r\naddRow(table, label, value) {\r\n  //...\r\n}\r\n```","created_at":"2018-09-06T10:43:02Z","updated_at":"2018-09-06T10:56:50Z","html_url":"https://github.com/HackYourFuture/JavaScript3/pull/93#discussion_r215579140","pull_request_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/93","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/comments/215579140"},"html":{"href":"https://github.com/HackYourFuture/JavaScript3/pull/93#discussion_r215579140"},"pull_request":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/93","id":213451688,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzNDUxNjg4","html_url":"https://github.com/HackYourFuture/JavaScript3/pull/93","diff_url":"https://github.com/HackYourFuture/JavaScript3/pull/93.diff","patch_url":"https://github.com/HackYourFuture/JavaScript3/pull/93.patch","issue_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/issues/93","number":93,"state":"open","locked":false,"title":" Week3","user":{"login":"Samtabanja","id":39971926,"node_id":"MDQ6VXNlcjM5OTcxOTI2","avatar_url":"https://avatars0.githubusercontent.com/u/39971926?v=4","gravatar_id":"","url":"https://api.github.com/users/Samtabanja","html_url":"https://github.com/Samtabanja","followers_url":"https://api.github.com/users/Samtabanja/followers","following_url":"https://api.github.com/users/Samtabanja/following{/other_user}","gists_url":"https://api.github.com/users/Samtabanja/gists{/gist_id}","starred_url":"https://api.github.com/users/Samtabanja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samtabanja/subscriptions","organizations_url":"https://api.github.com/users/Samtabanja/orgs","repos_url":"https://api.github.com/users/Samtabanja/repos","events_url":"https://api.github.com/users/Samtabanja/events{/privacy}","received_events_url":"https://api.github.com/users/Samtabanja/received_events","type":"User","site_admin":false},"body":"Sam, Week3","created_at":"2018-09-05T23:01:49Z","updated_at":"2018-09-06T10:56:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd9c0fee57003f992fdaef1f4476a6c45016d8bc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1018310322,"node_id":"MDU6TGFiZWwxMDE4MzEwMzIy","url":"https://api.github.com/repos/HackYourFuture/JavaScript3/labels/class16","name":"class16","color":"64a313","default":false},{"id":971398035,"node_id":"MDU6TGFiZWw5NzEzOTgwMzU=","url":"https://api.github.com/repos/HackYourFuture/JavaScript3/labels/homework3","name":"homework3","color":"0bead8","default":false},{"id":1023924913,"node_id":"MDU6TGFiZWwxMDIzOTI0OTEz","url":"https://api.github.com/repos/HackYourFuture/JavaScript3/labels/review%20in%20progress","name":"review in progress","color":"f9d0c4","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/93/commits","review_comments_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/93/comments","review_comment_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/issues/93/comments","statuses_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/statuses/6a391bc75d99623ec6c4842a0baf19b75020d823","head":{"label":"Samtabanja:week3","ref":"week3","sha":"6a391bc75d99623ec6c4842a0baf19b75020d823","user":{"login":"Samtabanja","id":39971926,"node_id":"MDQ6VXNlcjM5OTcxOTI2","avatar_url":"https://avatars0.githubusercontent.com/u/39971926?v=4","gravatar_id":"","url":"https://api.github.com/users/Samtabanja","html_url":"https://github.com/Samtabanja","followers_url":"https://api.github.com/users/Samtabanja/followers","following_url":"https://api.github.com/users/Samtabanja/following{/other_user}","gists_url":"https://api.github.com/users/Samtabanja/gists{/gist_id}","starred_url":"https://api.github.com/users/Samtabanja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samtabanja/subscriptions","organizations_url":"https://api.github.com/users/Samtabanja/orgs","repos_url":"https://api.github.com/users/Samtabanja/repos","events_url":"https://api.github.com/users/Samtabanja/events{/privacy}","received_events_url":"https://api.github.com/users/Samtabanja/received_events","type":"User","site_admin":false},"repo":{"id":145404196,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU0MDQxOTY=","name":"JavaScript3","full_name":"Samtabanja/JavaScript3","owner":{"login":"Samtabanja","id":39971926,"node_id":"MDQ6VXNlcjM5OTcxOTI2","avatar_url":"https://avatars0.githubusercontent.com/u/39971926?v=4","gravatar_id":"","url":"https://api.github.com/users/Samtabanja","html_url":"https://github.com/Samtabanja","followers_url":"https://api.github.com/users/Samtabanja/followers","following_url":"https://api.github.com/users/Samtabanja/following{/other_user}","gists_url":"https://api.github.com/users/Samtabanja/gists{/gist_id}","starred_url":"https://api.github.com/users/Samtabanja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samtabanja/subscriptions","organizations_url":"https://api.github.com/users/Samtabanja/orgs","repos_url":"https://api.github.com/users/Samtabanja/repos","events_url":"https://api.github.com/users/Samtabanja/events{/privacy}","received_events_url":"https://api.github.com/users/Samtabanja/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Samtabanja/JavaScript3","description":"Course content for the JavaScript3 module","fork":true,"url":"https://api.github.com/repos/Samtabanja/JavaScript3","forks_url":"https://api.github.com/repos/Samtabanja/JavaScript3/forks","keys_url":"https://api.github.com/repos/Samtabanja/JavaScript3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Samtabanja/JavaScript3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Samtabanja/JavaScript3/teams","hooks_url":"https://api.github.com/repos/Samtabanja/JavaScript3/hooks","issue_events_url":"https://api.github.com/repos/Samtabanja/JavaScript3/issues/events{/number}","events_url":"https://api.github.com/repos/Samtabanja/JavaScript3/events","assignees_url":"https://api.github.com/repos/Samtabanja/JavaScript3/assignees{/user}","branches_url":"https://api.github.com/repos/Samtabanja/JavaScript3/branches{/branch}","tags_url":"https://api.github.com/repos/Samtabanja/JavaScript3/tags","blobs_url":"https://api.github.com/repos/Samtabanja/JavaScript3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Samtabanja/JavaScript3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Samtabanja/JavaScript3/git/refs{/sha}","trees_url":"https://api.github.com/repos/Samtabanja/JavaScript3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Samtabanja/JavaScript3/statuses/{sha}","languages_url":"https://api.github.com/repos/Samtabanja/JavaScript3/languages","stargazers_url":"https://api.github.com/repos/Samtabanja/JavaScript3/stargazers","contributors_url":"https://api.github.com/repos/Samtabanja/JavaScript3/contributors","subscribers_url":"https://api.github.com/repos/Samtabanja/JavaScript3/subscribers","subscription_url":"https://api.github.com/repos/Samtabanja/JavaScript3/subscription","commits_url":"https://api.github.com/repos/Samtabanja/JavaScript3/commits{/sha}","git_commits_url":"https://api.github.com/repos/Samtabanja/JavaScript3/git/commits{/sha}","comments_url":"https://api.github.com/repos/Samtabanja/JavaScript3/comments{/number}","issue_comment_url":"https://api.github.com/repos/Samtabanja/JavaScript3/issues/comments{/number}","contents_url":"https://api.github.com/repos/Samtabanja/JavaScript3/contents/{+path}","compare_url":"https://api.github.com/repos/Samtabanja/JavaScript3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Samtabanja/JavaScript3/merges","archive_url":"https://api.github.com/repos/Samtabanja/JavaScript3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Samtabanja/JavaScript3/downloads","issues_url":"https://api.github.com/repos/Samtabanja/JavaScript3/issues{/number}","pulls_url":"https://api.github.com/repos/Samtabanja/JavaScript3/pulls{/number}","milestones_url":"https://api.github.com/repos/Samtabanja/JavaScript3/milestones{/number}","notifications_url":"https://api.github.com/repos/Samtabanja/JavaScript3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Samtabanja/JavaScript3/labels{/name}","releases_url":"https://api.github.com/repos/Samtabanja/JavaScript3/releases{/id}","deployments_url":"https://api.github.com/repos/Samtabanja/JavaScript3/deployments","created_at":"2018-08-20T10:42:33Z","updated_at":"2018-08-20T10:42:34Z","pushed_at":"2018-09-05T23:00:09Z","git_url":"git://github.com/Samtabanja/JavaScript3.git","ssh_url":"git@github.com:Samtabanja/JavaScript3.git","clone_url":"https://github.com/Samtabanja/JavaScript3.git","svn_url":"https://github.com/Samtabanja/JavaScript3","homepage":null,"size":11283,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"HackYourFuture:master","ref":"master","sha":"da506b538c22c7b7f012331ba935d9a4335baf8c","user":{"login":"HackYourFuture","id":20858568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODU4NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/20858568?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture","html_url":"https://github.com/HackYourFuture","followers_url":"https://api.github.com/users/HackYourFuture/followers","following_url":"https://api.github.com/users/HackYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture/orgs","repos_url":"https://api.github.com/users/HackYourFuture/repos","events_url":"https://api.github.com/users/HackYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture/received_events","type":"Organization","site_admin":false},"repo":{"id":124885319,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ4ODUzMTk=","name":"JavaScript3","full_name":"HackYourFuture/JavaScript3","owner":{"login":"HackYourFuture","id":20858568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODU4NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/20858568?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture","html_url":"https://github.com/HackYourFuture","followers_url":"https://api.github.com/users/HackYourFuture/followers","following_url":"https://api.github.com/users/HackYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture/orgs","repos_url":"https://api.github.com/users/HackYourFuture/repos","events_url":"https://api.github.com/users/HackYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HackYourFuture/JavaScript3","description":"Course content for the JavaScript3 module","fork":false,"url":"https://api.github.com/repos/HackYourFuture/JavaScript3","forks_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/forks","keys_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/teams","hooks_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/hooks","issue_events_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/issues/events{/number}","events_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/events","assignees_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/assignees{/user}","branches_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/branches{/branch}","tags_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/tags","blobs_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/git/refs{/sha}","trees_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/statuses/{sha}","languages_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/languages","stargazers_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/stargazers","contributors_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/contributors","subscribers_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/subscribers","subscription_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/subscription","commits_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/commits{/sha}","git_commits_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/git/commits{/sha}","comments_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/comments{/number}","issue_comment_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/issues/comments{/number}","contents_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/contents/{+path}","compare_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/merges","archive_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/downloads","issues_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/issues{/number}","pulls_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls{/number}","milestones_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/milestones{/number}","notifications_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/labels{/name}","releases_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/releases{/id}","deployments_url":"https://api.github.com/repos/HackYourFuture/JavaScript3/deployments","created_at":"2018-03-12T12:24:51Z","updated_at":"2018-08-17T10:02:21Z","pushed_at":"2018-09-05T23:01:50Z","git_url":"git://github.com/HackYourFuture/JavaScript3.git","ssh_url":"git@github.com:HackYourFuture/JavaScript3.git","clone_url":"https://github.com/HackYourFuture/JavaScript3.git","svn_url":"https://github.com/HackYourFuture/JavaScript3","homepage":null,"size":11281,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":41,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":43,"open_issues":41,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/93"},"html":{"href":"https://github.com/HackYourFuture/JavaScript3/pull/93"},"issue":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript3/issues/93"},"comments":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript3/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript3/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript3/statuses/6a391bc75d99623ec6c4842a0baf19b75020d823"}},"author_association":"NONE"}}
{"actor":{"display_login":"remarcmij"}}