{"action":"created","comment":{"url":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/comments/177737955","pull_request_review_id":107662793,"id":177737955,"diff_hunk":"@@ -314,6 +326,26 @@ def _add_uid(self, uid, skip_handle=False):\n             except Exception:\n                 raise ValueError('Unrecognized uid type')\n \n+    def is_CDS_id(self, uid):\n+        \"\"\"Check if ``uid`` corresponds to a CDS id\"\"\"\n+        cds_matcher = re.compile(r'^.*cds\\.cern\\.ch/record/(\\d*)\\?.*')","path":"inspire_schemas/builders/references.py","position":34,"original_position":34,"commit_id":"02b2e93a4d03f9307f8adc06410e2ad869ed61cd","original_commit_id":"02b2e93a4d03f9307f8adc06410e2ad869ed61cd","user":{"login":"michamos","id":2895793,"avatar_url":"https://avatars3.githubusercontent.com/u/2895793?v=4","gravatar_id":"","url":"https://api.github.com/users/michamos","html_url":"https://github.com/michamos","followers_url":"https://api.github.com/users/michamos/followers","following_url":"https://api.github.com/users/michamos/following{/other_user}","gists_url":"https://api.github.com/users/michamos/gists{/gist_id}","starred_url":"https://api.github.com/users/michamos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michamos/subscriptions","organizations_url":"https://api.github.com/users/michamos/orgs","repos_url":"https://api.github.com/users/michamos/repos","events_url":"https://api.github.com/users/michamos/events{/privacy}","received_events_url":"https://api.github.com/users/michamos/received_events","type":"User","site_admin":false},"body":"* why the question mark? if you use the same pattern both to check and extract, you should define it only once.\r\n* there are more domains for CDS, like `cdsweb`. I can try to find a list somewhere.","created_at":"2018-03-28T12:53:03Z","updated_at":"2018-03-28T12:54:12Z","html_url":"https://github.com/inspirehep/inspire-schemas/pull/313#discussion_r177737955","pull_request_url":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/313","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/comments/177737955"},"html":{"href":"https://github.com/inspirehep/inspire-schemas/pull/313#discussion_r177737955"},"pull_request":{"href":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/313"}}},"pull_request":{"url":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/313","id":177656653,"html_url":"https://github.com/inspirehep/inspire-schemas/pull/313","diff_url":"https://github.com/inspirehep/inspire-schemas/pull/313.diff","patch_url":"https://github.com/inspirehep/inspire-schemas/pull/313.patch","issue_url":"https://api.github.com/repos/inspirehep/inspire-schemas/issues/313","number":313,"state":"open","locked":false,"title":"elements: add external_system_identifiers to reference json schema","user":{"login":"vbalbp","id":36045442,"avatar_url":"https://avatars2.githubusercontent.com/u/36045442?v=4","gravatar_id":"","url":"https://api.github.com/users/vbalbp","html_url":"https://github.com/vbalbp","followers_url":"https://api.github.com/users/vbalbp/followers","following_url":"https://api.github.com/users/vbalbp/following{/other_user}","gists_url":"https://api.github.com/users/vbalbp/gists{/gist_id}","starred_url":"https://api.github.com/users/vbalbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbalbp/subscriptions","organizations_url":"https://api.github.com/users/vbalbp/orgs","repos_url":"https://api.github.com/users/vbalbp/repos","events_url":"https://api.github.com/users/vbalbp/events{/privacy}","received_events_url":"https://api.github.com/users/vbalbp/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Victor Balbuena <vbalbp@gmail.com>","created_at":"2018-03-27T07:48:31Z","updated_at":"2018-03-28T12:54:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a6c9847348d724bfde1f7efe48353bbada63830","assignee":{"login":"vbalbp","id":36045442,"avatar_url":"https://avatars2.githubusercontent.com/u/36045442?v=4","gravatar_id":"","url":"https://api.github.com/users/vbalbp","html_url":"https://github.com/vbalbp","followers_url":"https://api.github.com/users/vbalbp/followers","following_url":"https://api.github.com/users/vbalbp/following{/other_user}","gists_url":"https://api.github.com/users/vbalbp/gists{/gist_id}","starred_url":"https://api.github.com/users/vbalbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbalbp/subscriptions","organizations_url":"https://api.github.com/users/vbalbp/orgs","repos_url":"https://api.github.com/users/vbalbp/repos","events_url":"https://api.github.com/users/vbalbp/events{/privacy}","received_events_url":"https://api.github.com/users/vbalbp/received_events","type":"User","site_admin":false},"assignees":[{"login":"vbalbp","id":36045442,"avatar_url":"https://avatars2.githubusercontent.com/u/36045442?v=4","gravatar_id":"","url":"https://api.github.com/users/vbalbp","html_url":"https://github.com/vbalbp","followers_url":"https://api.github.com/users/vbalbp/followers","following_url":"https://api.github.com/users/vbalbp/following{/other_user}","gists_url":"https://api.github.com/users/vbalbp/gists{/gist_id}","starred_url":"https://api.github.com/users/vbalbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbalbp/subscriptions","organizations_url":"https://api.github.com/users/vbalbp/orgs","repos_url":"https://api.github.com/users/vbalbp/repos","events_url":"https://api.github.com/users/vbalbp/events{/privacy}","received_events_url":"https://api.github.com/users/vbalbp/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":828439695,"url":"https://api.github.com/repos/inspirehep/inspire-schemas/labels/Review:%20WIP","name":"Review: WIP","color":"e6e6e6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/313/commits","review_comments_url":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/313/comments","review_comment_url":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inspirehep/inspire-schemas/issues/313/comments","statuses_url":"https://api.github.com/repos/inspirehep/inspire-schemas/statuses/02b2e93a4d03f9307f8adc06410e2ad869ed61cd","head":{"label":"vbalbp:jsonschema","ref":"jsonschema","sha":"02b2e93a4d03f9307f8adc06410e2ad869ed61cd","user":{"login":"vbalbp","id":36045442,"avatar_url":"https://avatars2.githubusercontent.com/u/36045442?v=4","gravatar_id":"","url":"https://api.github.com/users/vbalbp","html_url":"https://github.com/vbalbp","followers_url":"https://api.github.com/users/vbalbp/followers","following_url":"https://api.github.com/users/vbalbp/following{/other_user}","gists_url":"https://api.github.com/users/vbalbp/gists{/gist_id}","starred_url":"https://api.github.com/users/vbalbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbalbp/subscriptions","organizations_url":"https://api.github.com/users/vbalbp/orgs","repos_url":"https://api.github.com/users/vbalbp/repos","events_url":"https://api.github.com/users/vbalbp/events{/privacy}","received_events_url":"https://api.github.com/users/vbalbp/received_events","type":"User","site_admin":false},"repo":{"id":124230521,"name":"inspire-schemas","full_name":"vbalbp/inspire-schemas","owner":{"login":"vbalbp","id":36045442,"avatar_url":"https://avatars2.githubusercontent.com/u/36045442?v=4","gravatar_id":"","url":"https://api.github.com/users/vbalbp","html_url":"https://github.com/vbalbp","followers_url":"https://api.github.com/users/vbalbp/followers","following_url":"https://api.github.com/users/vbalbp/following{/other_user}","gists_url":"https://api.github.com/users/vbalbp/gists{/gist_id}","starred_url":"https://api.github.com/users/vbalbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbalbp/subscriptions","organizations_url":"https://api.github.com/users/vbalbp/orgs","repos_url":"https://api.github.com/users/vbalbp/repos","events_url":"https://api.github.com/users/vbalbp/events{/privacy}","received_events_url":"https://api.github.com/users/vbalbp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vbalbp/inspire-schemas","description":"Inspire JSON schemas and utilities to use them.","fork":true,"url":"https://api.github.com/repos/vbalbp/inspire-schemas","forks_url":"https://api.github.com/repos/vbalbp/inspire-schemas/forks","keys_url":"https://api.github.com/repos/vbalbp/inspire-schemas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vbalbp/inspire-schemas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vbalbp/inspire-schemas/teams","hooks_url":"https://api.github.com/repos/vbalbp/inspire-schemas/hooks","issue_events_url":"https://api.github.com/repos/vbalbp/inspire-schemas/issues/events{/number}","events_url":"https://api.github.com/repos/vbalbp/inspire-schemas/events","assignees_url":"https://api.github.com/repos/vbalbp/inspire-schemas/assignees{/user}","branches_url":"https://api.github.com/repos/vbalbp/inspire-schemas/branches{/branch}","tags_url":"https://api.github.com/repos/vbalbp/inspire-schemas/tags","blobs_url":"https://api.github.com/repos/vbalbp/inspire-schemas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vbalbp/inspire-schemas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vbalbp/inspire-schemas/git/refs{/sha}","trees_url":"https://api.github.com/repos/vbalbp/inspire-schemas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vbalbp/inspire-schemas/statuses/{sha}","languages_url":"https://api.github.com/repos/vbalbp/inspire-schemas/languages","stargazers_url":"https://api.github.com/repos/vbalbp/inspire-schemas/stargazers","contributors_url":"https://api.github.com/repos/vbalbp/inspire-schemas/contributors","subscribers_url":"https://api.github.com/repos/vbalbp/inspire-schemas/subscribers","subscription_url":"https://api.github.com/repos/vbalbp/inspire-schemas/subscription","commits_url":"https://api.github.com/repos/vbalbp/inspire-schemas/commits{/sha}","git_commits_url":"https://api.github.com/repos/vbalbp/inspire-schemas/git/commits{/sha}","comments_url":"https://api.github.com/repos/vbalbp/inspire-schemas/comments{/number}","issue_comment_url":"https://api.github.com/repos/vbalbp/inspire-schemas/issues/comments{/number}","contents_url":"https://api.github.com/repos/vbalbp/inspire-schemas/contents/{+path}","compare_url":"https://api.github.com/repos/vbalbp/inspire-schemas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vbalbp/inspire-schemas/merges","archive_url":"https://api.github.com/repos/vbalbp/inspire-schemas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vbalbp/inspire-schemas/downloads","issues_url":"https://api.github.com/repos/vbalbp/inspire-schemas/issues{/number}","pulls_url":"https://api.github.com/repos/vbalbp/inspire-schemas/pulls{/number}","milestones_url":"https://api.github.com/repos/vbalbp/inspire-schemas/milestones{/number}","notifications_url":"https://api.github.com/repos/vbalbp/inspire-schemas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vbalbp/inspire-schemas/labels{/name}","releases_url":"https://api.github.com/repos/vbalbp/inspire-schemas/releases{/id}","deployments_url":"https://api.github.com/repos/vbalbp/inspire-schemas/deployments","created_at":"2018-03-07T12:07:53Z","updated_at":"2018-03-26T12:02:48Z","pushed_at":"2018-03-28T12:12:16Z","git_url":"git://github.com/vbalbp/inspire-schemas.git","ssh_url":"git@github.com:vbalbp/inspire-schemas.git","clone_url":"https://github.com/vbalbp/inspire-schemas.git","svn_url":"https://github.com/vbalbp/inspire-schemas","homepage":null,"size":1138,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"inspirehep:master","ref":"master","sha":"cbf877610a52fc1ae032c20310c9c88ab1d5c71e","user":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars3.githubusercontent.com/u/356664?v=4","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"repo":{"id":68928471,"name":"inspire-schemas","full_name":"inspirehep/inspire-schemas","owner":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars3.githubusercontent.com/u/356664?v=4","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inspirehep/inspire-schemas","description":"Inspire JSON schemas and utilities to use them.","fork":false,"url":"https://api.github.com/repos/inspirehep/inspire-schemas","forks_url":"https://api.github.com/repos/inspirehep/inspire-schemas/forks","keys_url":"https://api.github.com/repos/inspirehep/inspire-schemas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspirehep/inspire-schemas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspirehep/inspire-schemas/teams","hooks_url":"https://api.github.com/repos/inspirehep/inspire-schemas/hooks","issue_events_url":"https://api.github.com/repos/inspirehep/inspire-schemas/issues/events{/number}","events_url":"https://api.github.com/repos/inspirehep/inspire-schemas/events","assignees_url":"https://api.github.com/repos/inspirehep/inspire-schemas/assignees{/user}","branches_url":"https://api.github.com/repos/inspirehep/inspire-schemas/branches{/branch}","tags_url":"https://api.github.com/repos/inspirehep/inspire-schemas/tags","blobs_url":"https://api.github.com/repos/inspirehep/inspire-schemas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspirehep/inspire-schemas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspirehep/inspire-schemas/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspirehep/inspire-schemas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspirehep/inspire-schemas/statuses/{sha}","languages_url":"https://api.github.com/repos/inspirehep/inspire-schemas/languages","stargazers_url":"https://api.github.com/repos/inspirehep/inspire-schemas/stargazers","contributors_url":"https://api.github.com/repos/inspirehep/inspire-schemas/contributors","subscribers_url":"https://api.github.com/repos/inspirehep/inspire-schemas/subscribers","subscription_url":"https://api.github.com/repos/inspirehep/inspire-schemas/subscription","commits_url":"https://api.github.com/repos/inspirehep/inspire-schemas/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspirehep/inspire-schemas/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspirehep/inspire-schemas/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspirehep/inspire-schemas/issues/comments{/number}","contents_url":"https://api.github.com/repos/inspirehep/inspire-schemas/contents/{+path}","compare_url":"https://api.github.com/repos/inspirehep/inspire-schemas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspirehep/inspire-schemas/merges","archive_url":"https://api.github.com/repos/inspirehep/inspire-schemas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspirehep/inspire-schemas/downloads","issues_url":"https://api.github.com/repos/inspirehep/inspire-schemas/issues{/number}","pulls_url":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls{/number}","milestones_url":"https://api.github.com/repos/inspirehep/inspire-schemas/milestones{/number}","notifications_url":"https://api.github.com/repos/inspirehep/inspire-schemas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspirehep/inspire-schemas/labels{/name}","releases_url":"https://api.github.com/repos/inspirehep/inspire-schemas/releases{/id}","deployments_url":"https://api.github.com/repos/inspirehep/inspire-schemas/deployments","created_at":"2016-09-22T14:18:38Z","updated_at":"2018-03-26T14:09:59Z","pushed_at":"2018-03-28T12:12:17Z","git_url":"git://github.com/inspirehep/inspire-schemas.git","ssh_url":"git@github.com:inspirehep/inspire-schemas.git","clone_url":"https://github.com/inspirehep/inspire-schemas.git","svn_url":"https://github.com/inspirehep/inspire-schemas","homepage":null,"size":1137,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":17,"open_issues":21,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/313"},"html":{"href":"https://github.com/inspirehep/inspire-schemas/pull/313"},"issue":{"href":"https://api.github.com/repos/inspirehep/inspire-schemas/issues/313"},"comments":{"href":"https://api.github.com/repos/inspirehep/inspire-schemas/issues/313/comments"},"review_comments":{"href":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/313/comments"},"review_comment":{"href":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inspirehep/inspire-schemas/pulls/313/commits"},"statuses":{"href":"https://api.github.com/repos/inspirehep/inspire-schemas/statuses/02b2e93a4d03f9307f8adc06410e2ad869ed61cd"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"michamos"}}