{"action":"opened","number":38,"pull_request":{"url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/pulls/38","id":99540645,"html_url":"https://github.com/gontovnik/DGRunkeeperSwitch/pull/38","diff_url":"https://github.com/gontovnik/DGRunkeeperSwitch/pull/38.diff","patch_url":"https://github.com/gontovnik/DGRunkeeperSwitch/pull/38.patch","issue_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/issues/38","number":38,"state":"open","locked":false,"title":"add protocol","user":{"login":"zmarvin","id":10094466,"avatar_url":"https://avatars.githubusercontent.com/u/10094466?v=3","gravatar_id":"","url":"https://api.github.com/users/zmarvin","html_url":"https://github.com/zmarvin","followers_url":"https://api.github.com/users/zmarvin/followers","following_url":"https://api.github.com/users/zmarvin/following{/other_user}","gists_url":"https://api.github.com/users/zmarvin/gists{/gist_id}","starred_url":"https://api.github.com/users/zmarvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmarvin/subscriptions","organizations_url":"https://api.github.com/users/zmarvin/orgs","repos_url":"https://api.github.com/users/zmarvin/repos","events_url":"https://api.github.com/users/zmarvin/events{/privacy}","received_events_url":"https://api.github.com/users/zmarvin/received_events","type":"User","site_admin":false},"body":"I think add two protocol methods to communicate with the outside, so that before the switch state changes, give the user an opportunity to choose whether or not to change.","created_at":"2016-12-28T11:53:51Z","updated_at":"2016-12-28T11:53:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/pulls/38/commits","review_comments_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/pulls/38/comments","review_comment_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/issues/38/comments","statuses_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/statuses/b823ed3e0f704c49e024d828cc3e70f3011539c0","head":{"label":"zmarvin:master","ref":"master","sha":"b823ed3e0f704c49e024d828cc3e70f3011539c0","user":{"login":"zmarvin","id":10094466,"avatar_url":"https://avatars.githubusercontent.com/u/10094466?v=3","gravatar_id":"","url":"https://api.github.com/users/zmarvin","html_url":"https://github.com/zmarvin","followers_url":"https://api.github.com/users/zmarvin/followers","following_url":"https://api.github.com/users/zmarvin/following{/other_user}","gists_url":"https://api.github.com/users/zmarvin/gists{/gist_id}","starred_url":"https://api.github.com/users/zmarvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmarvin/subscriptions","organizations_url":"https://api.github.com/users/zmarvin/orgs","repos_url":"https://api.github.com/users/zmarvin/repos","events_url":"https://api.github.com/users/zmarvin/events{/privacy}","received_events_url":"https://api.github.com/users/zmarvin/received_events","type":"User","site_admin":false},"repo":{"id":77379739,"name":"DGRunkeeperSwitch","full_name":"zmarvin/DGRunkeeperSwitch","owner":{"login":"zmarvin","id":10094466,"avatar_url":"https://avatars.githubusercontent.com/u/10094466?v=3","gravatar_id":"","url":"https://api.github.com/users/zmarvin","html_url":"https://github.com/zmarvin","followers_url":"https://api.github.com/users/zmarvin/followers","following_url":"https://api.github.com/users/zmarvin/following{/other_user}","gists_url":"https://api.github.com/users/zmarvin/gists{/gist_id}","starred_url":"https://api.github.com/users/zmarvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmarvin/subscriptions","organizations_url":"https://api.github.com/users/zmarvin/orgs","repos_url":"https://api.github.com/users/zmarvin/repos","events_url":"https://api.github.com/users/zmarvin/events{/privacy}","received_events_url":"https://api.github.com/users/zmarvin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zmarvin/DGRunkeeperSwitch","description":"Runkeeper design switch control","fork":true,"url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch","forks_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/forks","keys_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/teams","hooks_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/hooks","issue_events_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/issues/events{/number}","events_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/events","assignees_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/assignees{/user}","branches_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/branches{/branch}","tags_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/tags","blobs_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/git/refs{/sha}","trees_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/statuses/{sha}","languages_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/languages","stargazers_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/stargazers","contributors_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/contributors","subscribers_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/subscribers","subscription_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/subscription","commits_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/commits{/sha}","git_commits_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/git/commits{/sha}","comments_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/comments{/number}","issue_comment_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/issues/comments{/number}","contents_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/contents/{+path}","compare_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/merges","archive_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/downloads","issues_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/issues{/number}","pulls_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/pulls{/number}","milestones_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/milestones{/number}","notifications_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/labels{/name}","releases_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/releases{/id}","deployments_url":"https://api.github.com/repos/zmarvin/DGRunkeeperSwitch/deployments","created_at":"2016-12-26T11:31:05Z","updated_at":"2016-12-26T11:31:08Z","pushed_at":"2016-12-28T11:47:29Z","git_url":"git://github.com/zmarvin/DGRunkeeperSwitch.git","ssh_url":"git@github.com:zmarvin/DGRunkeeperSwitch.git","clone_url":"https://github.com/zmarvin/DGRunkeeperSwitch.git","svn_url":"https://github.com/zmarvin/DGRunkeeperSwitch","homepage":"","size":549,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":"gontovnik:master","ref":"master","sha":"709b845b4aa3406770d909a060818afc96d6a332","user":{"login":"gontovnik","id":3436659,"avatar_url":"https://avatars.githubusercontent.com/u/3436659?v=3","gravatar_id":"","url":"https://api.github.com/users/gontovnik","html_url":"https://github.com/gontovnik","followers_url":"https://api.github.com/users/gontovnik/followers","following_url":"https://api.github.com/users/gontovnik/following{/other_user}","gists_url":"https://api.github.com/users/gontovnik/gists{/gist_id}","starred_url":"https://api.github.com/users/gontovnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gontovnik/subscriptions","organizations_url":"https://api.github.com/users/gontovnik/orgs","repos_url":"https://api.github.com/users/gontovnik/repos","events_url":"https://api.github.com/users/gontovnik/events{/privacy}","received_events_url":"https://api.github.com/users/gontovnik/received_events","type":"User","site_admin":false},"repo":{"id":41873412,"name":"DGRunkeeperSwitch","full_name":"gontovnik/DGRunkeeperSwitch","owner":{"login":"gontovnik","id":3436659,"avatar_url":"https://avatars.githubusercontent.com/u/3436659?v=3","gravatar_id":"","url":"https://api.github.com/users/gontovnik","html_url":"https://github.com/gontovnik","followers_url":"https://api.github.com/users/gontovnik/followers","following_url":"https://api.github.com/users/gontovnik/following{/other_user}","gists_url":"https://api.github.com/users/gontovnik/gists{/gist_id}","starred_url":"https://api.github.com/users/gontovnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gontovnik/subscriptions","organizations_url":"https://api.github.com/users/gontovnik/orgs","repos_url":"https://api.github.com/users/gontovnik/repos","events_url":"https://api.github.com/users/gontovnik/events{/privacy}","received_events_url":"https://api.github.com/users/gontovnik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gontovnik/DGRunkeeperSwitch","description":"Runkeeper design switch control","fork":false,"url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch","forks_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/forks","keys_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/teams","hooks_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/hooks","issue_events_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/issues/events{/number}","events_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/events","assignees_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/assignees{/user}","branches_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/branches{/branch}","tags_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/tags","blobs_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/git/refs{/sha}","trees_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/statuses/{sha}","languages_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/languages","stargazers_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/stargazers","contributors_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/contributors","subscribers_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/subscribers","subscription_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/subscription","commits_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/commits{/sha}","git_commits_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/git/commits{/sha}","comments_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/comments{/number}","issue_comment_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/issues/comments{/number}","contents_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/contents/{+path}","compare_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/merges","archive_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/downloads","issues_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/issues{/number}","pulls_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/pulls{/number}","milestones_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/milestones{/number}","notifications_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/labels{/name}","releases_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/releases{/id}","deployments_url":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/deployments","created_at":"2015-09-03T17:22:52Z","updated_at":"2016-12-27T17:17:24Z","pushed_at":"2016-12-28T11:47:30Z","git_url":"git://github.com/gontovnik/DGRunkeeperSwitch.git","ssh_url":"git@github.com:gontovnik/DGRunkeeperSwitch.git","clone_url":"https://github.com/gontovnik/DGRunkeeperSwitch.git","svn_url":"https://github.com/gontovnik/DGRunkeeperSwitch","homepage":"","size":560,"stargazers_count":1700,"watchers_count":1700,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":146,"mirror_url":null,"open_issues_count":5,"forks":146,"open_issues":5,"watchers":1700,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/pulls/38"},"html":{"href":"https://github.com/gontovnik/DGRunkeeperSwitch/pull/38"},"issue":{"href":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/issues/38"},"comments":{"href":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/gontovnik/DGRunkeeperSwitch/statuses/b823ed3e0f704c49e024d828cc3e70f3011539c0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":32,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"zmarvin"}}