{"action":"opened","number":61,"pull_request":{"url":"https://api.github.com/repos/snapcore/snap-confine/pulls/61","id":75811268,"html_url":"https://github.com/snapcore/snap-confine/pull/61","diff_url":"https://github.com/snapcore/snap-confine/pull/61.diff","patch_url":"https://github.com/snapcore/snap-confine/pull/61.patch","issue_url":"https://api.github.com/repos/snapcore/snap-confine/issues/61","number":61,"state":"open","locked":false,"title":"do not use #ifdef but crazy include instead","user":{"login":"mvo5","id":914418,"avatar_url":"https://avatars.githubusercontent.com/u/914418?v=3","gravatar_id":"","url":"https://api.github.com/users/mvo5","html_url":"https://github.com/mvo5","followers_url":"https://api.github.com/users/mvo5/followers","following_url":"https://api.github.com/users/mvo5/following{/other_user}","gists_url":"https://api.github.com/users/mvo5/gists{/gist_id}","starred_url":"https://api.github.com/users/mvo5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvo5/subscriptions","organizations_url":"https://api.github.com/users/mvo5/orgs","repos_url":"https://api.github.com/users/mvo5/repos","events_url":"https://api.github.com/users/mvo5/events{/privacy}","received_events_url":"https://api.github.com/users/mvo5/received_events","type":"User","site_admin":false},"body":"Slightly different way of organizing the tests. This avoids the #ifdef (which I really dislike) and makes it more like go and moving the unit tests into a separate file (using the #include trick to still being able to test static functions).","created_at":"2016-06-30T12:34:21Z","updated_at":"2016-06-30T12:34:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/snapcore/snap-confine/pulls/61/commits","review_comments_url":"https://api.github.com/repos/snapcore/snap-confine/pulls/61/comments","review_comment_url":"https://api.github.com/repos/snapcore/snap-confine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/snapcore/snap-confine/issues/61/comments","statuses_url":"https://api.github.com/repos/snapcore/snap-confine/statuses/88af9e440ea09e3edc42183f8d3bfa66bec245e7","head":{"label":"mvo5:towards-safe-mount","ref":"towards-safe-mount","sha":"88af9e440ea09e3edc42183f8d3bfa66bec245e7","user":{"login":"mvo5","id":914418,"avatar_url":"https://avatars.githubusercontent.com/u/914418?v=3","gravatar_id":"","url":"https://api.github.com/users/mvo5","html_url":"https://github.com/mvo5","followers_url":"https://api.github.com/users/mvo5/followers","following_url":"https://api.github.com/users/mvo5/following{/other_user}","gists_url":"https://api.github.com/users/mvo5/gists{/gist_id}","starred_url":"https://api.github.com/users/mvo5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvo5/subscriptions","organizations_url":"https://api.github.com/users/mvo5/orgs","repos_url":"https://api.github.com/users/mvo5/repos","events_url":"https://api.github.com/users/mvo5/events{/privacy}","received_events_url":"https://api.github.com/users/mvo5/received_events","type":"User","site_admin":false},"repo":{"id":59486063,"name":"snap-run","full_name":"mvo5/snap-run","owner":{"login":"mvo5","id":914418,"avatar_url":"https://avatars.githubusercontent.com/u/914418?v=3","gravatar_id":"","url":"https://api.github.com/users/mvo5","html_url":"https://github.com/mvo5","followers_url":"https://api.github.com/users/mvo5/followers","following_url":"https://api.github.com/users/mvo5/following{/other_user}","gists_url":"https://api.github.com/users/mvo5/gists{/gist_id}","starred_url":"https://api.github.com/users/mvo5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvo5/subscriptions","organizations_url":"https://api.github.com/users/mvo5/orgs","repos_url":"https://api.github.com/users/mvo5/repos","events_url":"https://api.github.com/users/mvo5/events{/privacy}","received_events_url":"https://api.github.com/users/mvo5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mvo5/snap-run","description":"Runner for snappy applications","fork":true,"url":"https://api.github.com/repos/mvo5/snap-run","forks_url":"https://api.github.com/repos/mvo5/snap-run/forks","keys_url":"https://api.github.com/repos/mvo5/snap-run/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mvo5/snap-run/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mvo5/snap-run/teams","hooks_url":"https://api.github.com/repos/mvo5/snap-run/hooks","issue_events_url":"https://api.github.com/repos/mvo5/snap-run/issues/events{/number}","events_url":"https://api.github.com/repos/mvo5/snap-run/events","assignees_url":"https://api.github.com/repos/mvo5/snap-run/assignees{/user}","branches_url":"https://api.github.com/repos/mvo5/snap-run/branches{/branch}","tags_url":"https://api.github.com/repos/mvo5/snap-run/tags","blobs_url":"https://api.github.com/repos/mvo5/snap-run/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mvo5/snap-run/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mvo5/snap-run/git/refs{/sha}","trees_url":"https://api.github.com/repos/mvo5/snap-run/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mvo5/snap-run/statuses/{sha}","languages_url":"https://api.github.com/repos/mvo5/snap-run/languages","stargazers_url":"https://api.github.com/repos/mvo5/snap-run/stargazers","contributors_url":"https://api.github.com/repos/mvo5/snap-run/contributors","subscribers_url":"https://api.github.com/repos/mvo5/snap-run/subscribers","subscription_url":"https://api.github.com/repos/mvo5/snap-run/subscription","commits_url":"https://api.github.com/repos/mvo5/snap-run/commits{/sha}","git_commits_url":"https://api.github.com/repos/mvo5/snap-run/git/commits{/sha}","comments_url":"https://api.github.com/repos/mvo5/snap-run/comments{/number}","issue_comment_url":"https://api.github.com/repos/mvo5/snap-run/issues/comments{/number}","contents_url":"https://api.github.com/repos/mvo5/snap-run/contents/{+path}","compare_url":"https://api.github.com/repos/mvo5/snap-run/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mvo5/snap-run/merges","archive_url":"https://api.github.com/repos/mvo5/snap-run/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mvo5/snap-run/downloads","issues_url":"https://api.github.com/repos/mvo5/snap-run/issues{/number}","pulls_url":"https://api.github.com/repos/mvo5/snap-run/pulls{/number}","milestones_url":"https://api.github.com/repos/mvo5/snap-run/milestones{/number}","notifications_url":"https://api.github.com/repos/mvo5/snap-run/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mvo5/snap-run/labels{/name}","releases_url":"https://api.github.com/repos/mvo5/snap-run/releases{/id}","deployments_url":"https://api.github.com/repos/mvo5/snap-run/deployments","created_at":"2016-05-23T13:42:01Z","updated_at":"2016-05-23T13:42:02Z","pushed_at":"2016-06-30T12:32:15Z","git_url":"git://github.com/mvo5/snap-run.git","ssh_url":"git@github.com:mvo5/snap-run.git","clone_url":"https://github.com/mvo5/snap-run.git","svn_url":"https://github.com/mvo5/snap-run","homepage":null,"size":655,"stargazers_count":0,"watchers_count":0,"language":"C","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":"snapcore:towards-safe-mount","ref":"towards-safe-mount","sha":"87653b192766c70c61cc3be246f567508f0a4108","user":{"login":"snapcore","id":19532717,"avatar_url":"https://avatars.githubusercontent.com/u/19532717?v=3","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"repo":{"id":59485230,"name":"snap-confine","full_name":"snapcore/snap-confine","owner":{"login":"snapcore","id":19532717,"avatar_url":"https://avatars.githubusercontent.com/u/19532717?v=3","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snapcore/snap-confine","description":"Runner for snaps","fork":false,"url":"https://api.github.com/repos/snapcore/snap-confine","forks_url":"https://api.github.com/repos/snapcore/snap-confine/forks","keys_url":"https://api.github.com/repos/snapcore/snap-confine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snapcore/snap-confine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snapcore/snap-confine/teams","hooks_url":"https://api.github.com/repos/snapcore/snap-confine/hooks","issue_events_url":"https://api.github.com/repos/snapcore/snap-confine/issues/events{/number}","events_url":"https://api.github.com/repos/snapcore/snap-confine/events","assignees_url":"https://api.github.com/repos/snapcore/snap-confine/assignees{/user}","branches_url":"https://api.github.com/repos/snapcore/snap-confine/branches{/branch}","tags_url":"https://api.github.com/repos/snapcore/snap-confine/tags","blobs_url":"https://api.github.com/repos/snapcore/snap-confine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snapcore/snap-confine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snapcore/snap-confine/git/refs{/sha}","trees_url":"https://api.github.com/repos/snapcore/snap-confine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snapcore/snap-confine/statuses/{sha}","languages_url":"https://api.github.com/repos/snapcore/snap-confine/languages","stargazers_url":"https://api.github.com/repos/snapcore/snap-confine/stargazers","contributors_url":"https://api.github.com/repos/snapcore/snap-confine/contributors","subscribers_url":"https://api.github.com/repos/snapcore/snap-confine/subscribers","subscription_url":"https://api.github.com/repos/snapcore/snap-confine/subscription","commits_url":"https://api.github.com/repos/snapcore/snap-confine/commits{/sha}","git_commits_url":"https://api.github.com/repos/snapcore/snap-confine/git/commits{/sha}","comments_url":"https://api.github.com/repos/snapcore/snap-confine/comments{/number}","issue_comment_url":"https://api.github.com/repos/snapcore/snap-confine/issues/comments{/number}","contents_url":"https://api.github.com/repos/snapcore/snap-confine/contents/{+path}","compare_url":"https://api.github.com/repos/snapcore/snap-confine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snapcore/snap-confine/merges","archive_url":"https://api.github.com/repos/snapcore/snap-confine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snapcore/snap-confine/downloads","issues_url":"https://api.github.com/repos/snapcore/snap-confine/issues{/number}","pulls_url":"https://api.github.com/repos/snapcore/snap-confine/pulls{/number}","milestones_url":"https://api.github.com/repos/snapcore/snap-confine/milestones{/number}","notifications_url":"https://api.github.com/repos/snapcore/snap-confine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snapcore/snap-confine/labels{/name}","releases_url":"https://api.github.com/repos/snapcore/snap-confine/releases{/id}","deployments_url":"https://api.github.com/repos/snapcore/snap-confine/deployments","created_at":"2016-05-23T13:29:44Z","updated_at":"2016-06-16T02:13:49Z","pushed_at":"2016-06-30T11:54:17Z","git_url":"git://github.com/snapcore/snap-confine.git","ssh_url":"git@github.com:snapcore/snap-confine.git","clone_url":"https://github.com/snapcore/snap-confine.git","svn_url":"https://github.com/snapcore/snap-confine","homepage":"","size":799,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/snapcore/snap-confine/pulls/61"},"html":{"href":"https://github.com/snapcore/snap-confine/pull/61"},"issue":{"href":"https://api.github.com/repos/snapcore/snap-confine/issues/61"},"comments":{"href":"https://api.github.com/repos/snapcore/snap-confine/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/snapcore/snap-confine/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/snapcore/snap-confine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/snapcore/snap-confine/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/snapcore/snap-confine/statuses/88af9e440ea09e3edc42183f8d3bfa66bec245e7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":70,"deletions":47,"changed_files":9}}
{"actor":{"display_login":"mvo5"}}