{"action":"created","comment":{"url":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/comments/107489670","pull_request_review_id":28465627,"id":107489670,"diff_hunk":"@@ -0,0 +1,156 @@\n+#!/usr/bin/env python\n+# -*- coding: utf-8 -*-\n+#\n+# Copyright (C) 2017 Bitergia\n+#\n+# This program is free software; you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation; either version 3 of the License, or\n+# (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program. If not, see <http://www.gnu.org/licenses/>.\n+#\n+# Authors:\n+#     Luis Cañas-Díaz <lcanas@bitergia.com>\n+#\n+\n+from __future__ import unicode_literals\n+\n+import argparse\n+import datetime\n+import json\n+import sys\n+\n+from sortinghat.exceptions import InvalidFormatError\n+from sortinghat.parsing.grimoirelab import GrimoireLabParser\n+\n+\n+GRIMOIRELAB2SH_DESC_MSG = \\\n+\"\"\"Export identities information from GrimoireLab files to Sorting Hat\n+JSON format.\"\"\"","path":"misc/grimoirelab2sh","position":36,"original_position":36,"commit_id":"5aa2ef53068a9c2dbfca4d33e4b8f451cc20ad41","original_commit_id":"5aa2ef53068a9c2dbfca4d33e4b8f451cc20ad41","user":{"login":"sduenas","id":833352,"avatar_url":"https://avatars0.githubusercontent.com/u/833352?v=3","gravatar_id":"","url":"https://api.github.com/users/sduenas","html_url":"https://github.com/sduenas","followers_url":"https://api.github.com/users/sduenas/followers","following_url":"https://api.github.com/users/sduenas/following{/other_user}","gists_url":"https://api.github.com/users/sduenas/gists{/gist_id}","starred_url":"https://api.github.com/users/sduenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sduenas/subscriptions","organizations_url":"https://api.github.com/users/sduenas/orgs","repos_url":"https://api.github.com/users/sduenas/repos","events_url":"https://api.github.com/users/sduenas/events{/privacy}","received_events_url":"https://api.github.com/users/sduenas/received_events","type":"User","site_admin":false},"body":"Put the whole docstring in the same line, otherwise it will show a weird message when help command is called. By the way, we don't have problems with lines longer than 80 characters, so feel the freedom :-)","created_at":"2017-03-22T18:05:28Z","updated_at":"2017-03-22T18:42:39Z","html_url":"https://github.com/grimoirelab/sortinghat/pull/81#discussion_r107489670","pull_request_url":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/comments/107489670"},"html":{"href":"https://github.com/grimoirelab/sortinghat/pull/81#discussion_r107489670"},"pull_request":{"href":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/81","id":111842325,"html_url":"https://github.com/grimoirelab/sortinghat/pull/81","diff_url":"https://github.com/grimoirelab/sortinghat/pull/81.diff","patch_url":"https://github.com/grimoirelab/sortinghat/pull/81.patch","issue_url":"https://api.github.com/repos/grimoirelab/sortinghat/issues/81","number":81,"state":"open","locked":false,"title":"[parsing:grimoirelab] Script, library and tests to parse GrimoireLab files","user":{"login":"sanacl","id":326719,"avatar_url":"https://avatars0.githubusercontent.com/u/326719?v=3","gravatar_id":"","url":"https://api.github.com/users/sanacl","html_url":"https://github.com/sanacl","followers_url":"https://api.github.com/users/sanacl/followers","following_url":"https://api.github.com/users/sanacl/following{/other_user}","gists_url":"https://api.github.com/users/sanacl/gists{/gist_id}","starred_url":"https://api.github.com/users/sanacl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanacl/subscriptions","organizations_url":"https://api.github.com/users/sanacl/orgs","repos_url":"https://api.github.com/users/sanacl/repos","events_url":"https://api.github.com/users/sanacl/events{/privacy}","received_events_url":"https://api.github.com/users/sanacl/received_events","type":"User","site_admin":false},"body":"Script, library and tests to parse GrimoireLab files\r\n\r\nWith these changes, Sorting Hat will be able to import GrimoireLab\r\nidentity and organizations files converting them to Sorting Hat\r\nformat. The GrimoireLab format v1 is detailed at\r\nhttps://github.com/Bitergia/identities\r\n\r\nChanges add a script misc/grimoirelab2sh to convert GrimoireLab\r\nidentities and organization files into Sorting Hat format. Also add\r\nthe library used by the script and 6 test cases.","created_at":"2017-03-21T17:58:14Z","updated_at":"2017-03-22T18:42:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eaf2a3205436f90b48bfbddfceda10fb8a916d99","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/81/commits","review_comments_url":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/81/comments","review_comment_url":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grimoirelab/sortinghat/issues/81/comments","statuses_url":"https://api.github.com/repos/grimoirelab/sortinghat/statuses/5aa2ef53068a9c2dbfca4d33e4b8f451cc20ad41","head":{"label":"sanacl:grimoirelab_format_v1","ref":"grimoirelab_format_v1","sha":"5aa2ef53068a9c2dbfca4d33e4b8f451cc20ad41","user":{"login":"sanacl","id":326719,"avatar_url":"https://avatars0.githubusercontent.com/u/326719?v=3","gravatar_id":"","url":"https://api.github.com/users/sanacl","html_url":"https://github.com/sanacl","followers_url":"https://api.github.com/users/sanacl/followers","following_url":"https://api.github.com/users/sanacl/following{/other_user}","gists_url":"https://api.github.com/users/sanacl/gists{/gist_id}","starred_url":"https://api.github.com/users/sanacl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanacl/subscriptions","organizations_url":"https://api.github.com/users/sanacl/orgs","repos_url":"https://api.github.com/users/sanacl/repos","events_url":"https://api.github.com/users/sanacl/events{/privacy}","received_events_url":"https://api.github.com/users/sanacl/received_events","type":"User","site_admin":false},"repo":{"id":83482794,"name":"sortinghat","full_name":"sanacl/sortinghat","owner":{"login":"sanacl","id":326719,"avatar_url":"https://avatars0.githubusercontent.com/u/326719?v=3","gravatar_id":"","url":"https://api.github.com/users/sanacl","html_url":"https://github.com/sanacl","followers_url":"https://api.github.com/users/sanacl/followers","following_url":"https://api.github.com/users/sanacl/following{/other_user}","gists_url":"https://api.github.com/users/sanacl/gists{/gist_id}","starred_url":"https://api.github.com/users/sanacl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanacl/subscriptions","organizations_url":"https://api.github.com/users/sanacl/orgs","repos_url":"https://api.github.com/users/sanacl/repos","events_url":"https://api.github.com/users/sanacl/events{/privacy}","received_events_url":"https://api.github.com/users/sanacl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanacl/sortinghat","description":"A tool to manage identities","fork":true,"url":"https://api.github.com/repos/sanacl/sortinghat","forks_url":"https://api.github.com/repos/sanacl/sortinghat/forks","keys_url":"https://api.github.com/repos/sanacl/sortinghat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanacl/sortinghat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanacl/sortinghat/teams","hooks_url":"https://api.github.com/repos/sanacl/sortinghat/hooks","issue_events_url":"https://api.github.com/repos/sanacl/sortinghat/issues/events{/number}","events_url":"https://api.github.com/repos/sanacl/sortinghat/events","assignees_url":"https://api.github.com/repos/sanacl/sortinghat/assignees{/user}","branches_url":"https://api.github.com/repos/sanacl/sortinghat/branches{/branch}","tags_url":"https://api.github.com/repos/sanacl/sortinghat/tags","blobs_url":"https://api.github.com/repos/sanacl/sortinghat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanacl/sortinghat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanacl/sortinghat/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanacl/sortinghat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanacl/sortinghat/statuses/{sha}","languages_url":"https://api.github.com/repos/sanacl/sortinghat/languages","stargazers_url":"https://api.github.com/repos/sanacl/sortinghat/stargazers","contributors_url":"https://api.github.com/repos/sanacl/sortinghat/contributors","subscribers_url":"https://api.github.com/repos/sanacl/sortinghat/subscribers","subscription_url":"https://api.github.com/repos/sanacl/sortinghat/subscription","commits_url":"https://api.github.com/repos/sanacl/sortinghat/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanacl/sortinghat/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanacl/sortinghat/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanacl/sortinghat/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanacl/sortinghat/contents/{+path}","compare_url":"https://api.github.com/repos/sanacl/sortinghat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanacl/sortinghat/merges","archive_url":"https://api.github.com/repos/sanacl/sortinghat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanacl/sortinghat/downloads","issues_url":"https://api.github.com/repos/sanacl/sortinghat/issues{/number}","pulls_url":"https://api.github.com/repos/sanacl/sortinghat/pulls{/number}","milestones_url":"https://api.github.com/repos/sanacl/sortinghat/milestones{/number}","notifications_url":"https://api.github.com/repos/sanacl/sortinghat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanacl/sortinghat/labels{/name}","releases_url":"https://api.github.com/repos/sanacl/sortinghat/releases{/id}","deployments_url":"https://api.github.com/repos/sanacl/sortinghat/deployments","created_at":"2017-02-28T21:50:38Z","updated_at":"2017-02-28T21:50:40Z","pushed_at":"2017-03-22T11:50:18Z","git_url":"git://github.com/sanacl/sortinghat.git","ssh_url":"git@github.com:sanacl/sortinghat.git","clone_url":"https://github.com/sanacl/sortinghat.git","svn_url":"https://github.com/sanacl/sortinghat","homepage":null,"size":743,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"grimoirelab:master","ref":"master","sha":"90a4a74970556ff4b14bb1708bc13c8daf600f6e","user":{"login":"grimoirelab","id":16151805,"avatar_url":"https://avatars3.githubusercontent.com/u/16151805?v=3","gravatar_id":"","url":"https://api.github.com/users/grimoirelab","html_url":"https://github.com/grimoirelab","followers_url":"https://api.github.com/users/grimoirelab/followers","following_url":"https://api.github.com/users/grimoirelab/following{/other_user}","gists_url":"https://api.github.com/users/grimoirelab/gists{/gist_id}","starred_url":"https://api.github.com/users/grimoirelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grimoirelab/subscriptions","organizations_url":"https://api.github.com/users/grimoirelab/orgs","repos_url":"https://api.github.com/users/grimoirelab/repos","events_url":"https://api.github.com/users/grimoirelab/events{/privacy}","received_events_url":"https://api.github.com/users/grimoirelab/received_events","type":"Organization","site_admin":false},"repo":{"id":24677113,"name":"sortinghat","full_name":"grimoirelab/sortinghat","owner":{"login":"grimoirelab","id":16151805,"avatar_url":"https://avatars3.githubusercontent.com/u/16151805?v=3","gravatar_id":"","url":"https://api.github.com/users/grimoirelab","html_url":"https://github.com/grimoirelab","followers_url":"https://api.github.com/users/grimoirelab/followers","following_url":"https://api.github.com/users/grimoirelab/following{/other_user}","gists_url":"https://api.github.com/users/grimoirelab/gists{/gist_id}","starred_url":"https://api.github.com/users/grimoirelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grimoirelab/subscriptions","organizations_url":"https://api.github.com/users/grimoirelab/orgs","repos_url":"https://api.github.com/users/grimoirelab/repos","events_url":"https://api.github.com/users/grimoirelab/events{/privacy}","received_events_url":"https://api.github.com/users/grimoirelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/grimoirelab/sortinghat","description":"A tool to manage identities","fork":false,"url":"https://api.github.com/repos/grimoirelab/sortinghat","forks_url":"https://api.github.com/repos/grimoirelab/sortinghat/forks","keys_url":"https://api.github.com/repos/grimoirelab/sortinghat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grimoirelab/sortinghat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grimoirelab/sortinghat/teams","hooks_url":"https://api.github.com/repos/grimoirelab/sortinghat/hooks","issue_events_url":"https://api.github.com/repos/grimoirelab/sortinghat/issues/events{/number}","events_url":"https://api.github.com/repos/grimoirelab/sortinghat/events","assignees_url":"https://api.github.com/repos/grimoirelab/sortinghat/assignees{/user}","branches_url":"https://api.github.com/repos/grimoirelab/sortinghat/branches{/branch}","tags_url":"https://api.github.com/repos/grimoirelab/sortinghat/tags","blobs_url":"https://api.github.com/repos/grimoirelab/sortinghat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grimoirelab/sortinghat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grimoirelab/sortinghat/git/refs{/sha}","trees_url":"https://api.github.com/repos/grimoirelab/sortinghat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grimoirelab/sortinghat/statuses/{sha}","languages_url":"https://api.github.com/repos/grimoirelab/sortinghat/languages","stargazers_url":"https://api.github.com/repos/grimoirelab/sortinghat/stargazers","contributors_url":"https://api.github.com/repos/grimoirelab/sortinghat/contributors","subscribers_url":"https://api.github.com/repos/grimoirelab/sortinghat/subscribers","subscription_url":"https://api.github.com/repos/grimoirelab/sortinghat/subscription","commits_url":"https://api.github.com/repos/grimoirelab/sortinghat/commits{/sha}","git_commits_url":"https://api.github.com/repos/grimoirelab/sortinghat/git/commits{/sha}","comments_url":"https://api.github.com/repos/grimoirelab/sortinghat/comments{/number}","issue_comment_url":"https://api.github.com/repos/grimoirelab/sortinghat/issues/comments{/number}","contents_url":"https://api.github.com/repos/grimoirelab/sortinghat/contents/{+path}","compare_url":"https://api.github.com/repos/grimoirelab/sortinghat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grimoirelab/sortinghat/merges","archive_url":"https://api.github.com/repos/grimoirelab/sortinghat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grimoirelab/sortinghat/downloads","issues_url":"https://api.github.com/repos/grimoirelab/sortinghat/issues{/number}","pulls_url":"https://api.github.com/repos/grimoirelab/sortinghat/pulls{/number}","milestones_url":"https://api.github.com/repos/grimoirelab/sortinghat/milestones{/number}","notifications_url":"https://api.github.com/repos/grimoirelab/sortinghat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grimoirelab/sortinghat/labels{/name}","releases_url":"https://api.github.com/repos/grimoirelab/sortinghat/releases{/id}","deployments_url":"https://api.github.com/repos/grimoirelab/sortinghat/deployments","created_at":"2014-10-01T12:12:30Z","updated_at":"2017-02-28T21:52:31Z","pushed_at":"2017-03-22T11:50:19Z","git_url":"git://github.com/grimoirelab/sortinghat.git","ssh_url":"git@github.com:grimoirelab/sortinghat.git","clone_url":"https://github.com/grimoirelab/sortinghat.git","svn_url":"https://github.com/grimoirelab/sortinghat","homepage":null,"size":754,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":7,"forks":5,"open_issues":7,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/81"},"html":{"href":"https://github.com/grimoirelab/sortinghat/pull/81"},"issue":{"href":"https://api.github.com/repos/grimoirelab/sortinghat/issues/81"},"comments":{"href":"https://api.github.com/repos/grimoirelab/sortinghat/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grimoirelab/sortinghat/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/grimoirelab/sortinghat/statuses/5aa2ef53068a9c2dbfca4d33e4b8f451cc20ad41"}}}}
{"actor":{"display_login":"sduenas"}}