{"action":"created","comment":{"url":"https://api.github.com/repos/bbc/simorgh/pulls/comments/216358270","pull_request_review_id":153820042,"id":216358270,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjM1ODI3MA==","diff_hunk":"@@ -0,0 +1,56 @@\n+import React from 'react';\n+import Metadata from './index';\n+import { shouldShallowMatchSnapshot } from '../../../helpers/tests/testHelpers';\n+\n+const metadataSnapshotTest = (\n+  testDescription,\n+  canonicalLink,\n+  title,\n+  lang,\n+  amp,\n+) =>\n+  describe(testDescription, () => {","path":"src/app/components/Article/Metadata/index.test.jsx","position":12,"original_position":12,"commit_id":"73c432695f6924a02904c060ef2750c717689374","original_commit_id":"73c432695f6924a02904c060ef2750c717689374","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Similar blocks of code found in 2 locations. Consider refactoring.","created_at":"2018-09-10T15:07:04Z","updated_at":"2018-09-10T15:07:04Z","html_url":"https://github.com/bbc/simorgh/pull/626#discussion_r216358270","pull_request_url":"https://api.github.com/repos/bbc/simorgh/pulls/626","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/comments/216358270"},"html":{"href":"https://github.com/bbc/simorgh/pull/626#discussion_r216358270"},"pull_request":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/626"}}},"pull_request":{"url":"https://api.github.com/repos/bbc/simorgh/pulls/626","id":213874326,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzODc0MzI2","html_url":"https://github.com/bbc/simorgh/pull/626","diff_url":"https://github.com/bbc/simorgh/pull/626.diff","patch_url":"https://github.com/bbc/simorgh/pull/626.patch","issue_url":"https://api.github.com/repos/bbc/simorgh/issues/626","number":626,"state":"open","locked":false,"title":"Create metadata component for article","user":{"login":"sareh","id":3028997,"node_id":"MDQ6VXNlcjMwMjg5OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/3028997?v=4","gravatar_id":"","url":"https://api.github.com/users/sareh","html_url":"https://github.com/sareh","followers_url":"https://api.github.com/users/sareh/followers","following_url":"https://api.github.com/users/sareh/following{/other_user}","gists_url":"https://api.github.com/users/sareh/gists{/gist_id}","starred_url":"https://api.github.com/users/sareh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sareh/subscriptions","organizations_url":"https://api.github.com/users/sareh/orgs","repos_url":"https://api.github.com/users/sareh/repos","events_url":"https://api.github.com/users/sareh/events{/privacy}","received_events_url":"https://api.github.com/users/sareh/received_events","type":"User","site_admin":false},"body":"Resolves #573\r\n\r\n- Moves the Article Metadata into its own component, nested under the Article component. \r\n- Adds snapshot tests for News and Persian articles\r\n\r\n- [x] Tests added for new features\r\n- [ ] Test engineer approval\r\n","created_at":"2018-09-07T09:48:54Z","updated_at":"2018-09-10T15:07:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8dfc439e7d3ff38dc0434bb178769c7feeaf9509","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bbc/simorgh/pulls/626/commits","review_comments_url":"https://api.github.com/repos/bbc/simorgh/pulls/626/comments","review_comment_url":"https://api.github.com/repos/bbc/simorgh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbc/simorgh/issues/626/comments","statuses_url":"https://api.github.com/repos/bbc/simorgh/statuses/73c432695f6924a02904c060ef2750c717689374","head":{"label":"bbc:metadata","ref":"metadata","sha":"73c432695f6924a02904c060ef2750c717689374","user":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":133968906,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM5Njg5MDY=","name":"simorgh","full_name":"bbc/simorgh","owner":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bbc/simorgh","description":"The BBC's new article (soon... we hope)","fork":false,"url":"https://api.github.com/repos/bbc/simorgh","forks_url":"https://api.github.com/repos/bbc/simorgh/forks","keys_url":"https://api.github.com/repos/bbc/simorgh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/simorgh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/simorgh/teams","hooks_url":"https://api.github.com/repos/bbc/simorgh/hooks","issue_events_url":"https://api.github.com/repos/bbc/simorgh/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/simorgh/events","assignees_url":"https://api.github.com/repos/bbc/simorgh/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/simorgh/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/simorgh/tags","blobs_url":"https://api.github.com/repos/bbc/simorgh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/simorgh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/simorgh/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/simorgh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/simorgh/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/simorgh/languages","stargazers_url":"https://api.github.com/repos/bbc/simorgh/stargazers","contributors_url":"https://api.github.com/repos/bbc/simorgh/contributors","subscribers_url":"https://api.github.com/repos/bbc/simorgh/subscribers","subscription_url":"https://api.github.com/repos/bbc/simorgh/subscription","commits_url":"https://api.github.com/repos/bbc/simorgh/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/simorgh/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/simorgh/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/simorgh/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/simorgh/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/simorgh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/simorgh/merges","archive_url":"https://api.github.com/repos/bbc/simorgh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/simorgh/downloads","issues_url":"https://api.github.com/repos/bbc/simorgh/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/simorgh/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/simorgh/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/simorgh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/simorgh/labels{/name}","releases_url":"https://api.github.com/repos/bbc/simorgh/releases{/id}","deployments_url":"https://api.github.com/repos/bbc/simorgh/deployments","created_at":"2018-05-18T14:59:42Z","updated_at":"2018-09-10T14:34:44Z","pushed_at":"2018-09-10T15:02:14Z","git_url":"git://github.com/bbc/simorgh.git","ssh_url":"git@github.com:bbc/simorgh.git","clone_url":"https://github.com/bbc/simorgh.git","svn_url":"https://github.com/bbc/simorgh","homepage":"https://www.bbc.com","size":41106,"stargazers_count":15,"watchers_count":15,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":98,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":7,"open_issues":98,"watchers":15,"default_branch":"latest"}},"base":{"label":"bbc:latest","ref":"latest","sha":"1a841ab5ce9fe306ef60bbff4faa450125641cb3","user":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":133968906,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM5Njg5MDY=","name":"simorgh","full_name":"bbc/simorgh","owner":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bbc/simorgh","description":"The BBC's new article (soon... we hope)","fork":false,"url":"https://api.github.com/repos/bbc/simorgh","forks_url":"https://api.github.com/repos/bbc/simorgh/forks","keys_url":"https://api.github.com/repos/bbc/simorgh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/simorgh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/simorgh/teams","hooks_url":"https://api.github.com/repos/bbc/simorgh/hooks","issue_events_url":"https://api.github.com/repos/bbc/simorgh/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/simorgh/events","assignees_url":"https://api.github.com/repos/bbc/simorgh/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/simorgh/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/simorgh/tags","blobs_url":"https://api.github.com/repos/bbc/simorgh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/simorgh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/simorgh/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/simorgh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/simorgh/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/simorgh/languages","stargazers_url":"https://api.github.com/repos/bbc/simorgh/stargazers","contributors_url":"https://api.github.com/repos/bbc/simorgh/contributors","subscribers_url":"https://api.github.com/repos/bbc/simorgh/subscribers","subscription_url":"https://api.github.com/repos/bbc/simorgh/subscription","commits_url":"https://api.github.com/repos/bbc/simorgh/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/simorgh/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/simorgh/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/simorgh/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/simorgh/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/simorgh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/simorgh/merges","archive_url":"https://api.github.com/repos/bbc/simorgh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/simorgh/downloads","issues_url":"https://api.github.com/repos/bbc/simorgh/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/simorgh/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/simorgh/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/simorgh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/simorgh/labels{/name}","releases_url":"https://api.github.com/repos/bbc/simorgh/releases{/id}","deployments_url":"https://api.github.com/repos/bbc/simorgh/deployments","created_at":"2018-05-18T14:59:42Z","updated_at":"2018-09-10T14:34:44Z","pushed_at":"2018-09-10T15:02:14Z","git_url":"git://github.com/bbc/simorgh.git","ssh_url":"git@github.com:bbc/simorgh.git","clone_url":"https://github.com/bbc/simorgh.git","svn_url":"https://github.com/bbc/simorgh","homepage":"https://www.bbc.com","size":41106,"stargazers_count":15,"watchers_count":15,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":98,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":7,"open_issues":98,"watchers":15,"default_branch":"latest"}},"_links":{"self":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/626"},"html":{"href":"https://github.com/bbc/simorgh/pull/626"},"issue":{"href":"https://api.github.com/repos/bbc/simorgh/issues/626"},"comments":{"href":"https://api.github.com/repos/bbc/simorgh/issues/626/comments"},"review_comments":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/626/comments"},"review_comment":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/626/commits"},"statuses":{"href":"https://api.github.com/repos/bbc/simorgh/statuses/73c432695f6924a02904c060ef2750c717689374"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codeclimate"}}