{"action":"closed","number":772,"pull_request":{"url":"https://api.github.com/repos/libgit2/pygit2/pulls/772","id":172650650,"html_url":"https://github.com/libgit2/pygit2/pull/772","diff_url":"https://github.com/libgit2/pygit2/pull/772.diff","patch_url":"https://github.com/libgit2/pygit2/pull/772.patch","issue_url":"https://api.github.com/repos/libgit2/pygit2/issues/772","number":772,"state":"closed","locked":false,"title":"Add Repository.parse_diff to wrap git_diff_from_buffer","user":{"login":"brandonio21","id":2231972,"avatar_url":"https://avatars3.githubusercontent.com/u/2231972?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonio21","html_url":"https://github.com/brandonio21","followers_url":"https://api.github.com/users/brandonio21/followers","following_url":"https://api.github.com/users/brandonio21/following{/other_user}","gists_url":"https://api.github.com/users/brandonio21/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonio21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonio21/subscriptions","organizations_url":"https://api.github.com/users/brandonio21/orgs","repos_url":"https://api.github.com/users/brandonio21/repos","events_url":"https://api.github.com/users/brandonio21/events{/privacy}","received_events_url":"https://api.github.com/users/brandonio21/received_events","type":"User","site_admin":false},"body":"libgit2 has the ability to parse unified diffs from buffers, so why shouldn't pygit2?\r\n\r\nThis diff adds `Repository.parse_diff` to allow creating `Diff` objects from unified diffs on a certain repository.\r\n\r\nUnit tests included!","created_at":"2018-03-03T04:54:43Z","updated_at":"2018-03-03T09:53:09Z","closed_at":"2018-03-03T09:53:09Z","merged_at":"2018-03-03T09:53:09Z","merge_commit_sha":"40babf6e57171e54bfd8033e62be8c0f66a15cdc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/libgit2/pygit2/pulls/772/commits","review_comments_url":"https://api.github.com/repos/libgit2/pygit2/pulls/772/comments","review_comment_url":"https://api.github.com/repos/libgit2/pygit2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/libgit2/pygit2/issues/772/comments","statuses_url":"https://api.github.com/repos/libgit2/pygit2/statuses/40babf6e57171e54bfd8033e62be8c0f66a15cdc","head":{"label":"brandonio21:parse-diff","ref":"parse-diff","sha":"40babf6e57171e54bfd8033e62be8c0f66a15cdc","user":{"login":"brandonio21","id":2231972,"avatar_url":"https://avatars3.githubusercontent.com/u/2231972?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonio21","html_url":"https://github.com/brandonio21","followers_url":"https://api.github.com/users/brandonio21/followers","following_url":"https://api.github.com/users/brandonio21/following{/other_user}","gists_url":"https://api.github.com/users/brandonio21/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonio21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonio21/subscriptions","organizations_url":"https://api.github.com/users/brandonio21/orgs","repos_url":"https://api.github.com/users/brandonio21/repos","events_url":"https://api.github.com/users/brandonio21/events{/privacy}","received_events_url":"https://api.github.com/users/brandonio21/received_events","type":"User","site_admin":false},"repo":{"id":112247573,"name":"pygit2","full_name":"brandonio21/pygit2","owner":{"login":"brandonio21","id":2231972,"avatar_url":"https://avatars3.githubusercontent.com/u/2231972?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonio21","html_url":"https://github.com/brandonio21","followers_url":"https://api.github.com/users/brandonio21/followers","following_url":"https://api.github.com/users/brandonio21/following{/other_user}","gists_url":"https://api.github.com/users/brandonio21/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonio21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonio21/subscriptions","organizations_url":"https://api.github.com/users/brandonio21/orgs","repos_url":"https://api.github.com/users/brandonio21/repos","events_url":"https://api.github.com/users/brandonio21/events{/privacy}","received_events_url":"https://api.github.com/users/brandonio21/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brandonio21/pygit2","description":"Python bindings for libgit2","fork":true,"url":"https://api.github.com/repos/brandonio21/pygit2","forks_url":"https://api.github.com/repos/brandonio21/pygit2/forks","keys_url":"https://api.github.com/repos/brandonio21/pygit2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brandonio21/pygit2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brandonio21/pygit2/teams","hooks_url":"https://api.github.com/repos/brandonio21/pygit2/hooks","issue_events_url":"https://api.github.com/repos/brandonio21/pygit2/issues/events{/number}","events_url":"https://api.github.com/repos/brandonio21/pygit2/events","assignees_url":"https://api.github.com/repos/brandonio21/pygit2/assignees{/user}","branches_url":"https://api.github.com/repos/brandonio21/pygit2/branches{/branch}","tags_url":"https://api.github.com/repos/brandonio21/pygit2/tags","blobs_url":"https://api.github.com/repos/brandonio21/pygit2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brandonio21/pygit2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brandonio21/pygit2/git/refs{/sha}","trees_url":"https://api.github.com/repos/brandonio21/pygit2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brandonio21/pygit2/statuses/{sha}","languages_url":"https://api.github.com/repos/brandonio21/pygit2/languages","stargazers_url":"https://api.github.com/repos/brandonio21/pygit2/stargazers","contributors_url":"https://api.github.com/repos/brandonio21/pygit2/contributors","subscribers_url":"https://api.github.com/repos/brandonio21/pygit2/subscribers","subscription_url":"https://api.github.com/repos/brandonio21/pygit2/subscription","commits_url":"https://api.github.com/repos/brandonio21/pygit2/commits{/sha}","git_commits_url":"https://api.github.com/repos/brandonio21/pygit2/git/commits{/sha}","comments_url":"https://api.github.com/repos/brandonio21/pygit2/comments{/number}","issue_comment_url":"https://api.github.com/repos/brandonio21/pygit2/issues/comments{/number}","contents_url":"https://api.github.com/repos/brandonio21/pygit2/contents/{+path}","compare_url":"https://api.github.com/repos/brandonio21/pygit2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brandonio21/pygit2/merges","archive_url":"https://api.github.com/repos/brandonio21/pygit2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brandonio21/pygit2/downloads","issues_url":"https://api.github.com/repos/brandonio21/pygit2/issues{/number}","pulls_url":"https://api.github.com/repos/brandonio21/pygit2/pulls{/number}","milestones_url":"https://api.github.com/repos/brandonio21/pygit2/milestones{/number}","notifications_url":"https://api.github.com/repos/brandonio21/pygit2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brandonio21/pygit2/labels{/name}","releases_url":"https://api.github.com/repos/brandonio21/pygit2/releases{/id}","deployments_url":"https://api.github.com/repos/brandonio21/pygit2/deployments","created_at":"2017-11-27T20:54:39Z","updated_at":"2017-11-29T17:21:27Z","pushed_at":"2018-03-03T04:53:19Z","git_url":"git://github.com/brandonio21/pygit2.git","ssh_url":"git@github.com:brandonio21/pygit2.git","clone_url":"https://github.com/brandonio21/pygit2.git","svn_url":"https://github.com/brandonio21/pygit2","homepage":"","size":2999,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"libgit2:master","ref":"master","sha":"9e42130a7a321ba5f31a0aad9d41e83cf316f7f5","user":{"login":"libgit2","id":394745,"avatar_url":"https://avatars1.githubusercontent.com/u/394745?v=4","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":1062237,"name":"pygit2","full_name":"libgit2/pygit2","owner":{"login":"libgit2","id":394745,"avatar_url":"https://avatars1.githubusercontent.com/u/394745?v=4","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/pygit2","description":"Python bindings for libgit2","fork":false,"url":"https://api.github.com/repos/libgit2/pygit2","forks_url":"https://api.github.com/repos/libgit2/pygit2/forks","keys_url":"https://api.github.com/repos/libgit2/pygit2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libgit2/pygit2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libgit2/pygit2/teams","hooks_url":"https://api.github.com/repos/libgit2/pygit2/hooks","issue_events_url":"https://api.github.com/repos/libgit2/pygit2/issues/events{/number}","events_url":"https://api.github.com/repos/libgit2/pygit2/events","assignees_url":"https://api.github.com/repos/libgit2/pygit2/assignees{/user}","branches_url":"https://api.github.com/repos/libgit2/pygit2/branches{/branch}","tags_url":"https://api.github.com/repos/libgit2/pygit2/tags","blobs_url":"https://api.github.com/repos/libgit2/pygit2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libgit2/pygit2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libgit2/pygit2/git/refs{/sha}","trees_url":"https://api.github.com/repos/libgit2/pygit2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libgit2/pygit2/statuses/{sha}","languages_url":"https://api.github.com/repos/libgit2/pygit2/languages","stargazers_url":"https://api.github.com/repos/libgit2/pygit2/stargazers","contributors_url":"https://api.github.com/repos/libgit2/pygit2/contributors","subscribers_url":"https://api.github.com/repos/libgit2/pygit2/subscribers","subscription_url":"https://api.github.com/repos/libgit2/pygit2/subscription","commits_url":"https://api.github.com/repos/libgit2/pygit2/commits{/sha}","git_commits_url":"https://api.github.com/repos/libgit2/pygit2/git/commits{/sha}","comments_url":"https://api.github.com/repos/libgit2/pygit2/comments{/number}","issue_comment_url":"https://api.github.com/repos/libgit2/pygit2/issues/comments{/number}","contents_url":"https://api.github.com/repos/libgit2/pygit2/contents/{+path}","compare_url":"https://api.github.com/repos/libgit2/pygit2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libgit2/pygit2/merges","archive_url":"https://api.github.com/repos/libgit2/pygit2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libgit2/pygit2/downloads","issues_url":"https://api.github.com/repos/libgit2/pygit2/issues{/number}","pulls_url":"https://api.github.com/repos/libgit2/pygit2/pulls{/number}","milestones_url":"https://api.github.com/repos/libgit2/pygit2/milestones{/number}","notifications_url":"https://api.github.com/repos/libgit2/pygit2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libgit2/pygit2/labels{/name}","releases_url":"https://api.github.com/repos/libgit2/pygit2/releases{/id}","deployments_url":"https://api.github.com/repos/libgit2/pygit2/deployments","created_at":"2010-11-08T16:27:48Z","updated_at":"2018-03-03T08:41:17Z","pushed_at":"2018-03-03T09:53:07Z","git_url":"git://github.com/libgit2/pygit2.git","ssh_url":"git@github.com:libgit2/pygit2.git","clone_url":"https://github.com/libgit2/pygit2.git","svn_url":"https://github.com/libgit2/pygit2","homepage":"","size":2998,"stargazers_count":1026,"watchers_count":1026,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":260,"mirror_url":null,"archived":false,"open_issues_count":100,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":260,"open_issues":100,"watchers":1026,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/libgit2/pygit2/pulls/772"},"html":{"href":"https://github.com/libgit2/pygit2/pull/772"},"issue":{"href":"https://api.github.com/repos/libgit2/pygit2/issues/772"},"comments":{"href":"https://api.github.com/repos/libgit2/pygit2/issues/772/comments"},"review_comments":{"href":"https://api.github.com/repos/libgit2/pygit2/pulls/772/comments"},"review_comment":{"href":"https://api.github.com/repos/libgit2/pygit2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/libgit2/pygit2/pulls/772/commits"},"statuses":{"href":"https://api.github.com/repos/libgit2/pygit2/statuses/40babf6e57171e54bfd8033e62be8c0f66a15cdc"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jdavid","id":596769,"avatar_url":"https://avatars1.githubusercontent.com/u/596769?v=4","gravatar_id":"","url":"https://api.github.com/users/jdavid","html_url":"https://github.com/jdavid","followers_url":"https://api.github.com/users/jdavid/followers","following_url":"https://api.github.com/users/jdavid/following{/other_user}","gists_url":"https://api.github.com/users/jdavid/gists{/gist_id}","starred_url":"https://api.github.com/users/jdavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdavid/subscriptions","organizations_url":"https://api.github.com/users/jdavid/orgs","repos_url":"https://api.github.com/users/jdavid/repos","events_url":"https://api.github.com/users/jdavid/events{/privacy}","received_events_url":"https://api.github.com/users/jdavid/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":67,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"jdavid"}}