{"action":"opened","number":354,"pull_request":{"url":"https://api.github.com/repos/libgit2/git2go/pulls/354","id":91682769,"html_url":"https://github.com/libgit2/git2go/pull/354","diff_url":"https://github.com/libgit2/git2go/pull/354.diff","patch_url":"https://github.com/libgit2/git2go/pull/354.patch","issue_url":"https://api.github.com/repos/libgit2/git2go/issues/354","number":354,"state":"open","locked":false,"title":"Add Feature query support & panic if libgit2 is not thread-aware","user":{"login":"carlosmn","id":335443,"avatar_url":"https://avatars.githubusercontent.com/u/335443?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosmn","html_url":"https://github.com/carlosmn","followers_url":"https://api.github.com/users/carlosmn/followers","following_url":"https://api.github.com/users/carlosmn/following{/other_user}","gists_url":"https://api.github.com/users/carlosmn/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosmn/subscriptions","organizations_url":"https://api.github.com/users/carlosmn/orgs","repos_url":"https://api.github.com/users/carlosmn/repos","events_url":"https://api.github.com/users/carlosmn/events{/privacy}","received_events_url":"https://api.github.com/users/carlosmn/received_events","type":"User","site_admin":true},"body":"We ask libgit2 whether it's thread-safe and we panic if it's not. Go's runtime's interaction with C code is inherently multi-threaded so we're bound to crash anyway. Do it at the start with a message that describes the issue.\r\n\r\nI'm not sure how to do automated testing for this without incurring twice the cost of building libgit2, but It Works On My Machine.\r\n\r\nThis fixes #329 ","created_at":"2016-10-31T20:19:56Z","updated_at":"2016-10-31T20:19:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/libgit2/git2go/pulls/354/commits","review_comments_url":"https://api.github.com/repos/libgit2/git2go/pulls/354/comments","review_comment_url":"https://api.github.com/repos/libgit2/git2go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/libgit2/git2go/issues/354/comments","statuses_url":"https://api.github.com/repos/libgit2/git2go/statuses/a37f7f30ff94e32b20866cf2fa28496c60826278","head":{"label":"libgit2:cmn/panic-threading","ref":"cmn/panic-threading","sha":"a37f7f30ff94e32b20866cf2fa28496c60826278","user":{"login":"libgit2","id":394745,"avatar_url":"https://avatars.githubusercontent.com/u/394745?v=3","gravatar_id":"","url":"https://api.github.com/users/libgit2","html_url":"https://github.com/libgit2","followers_url":"https://api.github.com/users/libgit2/followers","following_url":"https://api.github.com/users/libgit2/following{/other_user}","gists_url":"https://api.github.com/users/libgit2/gists{/gist_id}","starred_url":"https://api.github.com/users/libgit2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libgit2/subscriptions","organizations_url":"https://api.github.com/users/libgit2/orgs","repos_url":"https://api.github.com/users/libgit2/repos","events_url":"https://api.github.com/users/libgit2/events{/privacy}","received_events_url":"https://api.github.com/users/libgit2/received_events","type":"Organization","site_admin":false},"repo":{"id":8587669,"name":"git2go","full_name":"libgit2/git2go","owner":{"login":"libgit2","id":394745,"avatar_url":"https://avatars.githubusercontent.com/u/394745?v=3","gravatar_id":"","url":"https://api.github.com/users/libgit2","html_url":"https://github.com/libgit2","followers_url":"https://api.github.com/users/libgit2/followers","following_url":"https://api.github.com/users/libgit2/following{/other_user}","gists_url":"https://api.github.com/users/libgit2/gists{/gist_id}","starred_url":"https://api.github.com/users/libgit2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libgit2/subscriptions","organizations_url":"https://api.github.com/users/libgit2/orgs","repos_url":"https://api.github.com/users/libgit2/repos","events_url":"https://api.github.com/users/libgit2/events{/privacy}","received_events_url":"https://api.github.com/users/libgit2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/libgit2/git2go","description":"Git to Go. Like McDonald's but tastier.","fork":false,"url":"https://api.github.com/repos/libgit2/git2go","forks_url":"https://api.github.com/repos/libgit2/git2go/forks","keys_url":"https://api.github.com/repos/libgit2/git2go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libgit2/git2go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libgit2/git2go/teams","hooks_url":"https://api.github.com/repos/libgit2/git2go/hooks","issue_events_url":"https://api.github.com/repos/libgit2/git2go/issues/events{/number}","events_url":"https://api.github.com/repos/libgit2/git2go/events","assignees_url":"https://api.github.com/repos/libgit2/git2go/assignees{/user}","branches_url":"https://api.github.com/repos/libgit2/git2go/branches{/branch}","tags_url":"https://api.github.com/repos/libgit2/git2go/tags","blobs_url":"https://api.github.com/repos/libgit2/git2go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libgit2/git2go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libgit2/git2go/git/refs{/sha}","trees_url":"https://api.github.com/repos/libgit2/git2go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libgit2/git2go/statuses/{sha}","languages_url":"https://api.github.com/repos/libgit2/git2go/languages","stargazers_url":"https://api.github.com/repos/libgit2/git2go/stargazers","contributors_url":"https://api.github.com/repos/libgit2/git2go/contributors","subscribers_url":"https://api.github.com/repos/libgit2/git2go/subscribers","subscription_url":"https://api.github.com/repos/libgit2/git2go/subscription","commits_url":"https://api.github.com/repos/libgit2/git2go/commits{/sha}","git_commits_url":"https://api.github.com/repos/libgit2/git2go/git/commits{/sha}","comments_url":"https://api.github.com/repos/libgit2/git2go/comments{/number}","issue_comment_url":"https://api.github.com/repos/libgit2/git2go/issues/comments{/number}","contents_url":"https://api.github.com/repos/libgit2/git2go/contents/{+path}","compare_url":"https://api.github.com/repos/libgit2/git2go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libgit2/git2go/merges","archive_url":"https://api.github.com/repos/libgit2/git2go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libgit2/git2go/downloads","issues_url":"https://api.github.com/repos/libgit2/git2go/issues{/number}","pulls_url":"https://api.github.com/repos/libgit2/git2go/pulls{/number}","milestones_url":"https://api.github.com/repos/libgit2/git2go/milestones{/number}","notifications_url":"https://api.github.com/repos/libgit2/git2go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libgit2/git2go/labels{/name}","releases_url":"https://api.github.com/repos/libgit2/git2go/releases{/id}","deployments_url":"https://api.github.com/repos/libgit2/git2go/deployments","created_at":"2013-03-05T19:50:43Z","updated_at":"2016-10-28T13:05:54Z","pushed_at":"2016-10-31T20:19:56Z","git_url":"git://github.com/libgit2/git2go.git","ssh_url":"git@github.com:libgit2/git2go.git","clone_url":"https://github.com/libgit2/git2go.git","svn_url":"https://github.com/libgit2/git2go","homepage":null,"size":1022,"stargazers_count":888,"watchers_count":888,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":151,"mirror_url":null,"open_issues_count":53,"forks":151,"open_issues":53,"watchers":888,"default_branch":"master"}},"base":{"label":"libgit2:next","ref":"next","sha":"098cd42070db3393651752ddbbf0726db5778c7c","user":{"login":"libgit2","id":394745,"avatar_url":"https://avatars.githubusercontent.com/u/394745?v=3","gravatar_id":"","url":"https://api.github.com/users/libgit2","html_url":"https://github.com/libgit2","followers_url":"https://api.github.com/users/libgit2/followers","following_url":"https://api.github.com/users/libgit2/following{/other_user}","gists_url":"https://api.github.com/users/libgit2/gists{/gist_id}","starred_url":"https://api.github.com/users/libgit2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libgit2/subscriptions","organizations_url":"https://api.github.com/users/libgit2/orgs","repos_url":"https://api.github.com/users/libgit2/repos","events_url":"https://api.github.com/users/libgit2/events{/privacy}","received_events_url":"https://api.github.com/users/libgit2/received_events","type":"Organization","site_admin":false},"repo":{"id":8587669,"name":"git2go","full_name":"libgit2/git2go","owner":{"login":"libgit2","id":394745,"avatar_url":"https://avatars.githubusercontent.com/u/394745?v=3","gravatar_id":"","url":"https://api.github.com/users/libgit2","html_url":"https://github.com/libgit2","followers_url":"https://api.github.com/users/libgit2/followers","following_url":"https://api.github.com/users/libgit2/following{/other_user}","gists_url":"https://api.github.com/users/libgit2/gists{/gist_id}","starred_url":"https://api.github.com/users/libgit2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libgit2/subscriptions","organizations_url":"https://api.github.com/users/libgit2/orgs","repos_url":"https://api.github.com/users/libgit2/repos","events_url":"https://api.github.com/users/libgit2/events{/privacy}","received_events_url":"https://api.github.com/users/libgit2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/libgit2/git2go","description":"Git to Go. Like McDonald's but tastier.","fork":false,"url":"https://api.github.com/repos/libgit2/git2go","forks_url":"https://api.github.com/repos/libgit2/git2go/forks","keys_url":"https://api.github.com/repos/libgit2/git2go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libgit2/git2go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libgit2/git2go/teams","hooks_url":"https://api.github.com/repos/libgit2/git2go/hooks","issue_events_url":"https://api.github.com/repos/libgit2/git2go/issues/events{/number}","events_url":"https://api.github.com/repos/libgit2/git2go/events","assignees_url":"https://api.github.com/repos/libgit2/git2go/assignees{/user}","branches_url":"https://api.github.com/repos/libgit2/git2go/branches{/branch}","tags_url":"https://api.github.com/repos/libgit2/git2go/tags","blobs_url":"https://api.github.com/repos/libgit2/git2go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libgit2/git2go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libgit2/git2go/git/refs{/sha}","trees_url":"https://api.github.com/repos/libgit2/git2go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libgit2/git2go/statuses/{sha}","languages_url":"https://api.github.com/repos/libgit2/git2go/languages","stargazers_url":"https://api.github.com/repos/libgit2/git2go/stargazers","contributors_url":"https://api.github.com/repos/libgit2/git2go/contributors","subscribers_url":"https://api.github.com/repos/libgit2/git2go/subscribers","subscription_url":"https://api.github.com/repos/libgit2/git2go/subscription","commits_url":"https://api.github.com/repos/libgit2/git2go/commits{/sha}","git_commits_url":"https://api.github.com/repos/libgit2/git2go/git/commits{/sha}","comments_url":"https://api.github.com/repos/libgit2/git2go/comments{/number}","issue_comment_url":"https://api.github.com/repos/libgit2/git2go/issues/comments{/number}","contents_url":"https://api.github.com/repos/libgit2/git2go/contents/{+path}","compare_url":"https://api.github.com/repos/libgit2/git2go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libgit2/git2go/merges","archive_url":"https://api.github.com/repos/libgit2/git2go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libgit2/git2go/downloads","issues_url":"https://api.github.com/repos/libgit2/git2go/issues{/number}","pulls_url":"https://api.github.com/repos/libgit2/git2go/pulls{/number}","milestones_url":"https://api.github.com/repos/libgit2/git2go/milestones{/number}","notifications_url":"https://api.github.com/repos/libgit2/git2go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libgit2/git2go/labels{/name}","releases_url":"https://api.github.com/repos/libgit2/git2go/releases{/id}","deployments_url":"https://api.github.com/repos/libgit2/git2go/deployments","created_at":"2013-03-05T19:50:43Z","updated_at":"2016-10-28T13:05:54Z","pushed_at":"2016-10-31T20:19:56Z","git_url":"git://github.com/libgit2/git2go.git","ssh_url":"git@github.com:libgit2/git2go.git","clone_url":"https://github.com/libgit2/git2go.git","svn_url":"https://github.com/libgit2/git2go","homepage":null,"size":1022,"stargazers_count":888,"watchers_count":888,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":151,"mirror_url":null,"open_issues_count":53,"forks":151,"open_issues":53,"watchers":888,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/libgit2/git2go/pulls/354"},"html":{"href":"https://github.com/libgit2/git2go/pull/354"},"issue":{"href":"https://api.github.com/repos/libgit2/git2go/issues/354"},"comments":{"href":"https://api.github.com/repos/libgit2/git2go/issues/354/comments"},"review_comments":{"href":"https://api.github.com/repos/libgit2/git2go/pulls/354/comments"},"review_comment":{"href":"https://api.github.com/repos/libgit2/git2go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/libgit2/git2go/pulls/354/commits"},"statuses":{"href":"https://api.github.com/repos/libgit2/git2go/statuses/a37f7f30ff94e32b20866cf2fa28496c60826278"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":39,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"carlosmn"}}