{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/pulls/2","id":97671653,"html_url":"https://github.com/adafruit/Adafruit_MicroPython_BusDevice/pull/2","diff_url":"https://github.com/adafruit/Adafruit_MicroPython_BusDevice/pull/2.diff","patch_url":"https://github.com/adafruit/Adafruit_MicroPython_BusDevice/pull/2.patch","issue_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/issues/2","number":2,"state":"closed","locked":false,"title":"Optimization: remove read/write from SPI device and return SPI bus on context manager enter","user":{"login":"tdicola","id":1332183,"avatar_url":"https://avatars.githubusercontent.com/u/1332183?v=3","gravatar_id":"","url":"https://api.github.com/users/tdicola","html_url":"https://github.com/tdicola","followers_url":"https://api.github.com/users/tdicola/followers","following_url":"https://api.github.com/users/tdicola/following{/other_user}","gists_url":"https://api.github.com/users/tdicola/gists{/gist_id}","starred_url":"https://api.github.com/users/tdicola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdicola/subscriptions","organizations_url":"https://api.github.com/users/tdicola/orgs","repos_url":"https://api.github.com/users/tdicola/repos","events_url":"https://api.github.com/users/tdicola/events{/privacy}","received_events_url":"https://api.github.com/users/tdicola/received_events","type":"User","site_admin":false},"body":"Since these functions just pass through to the SPI bus, as a small optimization directly return the SPI bus when it's locked.  This removes the need to wrap the functions and the calling overhead.","created_at":"2016-12-13T01:44:24Z","updated_at":"2016-12-13T02:40:00Z","closed_at":"2016-12-13T02:40:00Z","merged_at":"2016-12-13T02:40:00Z","merge_commit_sha":"0a0401a2b3043cf516f54e97551b0011be55c6d3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/pulls/2/commits","review_comments_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/pulls/2/comments","review_comment_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/issues/2/comments","statuses_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/statuses/a7d11f8898e3232140e0c43ba77856de9be7a64d","head":{"label":"adafruit:optimize_spi","ref":"optimize_spi","sha":"a7d11f8898e3232140e0c43ba77856de9be7a64d","user":{"login":"adafruit","id":181069,"avatar_url":"https://avatars.githubusercontent.com/u/181069?v=3","gravatar_id":"","url":"https://api.github.com/users/adafruit","html_url":"https://github.com/adafruit","followers_url":"https://api.github.com/users/adafruit/followers","following_url":"https://api.github.com/users/adafruit/following{/other_user}","gists_url":"https://api.github.com/users/adafruit/gists{/gist_id}","starred_url":"https://api.github.com/users/adafruit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adafruit/subscriptions","organizations_url":"https://api.github.com/users/adafruit/orgs","repos_url":"https://api.github.com/users/adafruit/repos","events_url":"https://api.github.com/users/adafruit/events{/privacy}","received_events_url":"https://api.github.com/users/adafruit/received_events","type":"Organization","site_admin":false},"repo":{"id":75349305,"name":"Adafruit_MicroPython_BusDevice","full_name":"adafruit/Adafruit_MicroPython_BusDevice","owner":{"login":"adafruit","id":181069,"avatar_url":"https://avatars.githubusercontent.com/u/181069?v=3","gravatar_id":"","url":"https://api.github.com/users/adafruit","html_url":"https://github.com/adafruit","followers_url":"https://api.github.com/users/adafruit/followers","following_url":"https://api.github.com/users/adafruit/following{/other_user}","gists_url":"https://api.github.com/users/adafruit/gists{/gist_id}","starred_url":"https://api.github.com/users/adafruit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adafruit/subscriptions","organizations_url":"https://api.github.com/users/adafruit/orgs","repos_url":"https://api.github.com/users/adafruit/repos","events_url":"https://api.github.com/users/adafruit/events{/privacy}","received_events_url":"https://api.github.com/users/adafruit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/adafruit/Adafruit_MicroPython_BusDevice","description":"Two helper classes that handle transaction related state for I2C and SPI including locks.","fork":false,"url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice","forks_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/forks","keys_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/teams","hooks_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/hooks","issue_events_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/issues/events{/number}","events_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/events","assignees_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/assignees{/user}","branches_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/branches{/branch}","tags_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/tags","blobs_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/git/refs{/sha}","trees_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/statuses/{sha}","languages_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/languages","stargazers_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/stargazers","contributors_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/contributors","subscribers_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/subscribers","subscription_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/subscription","commits_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/commits{/sha}","git_commits_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/git/commits{/sha}","comments_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/comments{/number}","issue_comment_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/issues/comments{/number}","contents_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/contents/{+path}","compare_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/merges","archive_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/downloads","issues_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/issues{/number}","pulls_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/pulls{/number}","milestones_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/milestones{/number}","notifications_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/labels{/name}","releases_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/releases{/id}","deployments_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/deployments","created_at":"2016-12-02T01:41:12Z","updated_at":"2016-12-03T21:42:11Z","pushed_at":"2016-12-13T02:40:00Z","git_url":"git://github.com/adafruit/Adafruit_MicroPython_BusDevice.git","ssh_url":"git@github.com:adafruit/Adafruit_MicroPython_BusDevice.git","clone_url":"https://github.com/adafruit/Adafruit_MicroPython_BusDevice.git","svn_url":"https://github.com/adafruit/Adafruit_MicroPython_BusDevice","homepage":null,"size":5,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"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":1,"default_branch":"master"}},"base":{"label":"adafruit:master","ref":"master","sha":"8ce1de7439351845c62f3a83b5c1076f82e268e9","user":{"login":"adafruit","id":181069,"avatar_url":"https://avatars.githubusercontent.com/u/181069?v=3","gravatar_id":"","url":"https://api.github.com/users/adafruit","html_url":"https://github.com/adafruit","followers_url":"https://api.github.com/users/adafruit/followers","following_url":"https://api.github.com/users/adafruit/following{/other_user}","gists_url":"https://api.github.com/users/adafruit/gists{/gist_id}","starred_url":"https://api.github.com/users/adafruit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adafruit/subscriptions","organizations_url":"https://api.github.com/users/adafruit/orgs","repos_url":"https://api.github.com/users/adafruit/repos","events_url":"https://api.github.com/users/adafruit/events{/privacy}","received_events_url":"https://api.github.com/users/adafruit/received_events","type":"Organization","site_admin":false},"repo":{"id":75349305,"name":"Adafruit_MicroPython_BusDevice","full_name":"adafruit/Adafruit_MicroPython_BusDevice","owner":{"login":"adafruit","id":181069,"avatar_url":"https://avatars.githubusercontent.com/u/181069?v=3","gravatar_id":"","url":"https://api.github.com/users/adafruit","html_url":"https://github.com/adafruit","followers_url":"https://api.github.com/users/adafruit/followers","following_url":"https://api.github.com/users/adafruit/following{/other_user}","gists_url":"https://api.github.com/users/adafruit/gists{/gist_id}","starred_url":"https://api.github.com/users/adafruit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adafruit/subscriptions","organizations_url":"https://api.github.com/users/adafruit/orgs","repos_url":"https://api.github.com/users/adafruit/repos","events_url":"https://api.github.com/users/adafruit/events{/privacy}","received_events_url":"https://api.github.com/users/adafruit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/adafruit/Adafruit_MicroPython_BusDevice","description":"Two helper classes that handle transaction related state for I2C and SPI including locks.","fork":false,"url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice","forks_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/forks","keys_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/teams","hooks_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/hooks","issue_events_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/issues/events{/number}","events_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/events","assignees_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/assignees{/user}","branches_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/branches{/branch}","tags_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/tags","blobs_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/git/refs{/sha}","trees_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/statuses/{sha}","languages_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/languages","stargazers_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/stargazers","contributors_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/contributors","subscribers_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/subscribers","subscription_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/subscription","commits_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/commits{/sha}","git_commits_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/git/commits{/sha}","comments_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/comments{/number}","issue_comment_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/issues/comments{/number}","contents_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/contents/{+path}","compare_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/merges","archive_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/downloads","issues_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/issues{/number}","pulls_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/pulls{/number}","milestones_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/milestones{/number}","notifications_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/labels{/name}","releases_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/releases{/id}","deployments_url":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/deployments","created_at":"2016-12-02T01:41:12Z","updated_at":"2016-12-03T21:42:11Z","pushed_at":"2016-12-13T02:40:00Z","git_url":"git://github.com/adafruit/Adafruit_MicroPython_BusDevice.git","ssh_url":"git@github.com:adafruit/Adafruit_MicroPython_BusDevice.git","clone_url":"https://github.com/adafruit/Adafruit_MicroPython_BusDevice.git","svn_url":"https://github.com/adafruit/Adafruit_MicroPython_BusDevice","homepage":null,"size":5,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/pulls/2"},"html":{"href":"https://github.com/adafruit/Adafruit_MicroPython_BusDevice/pull/2"},"issue":{"href":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/issues/2"},"comments":{"href":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/adafruit/Adafruit_MicroPython_BusDevice/statuses/a7d11f8898e3232140e0c43ba77856de9be7a64d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tannewt","id":52649,"avatar_url":"https://avatars.githubusercontent.com/u/52649?v=3","gravatar_id":"","url":"https://api.github.com/users/tannewt","html_url":"https://github.com/tannewt","followers_url":"https://api.github.com/users/tannewt/followers","following_url":"https://api.github.com/users/tannewt/following{/other_user}","gists_url":"https://api.github.com/users/tannewt/gists{/gist_id}","starred_url":"https://api.github.com/users/tannewt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannewt/subscriptions","organizations_url":"https://api.github.com/users/tannewt/orgs","repos_url":"https://api.github.com/users/tannewt/repos","events_url":"https://api.github.com/users/tannewt/events{/privacy}","received_events_url":"https://api.github.com/users/tannewt/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":33,"changed_files":1}}
{"actor":{"display_login":"tannewt"}}