{"action":"created","comment":{"url":"https://api.github.com/repos/SUSE/Portus/pulls/comments/51770284","id":51770284,"diff_hunk":"@@ -0,0 +1,7 @@\n+module Git\n+    `which git`\n+    if $?.success?","path":"config/initializers/git_info.rb","position":3,"original_position":3,"commit_id":"c3091bf51e79b083f55114b69f6510e772310696","original_commit_id":"c3091bf51e79b083f55114b69f6510e772310696","user":{"login":"lonewulf","id":537703,"avatar_url":"https://avatars.githubusercontent.com/u/537703?v=3","gravatar_id":"","url":"https://api.github.com/users/lonewulf","html_url":"https://github.com/lonewulf","followers_url":"https://api.github.com/users/lonewulf/followers","following_url":"https://api.github.com/users/lonewulf/following{/other_user}","gists_url":"https://api.github.com/users/lonewulf/gists{/gist_id}","starred_url":"https://api.github.com/users/lonewulf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonewulf/subscriptions","organizations_url":"https://api.github.com/users/lonewulf/orgs","repos_url":"https://api.github.com/users/lonewulf/repos","events_url":"https://api.github.com/users/lonewulf/events{/privacy}","received_events_url":"https://api.github.com/users/lonewulf/received_events","type":"User","site_admin":false},"body":"I need to figure out why find_executable crashes on my alpine based container first, but it was my intention in the first place.","created_at":"2016-02-03T19:07:52Z","updated_at":"2016-02-03T19:07:52Z","html_url":"https://github.com/SUSE/Portus/pull/707#discussion_r51770284","pull_request_url":"https://api.github.com/repos/SUSE/Portus/pulls/707","_links":{"self":{"href":"https://api.github.com/repos/SUSE/Portus/pulls/comments/51770284"},"html":{"href":"https://github.com/SUSE/Portus/pull/707#discussion_r51770284"},"pull_request":{"href":"https://api.github.com/repos/SUSE/Portus/pulls/707"}}},"pull_request":{"url":"https://api.github.com/repos/SUSE/Portus/pulls/707","id":58137501,"html_url":"https://github.com/SUSE/Portus/pull/707","diff_url":"https://github.com/SUSE/Portus/pull/707.diff","patch_url":"https://github.com/SUSE/Portus/pull/707.patch","issue_url":"https://api.github.com/repos/SUSE/Portus/issues/707","number":707,"state":"open","locked":false,"title":"Display the git branch/commit when possible","user":{"login":"lonewulf","id":537703,"avatar_url":"https://avatars.githubusercontent.com/u/537703?v=3","gravatar_id":"","url":"https://api.github.com/users/lonewulf","html_url":"https://github.com/lonewulf","followers_url":"https://api.github.com/users/lonewulf/followers","following_url":"https://api.github.com/users/lonewulf/following{/other_user}","gists_url":"https://api.github.com/users/lonewulf/gists{/gist_id}","starred_url":"https://api.github.com/users/lonewulf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonewulf/subscriptions","organizations_url":"https://api.github.com/users/lonewulf/orgs","repos_url":"https://api.github.com/users/lonewulf/repos","events_url":"https://api.github.com/users/lonewulf/events{/privacy}","received_events_url":"https://api.github.com/users/lonewulf/received_events","type":"User","site_admin":false},"body":"Hi, I've seen this requested as a feature, I put together a small patch that should do the trick.\r\n\r\nIt displays the git branch/commit if the git command and the .git directory are present on the system.\r\n\r\nSigned-off-by: Yann Lopez <l@lonewulf.net>","created_at":"2016-02-03T13:35:39Z","updated_at":"2016-02-03T19:07:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"844fc05af2caa7dbd1d1500f71f567f4a16d6598","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SUSE/Portus/pulls/707/commits","review_comments_url":"https://api.github.com/repos/SUSE/Portus/pulls/707/comments","review_comment_url":"https://api.github.com/repos/SUSE/Portus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SUSE/Portus/issues/707/comments","statuses_url":"https://api.github.com/repos/SUSE/Portus/statuses/c3091bf51e79b083f55114b69f6510e772310696","head":{"label":"lonewulf:669_git_webgui","ref":"669_git_webgui","sha":"c3091bf51e79b083f55114b69f6510e772310696","user":{"login":"lonewulf","id":537703,"avatar_url":"https://avatars.githubusercontent.com/u/537703?v=3","gravatar_id":"","url":"https://api.github.com/users/lonewulf","html_url":"https://github.com/lonewulf","followers_url":"https://api.github.com/users/lonewulf/followers","following_url":"https://api.github.com/users/lonewulf/following{/other_user}","gists_url":"https://api.github.com/users/lonewulf/gists{/gist_id}","starred_url":"https://api.github.com/users/lonewulf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonewulf/subscriptions","organizations_url":"https://api.github.com/users/lonewulf/orgs","repos_url":"https://api.github.com/users/lonewulf/repos","events_url":"https://api.github.com/users/lonewulf/events{/privacy}","received_events_url":"https://api.github.com/users/lonewulf/received_events","type":"User","site_admin":false},"repo":{"id":50992922,"name":"Portus","full_name":"lonewulf/Portus","owner":{"login":"lonewulf","id":537703,"avatar_url":"https://avatars.githubusercontent.com/u/537703?v=3","gravatar_id":"","url":"https://api.github.com/users/lonewulf","html_url":"https://github.com/lonewulf","followers_url":"https://api.github.com/users/lonewulf/followers","following_url":"https://api.github.com/users/lonewulf/following{/other_user}","gists_url":"https://api.github.com/users/lonewulf/gists{/gist_id}","starred_url":"https://api.github.com/users/lonewulf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonewulf/subscriptions","organizations_url":"https://api.github.com/users/lonewulf/orgs","repos_url":"https://api.github.com/users/lonewulf/repos","events_url":"https://api.github.com/users/lonewulf/events{/privacy}","received_events_url":"https://api.github.com/users/lonewulf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lonewulf/Portus","description":"Authorization service and frontend for Docker registry (v2)","fork":true,"url":"https://api.github.com/repos/lonewulf/Portus","forks_url":"https://api.github.com/repos/lonewulf/Portus/forks","keys_url":"https://api.github.com/repos/lonewulf/Portus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lonewulf/Portus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lonewulf/Portus/teams","hooks_url":"https://api.github.com/repos/lonewulf/Portus/hooks","issue_events_url":"https://api.github.com/repos/lonewulf/Portus/issues/events{/number}","events_url":"https://api.github.com/repos/lonewulf/Portus/events","assignees_url":"https://api.github.com/repos/lonewulf/Portus/assignees{/user}","branches_url":"https://api.github.com/repos/lonewulf/Portus/branches{/branch}","tags_url":"https://api.github.com/repos/lonewulf/Portus/tags","blobs_url":"https://api.github.com/repos/lonewulf/Portus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lonewulf/Portus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lonewulf/Portus/git/refs{/sha}","trees_url":"https://api.github.com/repos/lonewulf/Portus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lonewulf/Portus/statuses/{sha}","languages_url":"https://api.github.com/repos/lonewulf/Portus/languages","stargazers_url":"https://api.github.com/repos/lonewulf/Portus/stargazers","contributors_url":"https://api.github.com/repos/lonewulf/Portus/contributors","subscribers_url":"https://api.github.com/repos/lonewulf/Portus/subscribers","subscription_url":"https://api.github.com/repos/lonewulf/Portus/subscription","commits_url":"https://api.github.com/repos/lonewulf/Portus/commits{/sha}","git_commits_url":"https://api.github.com/repos/lonewulf/Portus/git/commits{/sha}","comments_url":"https://api.github.com/repos/lonewulf/Portus/comments{/number}","issue_comment_url":"https://api.github.com/repos/lonewulf/Portus/issues/comments{/number}","contents_url":"https://api.github.com/repos/lonewulf/Portus/contents/{+path}","compare_url":"https://api.github.com/repos/lonewulf/Portus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lonewulf/Portus/merges","archive_url":"https://api.github.com/repos/lonewulf/Portus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lonewulf/Portus/downloads","issues_url":"https://api.github.com/repos/lonewulf/Portus/issues{/number}","pulls_url":"https://api.github.com/repos/lonewulf/Portus/pulls{/number}","milestones_url":"https://api.github.com/repos/lonewulf/Portus/milestones{/number}","notifications_url":"https://api.github.com/repos/lonewulf/Portus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lonewulf/Portus/labels{/name}","releases_url":"https://api.github.com/repos/lonewulf/Portus/releases{/id}","deployments_url":"https://api.github.com/repos/lonewulf/Portus/deployments","created_at":"2016-02-03T10:39:19Z","updated_at":"2016-02-03T10:39:20Z","pushed_at":"2016-02-03T13:32:24Z","git_url":"git://github.com/lonewulf/Portus.git","ssh_url":"git@github.com:lonewulf/Portus.git","clone_url":"https://github.com/lonewulf/Portus.git","svn_url":"https://github.com/lonewulf/Portus","homepage":"http://port.us.org/","size":18453,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"SUSE:master","ref":"master","sha":"009de7bf5090381f959897c5e63118b66fabc708","user":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":33866783,"name":"Portus","full_name":"SUSE/Portus","owner":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SUSE/Portus","description":"Authorization service and frontend for Docker registry (v2)","fork":false,"url":"https://api.github.com/repos/SUSE/Portus","forks_url":"https://api.github.com/repos/SUSE/Portus/forks","keys_url":"https://api.github.com/repos/SUSE/Portus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SUSE/Portus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SUSE/Portus/teams","hooks_url":"https://api.github.com/repos/SUSE/Portus/hooks","issue_events_url":"https://api.github.com/repos/SUSE/Portus/issues/events{/number}","events_url":"https://api.github.com/repos/SUSE/Portus/events","assignees_url":"https://api.github.com/repos/SUSE/Portus/assignees{/user}","branches_url":"https://api.github.com/repos/SUSE/Portus/branches{/branch}","tags_url":"https://api.github.com/repos/SUSE/Portus/tags","blobs_url":"https://api.github.com/repos/SUSE/Portus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SUSE/Portus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SUSE/Portus/git/refs{/sha}","trees_url":"https://api.github.com/repos/SUSE/Portus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SUSE/Portus/statuses/{sha}","languages_url":"https://api.github.com/repos/SUSE/Portus/languages","stargazers_url":"https://api.github.com/repos/SUSE/Portus/stargazers","contributors_url":"https://api.github.com/repos/SUSE/Portus/contributors","subscribers_url":"https://api.github.com/repos/SUSE/Portus/subscribers","subscription_url":"https://api.github.com/repos/SUSE/Portus/subscription","commits_url":"https://api.github.com/repos/SUSE/Portus/commits{/sha}","git_commits_url":"https://api.github.com/repos/SUSE/Portus/git/commits{/sha}","comments_url":"https://api.github.com/repos/SUSE/Portus/comments{/number}","issue_comment_url":"https://api.github.com/repos/SUSE/Portus/issues/comments{/number}","contents_url":"https://api.github.com/repos/SUSE/Portus/contents/{+path}","compare_url":"https://api.github.com/repos/SUSE/Portus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SUSE/Portus/merges","archive_url":"https://api.github.com/repos/SUSE/Portus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SUSE/Portus/downloads","issues_url":"https://api.github.com/repos/SUSE/Portus/issues{/number}","pulls_url":"https://api.github.com/repos/SUSE/Portus/pulls{/number}","milestones_url":"https://api.github.com/repos/SUSE/Portus/milestones{/number}","notifications_url":"https://api.github.com/repos/SUSE/Portus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SUSE/Portus/labels{/name}","releases_url":"https://api.github.com/repos/SUSE/Portus/releases{/id}","deployments_url":"https://api.github.com/repos/SUSE/Portus/deployments","created_at":"2015-04-13T12:18:20Z","updated_at":"2016-02-02T15:32:06Z","pushed_at":"2016-02-03T13:35:39Z","git_url":"git://github.com/SUSE/Portus.git","ssh_url":"git@github.com:SUSE/Portus.git","clone_url":"https://github.com/SUSE/Portus.git","svn_url":"https://github.com/SUSE/Portus","homepage":"http://port.us.org/","size":18605,"stargazers_count":609,"watchers_count":609,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":83,"mirror_url":null,"open_issues_count":70,"forks":83,"open_issues":70,"watchers":609,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SUSE/Portus/pulls/707"},"html":{"href":"https://github.com/SUSE/Portus/pull/707"},"issue":{"href":"https://api.github.com/repos/SUSE/Portus/issues/707"},"comments":{"href":"https://api.github.com/repos/SUSE/Portus/issues/707/comments"},"review_comments":{"href":"https://api.github.com/repos/SUSE/Portus/pulls/707/comments"},"review_comment":{"href":"https://api.github.com/repos/SUSE/Portus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SUSE/Portus/pulls/707/commits"},"statuses":{"href":"https://api.github.com/repos/SUSE/Portus/statuses/c3091bf51e79b083f55114b69f6510e772310696"}}}}