{"action":"opened","number":31,"pull_request":{"url":"https://api.github.com/repos/containership/csctl/pulls/31","id":228893087,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4ODkzMDg3","html_url":"https://github.com/containership/csctl/pull/31","diff_url":"https://github.com/containership/csctl/pull/31.diff","patch_url":"https://github.com/containership/csctl/pull/31.patch","issue_url":"https://api.github.com/repos/containership/csctl/issues/31","number":31,"state":"open","locked":false,"title":"Add strptr, int32ptr helpers for unit tests","user":{"login":"mattkelly","id":248713,"node_id":"MDQ6VXNlcjI0ODcxMw==","avatar_url":"https://avatars0.githubusercontent.com/u/248713?v=4","gravatar_id":"","url":"https://api.github.com/users/mattkelly","html_url":"https://github.com/mattkelly","followers_url":"https://api.github.com/users/mattkelly/followers","following_url":"https://api.github.com/users/mattkelly/following{/other_user}","gists_url":"https://api.github.com/users/mattkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/mattkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattkelly/subscriptions","organizations_url":"https://api.github.com/users/mattkelly/orgs","repos_url":"https://api.github.com/users/mattkelly/repos","events_url":"https://api.github.com/users/mattkelly/events{/privacy}","received_events_url":"https://api.github.com/users/mattkelly/received_events","type":"User","site_admin":false},"body":"### Description\n\nWithout these small helpers, creating test resources is painful because you can't take the address of a literal in go.\nHopefully this small change encourages creating more varied test resources for unit testing - at least for simple cases.\n\n #### What does this pull request accomplish?\n\n #### What issue(s) does this fix?\n* No ticket\n\n #### Additional Considerations\n\n ### Testing\n\n`make test`\n\n ### Dependencies\n* None","created_at":"2018-11-07T01:51:37Z","updated_at":"2018-11-07T01:51:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/containership/csctl/pulls/31/commits","review_comments_url":"https://api.github.com/repos/containership/csctl/pulls/31/comments","review_comment_url":"https://api.github.com/repos/containership/csctl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/containership/csctl/issues/31/comments","statuses_url":"https://api.github.com/repos/containership/csctl/statuses/87bc90c1ade4dbaf0ad72643bc249a940c7026b8","head":{"label":"mattkelly:opt/strptr","ref":"opt/strptr","sha":"87bc90c1ade4dbaf0ad72643bc249a940c7026b8","user":{"login":"mattkelly","id":248713,"node_id":"MDQ6VXNlcjI0ODcxMw==","avatar_url":"https://avatars0.githubusercontent.com/u/248713?v=4","gravatar_id":"","url":"https://api.github.com/users/mattkelly","html_url":"https://github.com/mattkelly","followers_url":"https://api.github.com/users/mattkelly/followers","following_url":"https://api.github.com/users/mattkelly/following{/other_user}","gists_url":"https://api.github.com/users/mattkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/mattkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattkelly/subscriptions","organizations_url":"https://api.github.com/users/mattkelly/orgs","repos_url":"https://api.github.com/users/mattkelly/repos","events_url":"https://api.github.com/users/mattkelly/events{/privacy}","received_events_url":"https://api.github.com/users/mattkelly/received_events","type":"User","site_admin":false},"repo":{"id":152154256,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIxNTQyNTY=","name":"csctl","full_name":"mattkelly/csctl","private":false,"owner":{"login":"mattkelly","id":248713,"node_id":"MDQ6VXNlcjI0ODcxMw==","avatar_url":"https://avatars0.githubusercontent.com/u/248713?v=4","gravatar_id":"","url":"https://api.github.com/users/mattkelly","html_url":"https://github.com/mattkelly","followers_url":"https://api.github.com/users/mattkelly/followers","following_url":"https://api.github.com/users/mattkelly/following{/other_user}","gists_url":"https://api.github.com/users/mattkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/mattkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattkelly/subscriptions","organizations_url":"https://api.github.com/users/mattkelly/orgs","repos_url":"https://api.github.com/users/mattkelly/repos","events_url":"https://api.github.com/users/mattkelly/events{/privacy}","received_events_url":"https://api.github.com/users/mattkelly/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mattkelly/csctl","description":"Containership CLI","fork":true,"url":"https://api.github.com/repos/mattkelly/csctl","forks_url":"https://api.github.com/repos/mattkelly/csctl/forks","keys_url":"https://api.github.com/repos/mattkelly/csctl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattkelly/csctl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattkelly/csctl/teams","hooks_url":"https://api.github.com/repos/mattkelly/csctl/hooks","issue_events_url":"https://api.github.com/repos/mattkelly/csctl/issues/events{/number}","events_url":"https://api.github.com/repos/mattkelly/csctl/events","assignees_url":"https://api.github.com/repos/mattkelly/csctl/assignees{/user}","branches_url":"https://api.github.com/repos/mattkelly/csctl/branches{/branch}","tags_url":"https://api.github.com/repos/mattkelly/csctl/tags","blobs_url":"https://api.github.com/repos/mattkelly/csctl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattkelly/csctl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattkelly/csctl/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattkelly/csctl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattkelly/csctl/statuses/{sha}","languages_url":"https://api.github.com/repos/mattkelly/csctl/languages","stargazers_url":"https://api.github.com/repos/mattkelly/csctl/stargazers","contributors_url":"https://api.github.com/repos/mattkelly/csctl/contributors","subscribers_url":"https://api.github.com/repos/mattkelly/csctl/subscribers","subscription_url":"https://api.github.com/repos/mattkelly/csctl/subscription","commits_url":"https://api.github.com/repos/mattkelly/csctl/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattkelly/csctl/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattkelly/csctl/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattkelly/csctl/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattkelly/csctl/contents/{+path}","compare_url":"https://api.github.com/repos/mattkelly/csctl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattkelly/csctl/merges","archive_url":"https://api.github.com/repos/mattkelly/csctl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattkelly/csctl/downloads","issues_url":"https://api.github.com/repos/mattkelly/csctl/issues{/number}","pulls_url":"https://api.github.com/repos/mattkelly/csctl/pulls{/number}","milestones_url":"https://api.github.com/repos/mattkelly/csctl/milestones{/number}","notifications_url":"https://api.github.com/repos/mattkelly/csctl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattkelly/csctl/labels{/name}","releases_url":"https://api.github.com/repos/mattkelly/csctl/releases{/id}","deployments_url":"https://api.github.com/repos/mattkelly/csctl/deployments","created_at":"2018-10-08T22:25:36Z","updated_at":"2018-11-06T14:28:31Z","pushed_at":"2018-11-07T01:48:24Z","git_url":"git://github.com/mattkelly/csctl.git","ssh_url":"git@github.com:mattkelly/csctl.git","clone_url":"https://github.com/mattkelly/csctl.git","svn_url":"https://github.com/mattkelly/csctl","homepage":null,"size":182,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"containership:master","ref":"master","sha":"7cd52cf0732f66fecffc2342a10ebaf56fd56202","user":{"login":"containership","id":7675252,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2NzUyNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/7675252?v=4","gravatar_id":"","url":"https://api.github.com/users/containership","html_url":"https://github.com/containership","followers_url":"https://api.github.com/users/containership/followers","following_url":"https://api.github.com/users/containership/following{/other_user}","gists_url":"https://api.github.com/users/containership/gists{/gist_id}","starred_url":"https://api.github.com/users/containership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containership/subscriptions","organizations_url":"https://api.github.com/users/containership/orgs","repos_url":"https://api.github.com/users/containership/repos","events_url":"https://api.github.com/users/containership/events{/privacy}","received_events_url":"https://api.github.com/users/containership/received_events","type":"Organization","site_admin":false},"repo":{"id":152124846,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIxMjQ4NDY=","name":"csctl","full_name":"containership/csctl","private":false,"owner":{"login":"containership","id":7675252,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2NzUyNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/7675252?v=4","gravatar_id":"","url":"https://api.github.com/users/containership","html_url":"https://github.com/containership","followers_url":"https://api.github.com/users/containership/followers","following_url":"https://api.github.com/users/containership/following{/other_user}","gists_url":"https://api.github.com/users/containership/gists{/gist_id}","starred_url":"https://api.github.com/users/containership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containership/subscriptions","organizations_url":"https://api.github.com/users/containership/orgs","repos_url":"https://api.github.com/users/containership/repos","events_url":"https://api.github.com/users/containership/events{/privacy}","received_events_url":"https://api.github.com/users/containership/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/containership/csctl","description":"Containership CLI and Official Go Client","fork":false,"url":"https://api.github.com/repos/containership/csctl","forks_url":"https://api.github.com/repos/containership/csctl/forks","keys_url":"https://api.github.com/repos/containership/csctl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/containership/csctl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/containership/csctl/teams","hooks_url":"https://api.github.com/repos/containership/csctl/hooks","issue_events_url":"https://api.github.com/repos/containership/csctl/issues/events{/number}","events_url":"https://api.github.com/repos/containership/csctl/events","assignees_url":"https://api.github.com/repos/containership/csctl/assignees{/user}","branches_url":"https://api.github.com/repos/containership/csctl/branches{/branch}","tags_url":"https://api.github.com/repos/containership/csctl/tags","blobs_url":"https://api.github.com/repos/containership/csctl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/containership/csctl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/containership/csctl/git/refs{/sha}","trees_url":"https://api.github.com/repos/containership/csctl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/containership/csctl/statuses/{sha}","languages_url":"https://api.github.com/repos/containership/csctl/languages","stargazers_url":"https://api.github.com/repos/containership/csctl/stargazers","contributors_url":"https://api.github.com/repos/containership/csctl/contributors","subscribers_url":"https://api.github.com/repos/containership/csctl/subscribers","subscription_url":"https://api.github.com/repos/containership/csctl/subscription","commits_url":"https://api.github.com/repos/containership/csctl/commits{/sha}","git_commits_url":"https://api.github.com/repos/containership/csctl/git/commits{/sha}","comments_url":"https://api.github.com/repos/containership/csctl/comments{/number}","issue_comment_url":"https://api.github.com/repos/containership/csctl/issues/comments{/number}","contents_url":"https://api.github.com/repos/containership/csctl/contents/{+path}","compare_url":"https://api.github.com/repos/containership/csctl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/containership/csctl/merges","archive_url":"https://api.github.com/repos/containership/csctl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/containership/csctl/downloads","issues_url":"https://api.github.com/repos/containership/csctl/issues{/number}","pulls_url":"https://api.github.com/repos/containership/csctl/pulls{/number}","milestones_url":"https://api.github.com/repos/containership/csctl/milestones{/number}","notifications_url":"https://api.github.com/repos/containership/csctl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/containership/csctl/labels{/name}","releases_url":"https://api.github.com/repos/containership/csctl/releases{/id}","deployments_url":"https://api.github.com/repos/containership/csctl/deployments","created_at":"2018-10-08T18:11:19Z","updated_at":"2018-11-06T13:31:30Z","pushed_at":"2018-11-06T16:25:01Z","git_url":"git://github.com/containership/csctl.git","ssh_url":"git@github.com:containership/csctl.git","clone_url":"https://github.com/containership/csctl.git","svn_url":"https://github.com/containership/csctl","homepage":"","size":95,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":5,"open_issues":10,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/containership/csctl/pulls/31"},"html":{"href":"https://github.com/containership/csctl/pull/31"},"issue":{"href":"https://api.github.com/repos/containership/csctl/issues/31"},"comments":{"href":"https://api.github.com/repos/containership/csctl/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/containership/csctl/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/containership/csctl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/containership/csctl/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/containership/csctl/statuses/87bc90c1ade4dbaf0ad72643bc249a940c7026b8"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":47,"deletions":52,"changed_files":7}}
{"actor":{"display_login":"mattkelly"}}