payload: {"action":"created","comment":{"url":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/comments/300527698","pull_request_review_id":258204818,"id":300527698,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwMDUyNzY5OA==","diff_hunk":"@@ -512,6 +512,64 @@ def get_python_version():\n     return '.'.join(map(str, sys.version_info[:3]))\n \n \n+def get_git_commit_hash():\n+    try:\n+        return six.ensure_str(\n+            subprocess.check_output([\"git\", \"rev-parse\", \"--verify\", \"HEAD\"])\n+        ).strip()\n+    except:\n+        pass\n+    raise OSError(\"unable to find git commit hash\")\n+\n+\n+def get_git_commit_dirtiness():\n+    try:\n+        diff_paths = six.ensure_str(\n+            subprocess.check_output([\"git\", \"status\", \"--porcelain\"])\n+        ).splitlines()\n+    except:\n+        pass\n+    else:\n+        if [path for path in diff_paths if not path.startswith(\"??\")]:  # ignore untracked","path":"verta/verta/_utils.py","position":22,"original_position":22,"commit_id":"7dbf60d3ee1558b3b6a0b50f2e262170574166da","original_commit_id":"7dbf60d3ee1558b3b6a0b50f2e262170574166da","user":{"login":"verta-service-account","id":48162817,"node_id":"MDQ6VXNlcjQ4MTYyODE3","avatar_url":"https://avatars1.githubusercontent.com/u/48162817?v=4","gravatar_id":"","url":"https://api.github.com/users/verta-service-account","html_url":"https://github.com/verta-service-account","followers_url":"https://api.github.com/users/verta-service-account/followers","following_url":"https://api.github.com/users/verta-service-account/following{/other_user}","gists_url":"https://api.github.com/users/verta-service-account/gists{/gist_id}","starred_url":"https://api.github.com/users/verta-service-account/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/verta-service-account/subscriptions","organizations_url":"https://api.github.com/users/verta-service-account/orgs","repos_url":"https://api.github.com/users/verta-service-account/repos","events_url":"https://api.github.com/users/verta-service-account/events{/privacy}","received_events_url":"https://api.github.com/users/verta-service-account/received_events","type":"User","site_admin":false},"body":"Nit: unnecessary use of list comprehension is less understandable.","created_at":"2019-07-05T02:56:09Z","updated_at":"2019-07-05T02:57:44Z","html_url":"https://github.com/VertaAI/modeldb-client/pull/125#discussion_r300527698","pull_request_url":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/125","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/comments/300527698"},"html":{"href":"https://github.com/VertaAI/modeldb-client/pull/125#discussion_r300527698"},"pull_request":{"href":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/125"}}},"pull_request":{"url":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/125","id":294716631,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk0NzE2NjMx","html_url":"https://github.com/VertaAI/modeldb-client/pull/125","diff_url":"https://github.com/VertaAI/modeldb-client/pull/125.diff","patch_url":"https://github.com/VertaAI/modeldb-client/pull/125.patch","issue_url":"https://api.github.com/repos/VertaAI/modeldb-client/issues/125","number":125,"state":"open","locked":false,"title":"Implement internal utils for finding git info","user":{"login":"convoliution","id":7754936,"node_id":"MDQ6VXNlcjc3NTQ5MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/7754936?v=4","gravatar_id":"","url":"https://api.github.com/users/convoliution","html_url":"https://github.com/convoliution","followers_url":"https://api.github.com/users/convoliution/followers","following_url":"https://api.github.com/users/convoliution/following{/other_user}","gists_url":"https://api.github.com/users/convoliution/gists{/gist_id}","starred_url":"https://api.github.com/users/convoliution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/convoliution/subscriptions","organizations_url":"https://api.github.com/users/convoliution/orgs","repos_url":"https://api.github.com/users/convoliution/repos","events_url":"https://api.github.com/users/convoliution/events{/privacy}","received_events_url":"https://api.github.com/users/convoliution/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-07-05T02:43:39Z","updated_at":"2019-07-05T02:57:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50e9204551f7e094591f3be91667dc1dcff9b79d","assignee":{"login":"convoliution","id":7754936,"node_id":"MDQ6VXNlcjc3NTQ5MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/7754936?v=4","gravatar_id":"","url":"https://api.github.com/users/convoliution","html_url":"https://github.com/convoliution","followers_url":"https://api.github.com/users/convoliution/followers","following_url":"https://api.github.com/users/convoliution/following{/other_user}","gists_url":"https://api.github.com/users/convoliution/gists{/gist_id}","starred_url":"https://api.github.com/users/convoliution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/convoliution/subscriptions","organizations_url":"https://api.github.com/users/convoliution/orgs","repos_url":"https://api.github.com/users/convoliution/repos","events_url":"https://api.github.com/users/convoliution/events{/privacy}","received_events_url":"https://api.github.com/users/convoliution/received_events","type":"User","site_admin":false},"assignees":[{"login":"convoliution","id":7754936,"node_id":"MDQ6VXNlcjc3NTQ5MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/7754936?v=4","gravatar_id":"","url":"https://api.github.com/users/convoliution","html_url":"https://github.com/convoliution","followers_url":"https://api.github.com/users/convoliution/followers","following_url":"https://api.github.com/users/convoliution/following{/other_user}","gists_url":"https://api.github.com/users/convoliution/gists{/gist_id}","starred_url":"https://api.github.com/users/convoliution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/convoliution/subscriptions","organizations_url":"https://api.github.com/users/convoliution/orgs","repos_url":"https://api.github.com/users/convoliution/repos","events_url":"https://api.github.com/users/convoliution/events{/privacy}","received_events_url":"https://api.github.com/users/convoliution/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/125/commits","review_comments_url":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/125/comments","review_comment_url":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VertaAI/modeldb-client/issues/125/comments","statuses_url":"https://api.github.com/repos/VertaAI/modeldb-client/statuses/7dbf60d3ee1558b3b6a0b50f2e262170574166da","head":{"label":"VertaAI:ml/git-utils","ref":"ml/git-utils","sha":"7dbf60d3ee1558b3b6a0b50f2e262170574166da","user":{"login":"VertaAI","id":45020510,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MDIwNTEw","avatar_url":"https://avatars1.githubusercontent.com/u/45020510?v=4","gravatar_id":"","url":"https://api.github.com/users/VertaAI","html_url":"https://github.com/VertaAI","followers_url":"https://api.github.com/users/VertaAI/followers","following_url":"https://api.github.com/users/VertaAI/following{/other_user}","gists_url":"https://api.github.com/users/VertaAI/gists{/gist_id}","starred_url":"https://api.github.com/users/VertaAI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VertaAI/subscriptions","organizations_url":"https://api.github.com/users/VertaAI/orgs","repos_url":"https://api.github.com/users/VertaAI/repos","events_url":"https://api.github.com/users/VertaAI/events{/privacy}","received_events_url":"https://api.github.com/users/VertaAI/received_events","type":"Organization","site_admin":false},"repo":{"id":163879941,"node_id":"MDEwOlJlcG9zaXRvcnkxNjM4Nzk5NDE=","name":"modeldb-client","full_name":"VertaAI/modeldb-client","private":false,"owner":{"login":"VertaAI","id":45020510,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MDIwNTEw","avatar_url":"https://avatars1.githubusercontent.com/u/45020510?v=4","gravatar_id":"","url":"https://api.github.com/users/VertaAI","html_url":"https://github.com/VertaAI","followers_url":"https://api.github.com/users/VertaAI/followers","following_url":"https://api.github.com/users/VertaAI/following{/other_user}","gists_url":"https://api.github.com/users/VertaAI/gists{/gist_id}","starred_url":"https://api.github.com/users/VertaAI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VertaAI/subscriptions","organizations_url":"https://api.github.com/users/VertaAI/orgs","repos_url":"https://api.github.com/users/VertaAI/repos","events_url":"https://api.github.com/users/VertaAI/events{/privacy}","received_events_url":"https://api.github.com/users/VertaAI/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/VertaAI/modeldb-client","description":null,"fork":false,"url":"https://api.github.com/repos/VertaAI/modeldb-client","forks_url":"https://api.github.com/repos/VertaAI/modeldb-client/forks","keys_url":"https://api.github.com/repos/VertaAI/modeldb-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VertaAI/modeldb-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VertaAI/modeldb-client/teams","hooks_url":"https://api.github.com/repos/VertaAI/modeldb-client/hooks","issue_events_url":"https://api.github.com/repos/VertaAI/modeldb-client/issues/events{/number}","events_url":"https://api.github.com/repos/VertaAI/modeldb-client/events","assignees_url":"https://api.github.com/repos/VertaAI/modeldb-client/assignees{/user}","branches_url":"https://api.github.com/repos/VertaAI/modeldb-client/branches{/branch}","tags_url":"https://api.github.com/repos/VertaAI/modeldb-client/tags","blobs_url":"https://api.github.com/repos/VertaAI/modeldb-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VertaAI/modeldb-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VertaAI/modeldb-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/VertaAI/modeldb-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VertaAI/modeldb-client/statuses/{sha}","languages_url":"https://api.github.com/repos/VertaAI/modeldb-client/languages","stargazers_url":"https://api.github.com/repos/VertaAI/modeldb-client/stargazers","contributors_url":"https://api.github.com/repos/VertaAI/modeldb-client/contributors","subscribers_url":"https://api.github.com/repos/VertaAI/modeldb-client/subscribers","subscription_url":"https://api.github.com/repos/VertaAI/modeldb-client/subscription","commits_url":"https://api.github.com/repos/VertaAI/modeldb-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/VertaAI/modeldb-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/VertaAI/modeldb-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/VertaAI/modeldb-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/VertaAI/modeldb-client/contents/{+path}","compare_url":"https://api.github.com/repos/VertaAI/modeldb-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VertaAI/modeldb-client/merges","archive_url":"https://api.github.com/repos/VertaAI/modeldb-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VertaAI/modeldb-client/downloads","issues_url":"https://api.github.com/repos/VertaAI/modeldb-client/issues{/number}","pulls_url":"https://api.github.com/repos/VertaAI/modeldb-client/pulls{/number}","milestones_url":"https://api.github.com/repos/VertaAI/modeldb-client/milestones{/number}","notifications_url":"https://api.github.com/repos/VertaAI/modeldb-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VertaAI/modeldb-client/labels{/name}","releases_url":"https://api.github.com/repos/VertaAI/modeldb-client/releases{/id}","deployments_url":"https://api.github.com/repos/VertaAI/modeldb-client/deployments","created_at":"2019-01-02T19:15:43Z","updated_at":"2019-07-03T19:42:38Z","pushed_at":"2019-07-05T02:44:58Z","git_url":"git://github.com/VertaAI/modeldb-client.git","ssh_url":"git@github.com:VertaAI/modeldb-client.git","clone_url":"https://github.com/VertaAI/modeldb-client.git","svn_url":"https://github.com/VertaAI/modeldb-client","homepage":null,"size":55168,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":7,"license":null,"forks":5,"open_issues":7,"watchers":2,"default_branch":"development"}},"base":{"label":"VertaAI:ml/find-filepaths","ref":"ml/find-filepaths","sha":"59e0e3bc5bd37d97bf5f84a2df45d0a6666edadb","user":{"login":"VertaAI","id":45020510,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MDIwNTEw","avatar_url":"https://avatars1.githubusercontent.com/u/45020510?v=4","gravatar_id":"","url":"https://api.github.com/users/VertaAI","html_url":"https://github.com/VertaAI","followers_url":"https://api.github.com/users/VertaAI/followers","following_url":"https://api.github.com/users/VertaAI/following{/other_user}","gists_url":"https://api.github.com/users/VertaAI/gists{/gist_id}","starred_url":"https://api.github.com/users/VertaAI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VertaAI/subscriptions","organizations_url":"https://api.github.com/users/VertaAI/orgs","repos_url":"https://api.github.com/users/VertaAI/repos","events_url":"https://api.github.com/users/VertaAI/events{/privacy}","received_events_url":"https://api.github.com/users/VertaAI/received_events","type":"Organization","site_admin":false},"repo":{"id":163879941,"node_id":"MDEwOlJlcG9zaXRvcnkxNjM4Nzk5NDE=","name":"modeldb-client","full_name":"VertaAI/modeldb-client","private":false,"owner":{"login":"VertaAI","id":45020510,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MDIwNTEw","avatar_url":"https://avatars1.githubusercontent.com/u/45020510?v=4","gravatar_id":"","url":"https://api.github.com/users/VertaAI","html_url":"https://github.com/VertaAI","followers_url":"https://api.github.com/users/VertaAI/followers","following_url":"https://api.github.com/users/VertaAI/following{/other_user}","gists_url":"https://api.github.com/users/VertaAI/gists{/gist_id}","starred_url":"https://api.github.com/users/VertaAI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VertaAI/subscriptions","organizations_url":"https://api.github.com/users/VertaAI/orgs","repos_url":"https://api.github.com/users/VertaAI/repos","events_url":"https://api.github.com/users/VertaAI/events{/privacy}","received_events_url":"https://api.github.com/users/VertaAI/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/VertaAI/modeldb-client","description":null,"fork":false,"url":"https://api.github.com/repos/VertaAI/modeldb-client","forks_url":"https://api.github.com/repos/VertaAI/modeldb-client/forks","keys_url":"https://api.github.com/repos/VertaAI/modeldb-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VertaAI/modeldb-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VertaAI/modeldb-client/teams","hooks_url":"https://api.github.com/repos/VertaAI/modeldb-client/hooks","issue_events_url":"https://api.github.com/repos/VertaAI/modeldb-client/issues/events{/number}","events_url":"https://api.github.com/repos/VertaAI/modeldb-client/events","assignees_url":"https://api.github.com/repos/VertaAI/modeldb-client/assignees{/user}","branches_url":"https://api.github.com/repos/VertaAI/modeldb-client/branches{/branch}","tags_url":"https://api.github.com/repos/VertaAI/modeldb-client/tags","blobs_url":"https://api.github.com/repos/VertaAI/modeldb-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VertaAI/modeldb-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VertaAI/modeldb-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/VertaAI/modeldb-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VertaAI/modeldb-client/statuses/{sha}","languages_url":"https://api.github.com/repos/VertaAI/modeldb-client/languages","stargazers_url":"https://api.github.com/repos/VertaAI/modeldb-client/stargazers","contributors_url":"https://api.github.com/repos/VertaAI/modeldb-client/contributors","subscribers_url":"https://api.github.com/repos/VertaAI/modeldb-client/subscribers","subscription_url":"https://api.github.com/repos/VertaAI/modeldb-client/subscription","commits_url":"https://api.github.com/repos/VertaAI/modeldb-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/VertaAI/modeldb-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/VertaAI/modeldb-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/VertaAI/modeldb-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/VertaAI/modeldb-client/contents/{+path}","compare_url":"https://api.github.com/repos/VertaAI/modeldb-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VertaAI/modeldb-client/merges","archive_url":"https://api.github.com/repos/VertaAI/modeldb-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VertaAI/modeldb-client/downloads","issues_url":"https://api.github.com/repos/VertaAI/modeldb-client/issues{/number}","pulls_url":"https://api.github.com/repos/VertaAI/modeldb-client/pulls{/number}","milestones_url":"https://api.github.com/repos/VertaAI/modeldb-client/milestones{/number}","notifications_url":"https://api.github.com/repos/VertaAI/modeldb-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VertaAI/modeldb-client/labels{/name}","releases_url":"https://api.github.com/repos/VertaAI/modeldb-client/releases{/id}","deployments_url":"https://api.github.com/repos/VertaAI/modeldb-client/deployments","created_at":"2019-01-02T19:15:43Z","updated_at":"2019-07-03T19:42:38Z","pushed_at":"2019-07-05T02:44:58Z","git_url":"git://github.com/VertaAI/modeldb-client.git","ssh_url":"git@github.com:VertaAI/modeldb-client.git","clone_url":"https://github.com/VertaAI/modeldb-client.git","svn_url":"https://github.com/VertaAI/modeldb-client","homepage":null,"size":55168,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":7,"license":null,"forks":5,"open_issues":7,"watchers":2,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/125"},"html":{"href":"https://github.com/VertaAI/modeldb-client/pull/125"},"issue":{"href":"https://api.github.com/repos/VertaAI/modeldb-client/issues/125"},"comments":{"href":"https://api.github.com/repos/VertaAI/modeldb-client/issues/125/comments"},"review_comments":{"href":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/125/comments"},"review_comment":{"href":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VertaAI/modeldb-client/pulls/125/commits"},"statuses":{"href":"https://api.github.com/repos/VertaAI/modeldb-client/statuses/7dbf60d3ee1558b3b6a0b50f2e262170574166da"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"verta-service-account"}}