{"action":"created","comment":{"url":"https://api.github.com/repos/packethost/packngo/pulls/comments/200388958","pull_request_review_id":134695255,"id":200388958,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDM4ODk1OA==","diff_hunk":"@@ -0,0 +1,67 @@\n+package packngo\n+\n+import (\n+\t\"fmt\"\n+\t\"testing\"\n+)\n+\n+var batchID string\n+\n+func TestAccCreateBatch(t *testing.T) {\n+\tskipUnlessAcceptanceTestsAllowed(t)\n+\tc := setup(t)\n+\n+\tbatches := &InstanceBatchCreateRequest{\n+\t\tBatches: []BatchInstance{\n+\t\t\t{\n+\t\t\t\tHostname:        \"test1\",\n+\t\t\t\tDescription:     \"test batch\",\n+\t\t\t\tPlan:            \"baremetal_0\",\n+\t\t\t\tOperatingSystem: \"coreos_stable\",\n+\t\t\t\tFacility:        \"ewr1\",\n+\t\t\t\tBillingCycle:    \"hourly\",\n+\t\t\t\tTags:            []string{\"abc\"},\n+\t\t\t\tQuantity:        1,\n+\t\t\t},\n+\t\t},\n+\t}\n+\n+\tbatch, _, err := c.Batches.Create(\"93125c2a-8b78-4d4f-a3c4-7367d6b7cca8\", batches)\n+\tif err != nil {\n+\t\tt.Fatal(err)\n+\t}\n+\n+\tif batch != nil {\n+\t\tbatchID = batch.ID\n+\t}\n+}\n+func TestAccListBatches(t *testing.T) {","path":"batches_test.go","position":38,"original_position":38,"commit_id":"31b9386547c8d020678e98514a51b50691575008","original_commit_id":"31b9386547c8d020678e98514a51b50691575008","user":{"login":"jasmingacic","id":8327751,"node_id":"MDQ6VXNlcjgzMjc3NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/8327751?v=4","gravatar_id":"","url":"https://api.github.com/users/jasmingacic","html_url":"https://github.com/jasmingacic","followers_url":"https://api.github.com/users/jasmingacic/followers","following_url":"https://api.github.com/users/jasmingacic/following{/other_user}","gists_url":"https://api.github.com/users/jasmingacic/gists{/gist_id}","starred_url":"https://api.github.com/users/jasmingacic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasmingacic/subscriptions","organizations_url":"https://api.github.com/users/jasmingacic/orgs","repos_url":"https://api.github.com/users/jasmingacic/repos","events_url":"https://api.github.com/users/jasmingacic/events{/privacy}","received_events_url":"https://api.github.com/users/jasmingacic/received_events","type":"User","site_admin":false},"body":"Will do","created_at":"2018-07-05T15:10:19Z","updated_at":"2018-07-05T15:10:20Z","html_url":"https://github.com/packethost/packngo/pull/85#discussion_r200388958","pull_request_url":"https://api.github.com/repos/packethost/packngo/pulls/85","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/packethost/packngo/pulls/comments/200388958"},"html":{"href":"https://github.com/packethost/packngo/pull/85#discussion_r200388958"},"pull_request":{"href":"https://api.github.com/repos/packethost/packngo/pulls/85"}},"in_reply_to_id":200386592},"pull_request":{"url":"https://api.github.com/repos/packethost/packngo/pulls/85","id":198924068,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4OTI0MDY4","html_url":"https://github.com/packethost/packngo/pull/85","diff_url":"https://github.com/packethost/packngo/pull/85.diff","patch_url":"https://github.com/packethost/packngo/pull/85.patch","issue_url":"https://api.github.com/repos/packethost/packngo/issues/85","number":85,"state":"open","locked":false,"title":"Instance batches","user":{"login":"jasmingacic","id":8327751,"node_id":"MDQ6VXNlcjgzMjc3NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/8327751?v=4","gravatar_id":"","url":"https://api.github.com/users/jasmingacic","html_url":"https://github.com/jasmingacic","followers_url":"https://api.github.com/users/jasmingacic/followers","following_url":"https://api.github.com/users/jasmingacic/following{/other_user}","gists_url":"https://api.github.com/users/jasmingacic/gists{/gist_id}","starred_url":"https://api.github.com/users/jasmingacic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasmingacic/subscriptions","organizations_url":"https://api.github.com/users/jasmingacic/orgs","repos_url":"https://api.github.com/users/jasmingacic/repos","events_url":"https://api.github.com/users/jasmingacic/events{/privacy}","received_events_url":"https://api.github.com/users/jasmingacic/received_events","type":"User","site_admin":false},"body":"This is just a dry run for future implementations. Does this implementation fit into your requirements?\r\n\r\np.s. I had some problems with my account so I couldn't test the implementation so this PR is **not ready** to be merged.\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/packethost/packngo/85)\n<!-- Reviewable:end -->\n","created_at":"2018-07-03T10:51:56Z","updated_at":"2018-07-05T15:10:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd8a5ee973437c9108854822f62ec00f4d422b54","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/packethost/packngo/pulls/85/commits","review_comments_url":"https://api.github.com/repos/packethost/packngo/pulls/85/comments","review_comment_url":"https://api.github.com/repos/packethost/packngo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/packethost/packngo/issues/85/comments","statuses_url":"https://api.github.com/repos/packethost/packngo/statuses/31b9386547c8d020678e98514a51b50691575008","head":{"label":"StackPointCloud:batches","ref":"batches","sha":"31b9386547c8d020678e98514a51b50691575008","user":{"login":"StackPointCloud","id":7716957,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3MTY5NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/7716957?v=4","gravatar_id":"","url":"https://api.github.com/users/StackPointCloud","html_url":"https://github.com/StackPointCloud","followers_url":"https://api.github.com/users/StackPointCloud/followers","following_url":"https://api.github.com/users/StackPointCloud/following{/other_user}","gists_url":"https://api.github.com/users/StackPointCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/StackPointCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackPointCloud/subscriptions","organizations_url":"https://api.github.com/users/StackPointCloud/orgs","repos_url":"https://api.github.com/users/StackPointCloud/repos","events_url":"https://api.github.com/users/StackPointCloud/events{/privacy}","received_events_url":"https://api.github.com/users/StackPointCloud/received_events","type":"Organization","site_admin":false},"repo":{"id":137209977,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcyMDk5Nzc=","name":"packngo","full_name":"StackPointCloud/packngo","owner":{"login":"StackPointCloud","id":7716957,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3MTY5NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/7716957?v=4","gravatar_id":"","url":"https://api.github.com/users/StackPointCloud","html_url":"https://github.com/StackPointCloud","followers_url":"https://api.github.com/users/StackPointCloud/followers","following_url":"https://api.github.com/users/StackPointCloud/following{/other_user}","gists_url":"https://api.github.com/users/StackPointCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/StackPointCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackPointCloud/subscriptions","organizations_url":"https://api.github.com/users/StackPointCloud/orgs","repos_url":"https://api.github.com/users/StackPointCloud/repos","events_url":"https://api.github.com/users/StackPointCloud/events{/privacy}","received_events_url":"https://api.github.com/users/StackPointCloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StackPointCloud/packngo","description":"Packet Go Api Client","fork":true,"url":"https://api.github.com/repos/StackPointCloud/packngo","forks_url":"https://api.github.com/repos/StackPointCloud/packngo/forks","keys_url":"https://api.github.com/repos/StackPointCloud/packngo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StackPointCloud/packngo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StackPointCloud/packngo/teams","hooks_url":"https://api.github.com/repos/StackPointCloud/packngo/hooks","issue_events_url":"https://api.github.com/repos/StackPointCloud/packngo/issues/events{/number}","events_url":"https://api.github.com/repos/StackPointCloud/packngo/events","assignees_url":"https://api.github.com/repos/StackPointCloud/packngo/assignees{/user}","branches_url":"https://api.github.com/repos/StackPointCloud/packngo/branches{/branch}","tags_url":"https://api.github.com/repos/StackPointCloud/packngo/tags","blobs_url":"https://api.github.com/repos/StackPointCloud/packngo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StackPointCloud/packngo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StackPointCloud/packngo/git/refs{/sha}","trees_url":"https://api.github.com/repos/StackPointCloud/packngo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StackPointCloud/packngo/statuses/{sha}","languages_url":"https://api.github.com/repos/StackPointCloud/packngo/languages","stargazers_url":"https://api.github.com/repos/StackPointCloud/packngo/stargazers","contributors_url":"https://api.github.com/repos/StackPointCloud/packngo/contributors","subscribers_url":"https://api.github.com/repos/StackPointCloud/packngo/subscribers","subscription_url":"https://api.github.com/repos/StackPointCloud/packngo/subscription","commits_url":"https://api.github.com/repos/StackPointCloud/packngo/commits{/sha}","git_commits_url":"https://api.github.com/repos/StackPointCloud/packngo/git/commits{/sha}","comments_url":"https://api.github.com/repos/StackPointCloud/packngo/comments{/number}","issue_comment_url":"https://api.github.com/repos/StackPointCloud/packngo/issues/comments{/number}","contents_url":"https://api.github.com/repos/StackPointCloud/packngo/contents/{+path}","compare_url":"https://api.github.com/repos/StackPointCloud/packngo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StackPointCloud/packngo/merges","archive_url":"https://api.github.com/repos/StackPointCloud/packngo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StackPointCloud/packngo/downloads","issues_url":"https://api.github.com/repos/StackPointCloud/packngo/issues{/number}","pulls_url":"https://api.github.com/repos/StackPointCloud/packngo/pulls{/number}","milestones_url":"https://api.github.com/repos/StackPointCloud/packngo/milestones{/number}","notifications_url":"https://api.github.com/repos/StackPointCloud/packngo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StackPointCloud/packngo/labels{/name}","releases_url":"https://api.github.com/repos/StackPointCloud/packngo/releases{/id}","deployments_url":"https://api.github.com/repos/StackPointCloud/packngo/deployments","created_at":"2018-06-13T12:04:27Z","updated_at":"2018-06-29T17:53:44Z","pushed_at":"2018-07-04T09:09:21Z","git_url":"git://github.com/StackPointCloud/packngo.git","ssh_url":"git@github.com:StackPointCloud/packngo.git","clone_url":"https://github.com/StackPointCloud/packngo.git","svn_url":"https://github.com/StackPointCloud/packngo","homepage":null,"size":179,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"packethost:master","ref":"master","sha":"95039464827381cb3f66f5dfb1b5ad3e18cf052b","user":{"login":"packethost","id":7982021,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5ODIwMjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7982021?v=4","gravatar_id":"","url":"https://api.github.com/users/packethost","html_url":"https://github.com/packethost","followers_url":"https://api.github.com/users/packethost/followers","following_url":"https://api.github.com/users/packethost/following{/other_user}","gists_url":"https://api.github.com/users/packethost/gists{/gist_id}","starred_url":"https://api.github.com/users/packethost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/packethost/subscriptions","organizations_url":"https://api.github.com/users/packethost/orgs","repos_url":"https://api.github.com/users/packethost/repos","events_url":"https://api.github.com/users/packethost/events{/privacy}","received_events_url":"https://api.github.com/users/packethost/received_events","type":"Organization","site_admin":false},"repo":{"id":32229506,"node_id":"MDEwOlJlcG9zaXRvcnkzMjIyOTUwNg==","name":"packngo","full_name":"packethost/packngo","owner":{"login":"packethost","id":7982021,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5ODIwMjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7982021?v=4","gravatar_id":"","url":"https://api.github.com/users/packethost","html_url":"https://github.com/packethost","followers_url":"https://api.github.com/users/packethost/followers","following_url":"https://api.github.com/users/packethost/following{/other_user}","gists_url":"https://api.github.com/users/packethost/gists{/gist_id}","starred_url":"https://api.github.com/users/packethost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/packethost/subscriptions","organizations_url":"https://api.github.com/users/packethost/orgs","repos_url":"https://api.github.com/users/packethost/repos","events_url":"https://api.github.com/users/packethost/events{/privacy}","received_events_url":"https://api.github.com/users/packethost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/packethost/packngo","description":"Packet Go Api Client","fork":false,"url":"https://api.github.com/repos/packethost/packngo","forks_url":"https://api.github.com/repos/packethost/packngo/forks","keys_url":"https://api.github.com/repos/packethost/packngo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/packethost/packngo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/packethost/packngo/teams","hooks_url":"https://api.github.com/repos/packethost/packngo/hooks","issue_events_url":"https://api.github.com/repos/packethost/packngo/issues/events{/number}","events_url":"https://api.github.com/repos/packethost/packngo/events","assignees_url":"https://api.github.com/repos/packethost/packngo/assignees{/user}","branches_url":"https://api.github.com/repos/packethost/packngo/branches{/branch}","tags_url":"https://api.github.com/repos/packethost/packngo/tags","blobs_url":"https://api.github.com/repos/packethost/packngo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/packethost/packngo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/packethost/packngo/git/refs{/sha}","trees_url":"https://api.github.com/repos/packethost/packngo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/packethost/packngo/statuses/{sha}","languages_url":"https://api.github.com/repos/packethost/packngo/languages","stargazers_url":"https://api.github.com/repos/packethost/packngo/stargazers","contributors_url":"https://api.github.com/repos/packethost/packngo/contributors","subscribers_url":"https://api.github.com/repos/packethost/packngo/subscribers","subscription_url":"https://api.github.com/repos/packethost/packngo/subscription","commits_url":"https://api.github.com/repos/packethost/packngo/commits{/sha}","git_commits_url":"https://api.github.com/repos/packethost/packngo/git/commits{/sha}","comments_url":"https://api.github.com/repos/packethost/packngo/comments{/number}","issue_comment_url":"https://api.github.com/repos/packethost/packngo/issues/comments{/number}","contents_url":"https://api.github.com/repos/packethost/packngo/contents/{+path}","compare_url":"https://api.github.com/repos/packethost/packngo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/packethost/packngo/merges","archive_url":"https://api.github.com/repos/packethost/packngo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/packethost/packngo/downloads","issues_url":"https://api.github.com/repos/packethost/packngo/issues{/number}","pulls_url":"https://api.github.com/repos/packethost/packngo/pulls{/number}","milestones_url":"https://api.github.com/repos/packethost/packngo/milestones{/number}","notifications_url":"https://api.github.com/repos/packethost/packngo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/packethost/packngo/labels{/name}","releases_url":"https://api.github.com/repos/packethost/packngo/releases{/id}","deployments_url":"https://api.github.com/repos/packethost/packngo/deployments","created_at":"2015-03-14T20:00:22Z","updated_at":"2018-06-27T16:24:55Z","pushed_at":"2018-07-04T09:09:29Z","git_url":"git://github.com/packethost/packngo.git","ssh_url":"git@github.com:packethost/packngo.git","clone_url":"https://github.com/packethost/packngo.git","svn_url":"https://github.com/packethost/packngo","homepage":null,"size":187,"stargazers_count":38,"watchers_count":38,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":32,"open_issues":12,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/packethost/packngo/pulls/85"},"html":{"href":"https://github.com/packethost/packngo/pull/85"},"issue":{"href":"https://api.github.com/repos/packethost/packngo/issues/85"},"comments":{"href":"https://api.github.com/repos/packethost/packngo/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/packethost/packngo/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/packethost/packngo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/packethost/packngo/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/packethost/packngo/statuses/31b9386547c8d020678e98514a51b50691575008"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jasmingacic"}}