{"action":"closed","number":14,"pull_request":{"url":"https://api.github.com/repos/hyperoslo/Sugar/pulls/14","id":49526426,"html_url":"https://github.com/hyperoslo/Sugar/pull/14","diff_url":"https://github.com/hyperoslo/Sugar/pull/14.diff","patch_url":"https://github.com/hyperoslo/Sugar/pull/14.patch","issue_url":"https://api.github.com/repos/hyperoslo/Sugar/issues/14","number":14,"state":"closed","locked":false,"title":"Feature/if let assigment","user":{"login":"zenangst","id":57446,"avatar_url":"https://avatars.githubusercontent.com/u/57446?v=3","gravatar_id":"","url":"https://api.github.com/users/zenangst","html_url":"https://github.com/zenangst","followers_url":"https://api.github.com/users/zenangst/followers","following_url":"https://api.github.com/users/zenangst/following{/other_user}","gists_url":"https://api.github.com/users/zenangst/gists{/gist_id}","starred_url":"https://api.github.com/users/zenangst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenangst/subscriptions","organizations_url":"https://api.github.com/users/zenangst/orgs","repos_url":"https://api.github.com/users/zenangst/repos","events_url":"https://api.github.com/users/zenangst/events{/privacy}","received_events_url":"https://api.github.com/users/zenangst/received_events","type":"User","site_admin":false},"body":"Now you can optionally assign value using the `?=` operator.\n\nThe left value will be assigned to the right if the right one is able to optionally assign it to the left one.\n\nThe implementation is super simple;\n\n```swift\nfunc ?=<T>(inout left: T, right: T?) {\n  guard let value = right else { return }\n  left = value\n}\n\nfunc ?=<T>(inout left: T?, right: T?) {\n  guard let value = right else { return }\n  left = value\n}\n```\n\nGreatly inspired/Stolen by/from http://www.alloc-init.com/2015/10/if-let-assignment","created_at":"2015-11-03T07:38:13Z","updated_at":"2015-11-03T08:37:43Z","closed_at":"2015-11-03T08:37:43Z","merged_at":"2015-11-03T08:37:43Z","merge_commit_sha":"4999ec1ca4924987cce72e933ffad3a57c202eb5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hyperoslo/Sugar/pulls/14/commits","review_comments_url":"https://api.github.com/repos/hyperoslo/Sugar/pulls/14/comments","review_comment_url":"https://api.github.com/repos/hyperoslo/Sugar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyperoslo/Sugar/issues/14/comments","statuses_url":"https://api.github.com/repos/hyperoslo/Sugar/statuses/c10729c98d6a5246d1daa660aefb177442a45e1d","head":{"label":"hyperoslo:feature/if-let-assigment","ref":"feature/if-let-assigment","sha":"c10729c98d6a5246d1daa660aefb177442a45e1d","user":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"repo":{"id":38810470,"name":"Sugar","full_name":"hyperoslo/Sugar","owner":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperoslo/Sugar","description":"Something sweet","fork":false,"url":"https://api.github.com/repos/hyperoslo/Sugar","forks_url":"https://api.github.com/repos/hyperoslo/Sugar/forks","keys_url":"https://api.github.com/repos/hyperoslo/Sugar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/Sugar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/Sugar/teams","hooks_url":"https://api.github.com/repos/hyperoslo/Sugar/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/Sugar/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/Sugar/events","assignees_url":"https://api.github.com/repos/hyperoslo/Sugar/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/Sugar/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/Sugar/tags","blobs_url":"https://api.github.com/repos/hyperoslo/Sugar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/Sugar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/Sugar/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/Sugar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/Sugar/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/Sugar/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/Sugar/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/Sugar/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/Sugar/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/Sugar/subscription","commits_url":"https://api.github.com/repos/hyperoslo/Sugar/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/Sugar/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/Sugar/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/Sugar/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/Sugar/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/Sugar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/Sugar/merges","archive_url":"https://api.github.com/repos/hyperoslo/Sugar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/Sugar/downloads","issues_url":"https://api.github.com/repos/hyperoslo/Sugar/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/Sugar/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/Sugar/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/Sugar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/Sugar/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/Sugar/releases{/id}","created_at":"2015-07-09T09:10:55Z","updated_at":"2015-10-22T17:18:22Z","pushed_at":"2015-11-03T08:37:44Z","git_url":"git://github.com/hyperoslo/Sugar.git","ssh_url":"git@github.com:hyperoslo/Sugar.git","clone_url":"https://github.com/hyperoslo/Sugar.git","svn_url":"https://github.com/hyperoslo/Sugar","homepage":null,"size":271,"stargazers_count":4,"watchers_count":4,"language":"Swift","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":4,"default_branch":"master"}},"base":{"label":"hyperoslo:master","ref":"master","sha":"5f076e8f1aa8cba8f9ddc39e98d325c8282855ab","user":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"repo":{"id":38810470,"name":"Sugar","full_name":"hyperoslo/Sugar","owner":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperoslo/Sugar","description":"Something sweet","fork":false,"url":"https://api.github.com/repos/hyperoslo/Sugar","forks_url":"https://api.github.com/repos/hyperoslo/Sugar/forks","keys_url":"https://api.github.com/repos/hyperoslo/Sugar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/Sugar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/Sugar/teams","hooks_url":"https://api.github.com/repos/hyperoslo/Sugar/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/Sugar/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/Sugar/events","assignees_url":"https://api.github.com/repos/hyperoslo/Sugar/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/Sugar/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/Sugar/tags","blobs_url":"https://api.github.com/repos/hyperoslo/Sugar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/Sugar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/Sugar/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/Sugar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/Sugar/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/Sugar/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/Sugar/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/Sugar/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/Sugar/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/Sugar/subscription","commits_url":"https://api.github.com/repos/hyperoslo/Sugar/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/Sugar/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/Sugar/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/Sugar/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/Sugar/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/Sugar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/Sugar/merges","archive_url":"https://api.github.com/repos/hyperoslo/Sugar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/Sugar/downloads","issues_url":"https://api.github.com/repos/hyperoslo/Sugar/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/Sugar/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/Sugar/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/Sugar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/Sugar/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/Sugar/releases{/id}","created_at":"2015-07-09T09:10:55Z","updated_at":"2015-10-22T17:18:22Z","pushed_at":"2015-11-03T08:37:44Z","git_url":"git://github.com/hyperoslo/Sugar.git","ssh_url":"git@github.com:hyperoslo/Sugar.git","clone_url":"https://github.com/hyperoslo/Sugar.git","svn_url":"https://github.com/hyperoslo/Sugar","homepage":null,"size":271,"stargazers_count":4,"watchers_count":4,"language":"Swift","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":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/Sugar/pulls/14"},"html":{"href":"https://github.com/hyperoslo/Sugar/pull/14"},"issue":{"href":"https://api.github.com/repos/hyperoslo/Sugar/issues/14"},"comments":{"href":"https://api.github.com/repos/hyperoslo/Sugar/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperoslo/Sugar/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperoslo/Sugar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyperoslo/Sugar/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/hyperoslo/Sugar/statuses/c10729c98d6a5246d1daa660aefb177442a45e1d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"vadymmarkov","id":10529867,"avatar_url":"https://avatars.githubusercontent.com/u/10529867?v=3","gravatar_id":"","url":"https://api.github.com/users/vadymmarkov","html_url":"https://github.com/vadymmarkov","followers_url":"https://api.github.com/users/vadymmarkov/followers","following_url":"https://api.github.com/users/vadymmarkov/following{/other_user}","gists_url":"https://api.github.com/users/vadymmarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/vadymmarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadymmarkov/subscriptions","organizations_url":"https://api.github.com/users/vadymmarkov/orgs","repos_url":"https://api.github.com/users/vadymmarkov/repos","events_url":"https://api.github.com/users/vadymmarkov/events{/privacy}","received_events_url":"https://api.github.com/users/vadymmarkov/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":5,"additions":45,"deletions":1,"changed_files":4}}