GitHub PullRequestEvent at 2014-09-25 08:43:30
Repository: elastigo
Actor: woanware
Payload: {"action":"opened","number":128,"pull_request":{"url":"https://api.github.com/repos/mattbaird/elastigo/pulls/128","id":21768394,"html_url":"https://github.com/mattbaird/elastigo/pull/128","diff_url":"https://github.com/mattbaird/elastigo/pull/128.diff","patch_url":"https://github.com/mattbaird/elastigo/pull/128.patch","issue_url":"https://api.github.com/repos/mattbaird/elastigo/issues/128","number":128,"state":"open","locked":false,"title":"- Added new method that allows the creation of an index with settings","user":{"login":"woanware","id":1075956,"avatar_url":"https://avatars.githubusercontent.com/u/1075956?v=2","gravatar_id":"","url":"https://api.github.com/users/woanware","html_url":"https://github.com/woanware","followers_url":"https://api.github.com/users/woanware/followers","following_url":"https://api.github.com/users/woanware/following{/other_user}","gists_url":"https://api.github.com/users/woanware/gists{/gist_id}","starred_url":"https://api.github.com/users/woanware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woanware/subscriptions","organizations_url":"https://api.github.com/users/woanware/orgs","repos_url":"https://api.github.com/users/woanware/repos","events_url":"https://api.github.com/users/woanware/events{/privacy}","received_events_url":"https://api.github.com/users/woanware/received_events","type":"User","site_admin":false},"body":"The  new method can be used like so:\r\n\r\n    type JsonSettings struct {\r\n    \tSettings Settings `json:\"settings\"`\r\n    }\r\n\r\n    type Settings struct {\r\n\t    NumberOfShards   int `json:\"number_of_shards\"`\r\n\t    NumberOfReplicas int `json:\"number_of_replicas\"`\r\n    }\r\n\r\n    jsonSettings := JsonSettings{}\r\n    jsonSettings.Settings.NumberOfReplicas = 4\r\n    jsonSettings.Settings.NumberOfShards = 3\r\n\r\n    res, err := elastigoConnection.CreateIndexWithSettings(\"mynewindex\", jsonSettings)\r\n","created_at":"2014-09-25T08:43:28Z","updated_at":"2014-09-25T08:43:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mattbaird/elastigo/pulls/128/commits","review_comments_url":"https://api.github.com/repos/mattbaird/elastigo/pulls/128/comments","review_comment_url":"https://api.github.com/repos/mattbaird/elastigo/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mattbaird/elastigo/issues/128/comments","statuses_url":"https://api.github.com/repos/mattbaird/elastigo/statuses/fb80ea2448304694f5831a15a2ecd41ec335b8eb","head":{"label":"ctxis:master","ref":"master","sha":"fb80ea2448304694f5831a15a2ecd41ec335b8eb","user":{"login":"ctxis","id":4638567,"avatar_url":"https://avatars.githubusercontent.com/u/4638567?v=2","gravatar_id":"","url":"https://api.github.com/users/ctxis","html_url":"https://github.com/ctxis","followers_url":"https://api.github.com/users/ctxis/followers","following_url":"https://api.github.com/users/ctxis/following{/other_user}","gists_url":"https://api.github.com/users/ctxis/gists{/gist_id}","starred_url":"https://api.github.com/users/ctxis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctxis/subscriptions","organizations_url":"https://api.github.com/users/ctxis/orgs","repos_url":"https://api.github.com/users/ctxis/repos","events_url":"https://api.github.com/users/ctxis/events{/privacy}","received_events_url":"https://api.github.com/users/ctxis/received_events","type":"Organization","site_admin":false},"repo":{"id":24446542,"name":"elastigo","full_name":"ctxis/elastigo","owner":{"login":"ctxis","id":4638567,"avatar_url":"https://avatars.githubusercontent.com/u/4638567?v=2","gravatar_id":"","url":"https://api.github.com/users/ctxis","html_url":"https://github.com/ctxis","followers_url":"https://api.github.com/users/ctxis/followers","following_url":"https://api.github.com/users/ctxis/following{/other_user}","gists_url":"https://api.github.com/users/ctxis/gists{/gist_id}","starred_url":"https://api.github.com/users/ctxis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctxis/subscriptions","organizations_url":"https://api.github.com/users/ctxis/orgs","repos_url":"https://api.github.com/users/ctxis/repos","events_url":"https://api.github.com/users/ctxis/events{/privacy}","received_events_url":"https://api.github.com/users/ctxis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ctxis/elastigo","description":"A Go (golang) based Elasticsearch client library.","fork":true,"url":"https://api.github.com/repos/ctxis/elastigo","forks_url":"https://api.github.com/repos/ctxis/elastigo/forks","keys_url":"https://api.github.com/repos/ctxis/elastigo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ctxis/elastigo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ctxis/elastigo/teams","hooks_url":"https://api.github.com/repos/ctxis/elastigo/hooks","issue_events_url":"https://api.github.com/repos/ctxis/elastigo/issues/events{/number}","events_url":"https://api.github.com/repos/ctxis/elastigo/events","assignees_url":"https://api.github.com/repos/ctxis/elastigo/assignees{/user}","branches_url":"https://api.github.com/repos/ctxis/elastigo/branches{/branch}","tags_url":"https://api.github.com/repos/ctxis/elastigo/tags","blobs_url":"https://api.github.com/repos/ctxis/elastigo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ctxis/elastigo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ctxis/elastigo/git/refs{/sha}","trees_url":"https://api.github.com/repos/ctxis/elastigo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ctxis/elastigo/statuses/{sha}","languages_url":"https://api.github.com/repos/ctxis/elastigo/languages","stargazers_url":"https://api.github.com/repos/ctxis/elastigo/stargazers","contributors_url":"https://api.github.com/repos/ctxis/elastigo/contributors","subscribers_url":"https://api.github.com/repos/ctxis/elastigo/subscribers","subscription_url":"https://api.github.com/repos/ctxis/elastigo/subscription","commits_url":"https://api.github.com/repos/ctxis/elastigo/commits{/sha}","git_commits_url":"https://api.github.com/repos/ctxis/elastigo/git/commits{/sha}","comments_url":"https://api.github.com/repos/ctxis/elastigo/comments{/number}","issue_comment_url":"https://api.github.com/repos/ctxis/elastigo/issues/comments/{number}","contents_url":"https://api.github.com/repos/ctxis/elastigo/contents/{+path}","compare_url":"https://api.github.com/repos/ctxis/elastigo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ctxis/elastigo/merges","archive_url":"https://api.github.com/repos/ctxis/elastigo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ctxis/elastigo/downloads","issues_url":"https://api.github.com/repos/ctxis/elastigo/issues{/number}","pulls_url":"https://api.github.com/repos/ctxis/elastigo/pulls{/number}","milestones_url":"https://api.github.com/repos/ctxis/elastigo/milestones{/number}","notifications_url":"https://api.github.com/repos/ctxis/elastigo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ctxis/elastigo/labels{/name}","releases_url":"https://api.github.com/repos/ctxis/elastigo/releases{/id}","created_at":"2014-09-25T06:36:13Z","updated_at":"2014-09-25T08:40:34Z","pushed_at":"2014-09-25T08:40:34Z","git_url":"git://github.com/ctxis/elastigo.git","ssh_url":"git@github.com:ctxis/elastigo.git","clone_url":"https://github.com/ctxis/elastigo.git","svn_url":"https://github.com/ctxis/elastigo","homepage":"","size":4396,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"mattbaird:master","ref":"master","sha":"4b32a03ddfc6b2d36a9e57c309f96aac24e97af7","user":{"login":"mattbaird","id":989763,"avatar_url":"https://avatars.githubusercontent.com/u/989763?v=2","gravatar_id":"","url":"https://api.github.com/users/mattbaird","html_url":"https://github.com/mattbaird","followers_url":"https://api.github.com/users/mattbaird/followers","following_url":"https://api.github.com/users/mattbaird/following{/other_user}","gists_url":"https://api.github.com/users/mattbaird/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbaird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbaird/subscriptions","organizations_url":"https://api.github.com/users/mattbaird/orgs","repos_url":"https://api.github.com/users/mattbaird/repos","events_url":"https://api.github.com/users/mattbaird/events{/privacy}","received_events_url":"https://api.github.com/users/mattbaird/received_events","type":"User","site_admin":false},"repo":{"id":6185208,"name":"elastigo","full_name":"mattbaird/elastigo","owner":{"login":"mattbaird","id":989763,"avatar_url":"https://avatars.githubusercontent.com/u/989763?v=2","gravatar_id":"","url":"https://api.github.com/users/mattbaird","html_url":"https://github.com/mattbaird","followers_url":"https://api.github.com/users/mattbaird/followers","following_url":"https://api.github.com/users/mattbaird/following{/other_user}","gists_url":"https://api.github.com/users/mattbaird/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbaird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbaird/subscriptions","organizations_url":"https://api.github.com/users/mattbaird/orgs","repos_url":"https://api.github.com/users/mattbaird/repos","events_url":"https://api.github.com/users/mattbaird/events{/privacy}","received_events_url":"https://api.github.com/users/mattbaird/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattbaird/elastigo","description":"A Go (golang) based Elasticsearch client library.","fork":false,"url":"https://api.github.com/repos/mattbaird/elastigo","forks_url":"https://api.github.com/repos/mattbaird/elastigo/forks","keys_url":"https://api.github.com/repos/mattbaird/elastigo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattbaird/elastigo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattbaird/elastigo/teams","hooks_url":"https://api.github.com/repos/mattbaird/elastigo/hooks","issue_events_url":"https://api.github.com/repos/mattbaird/elastigo/issues/events{/number}","events_url":"https://api.github.com/repos/mattbaird/elastigo/events","assignees_url":"https://api.github.com/repos/mattbaird/elastigo/assignees{/user}","branches_url":"https://api.github.com/repos/mattbaird/elastigo/branches{/branch}","tags_url":"https://api.github.com/repos/mattbaird/elastigo/tags","blobs_url":"https://api.github.com/repos/mattbaird/elastigo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattbaird/elastigo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattbaird/elastigo/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattbaird/elastigo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattbaird/elastigo/statuses/{sha}","languages_url":"https://api.github.com/repos/mattbaird/elastigo/languages","stargazers_url":"https://api.github.com/repos/mattbaird/elastigo/stargazers","contributors_url":"https://api.github.com/repos/mattbaird/elastigo/contributors","subscribers_url":"https://api.github.com/repos/mattbaird/elastigo/subscribers","subscription_url":"https://api.github.com/repos/mattbaird/elastigo/subscription","commits_url":"https://api.github.com/repos/mattbaird/elastigo/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattbaird/elastigo/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattbaird/elastigo/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattbaird/elastigo/issues/comments/{number}","contents_url":"https://api.github.com/repos/mattbaird/elastigo/contents/{+path}","compare_url":"https://api.github.com/repos/mattbaird/elastigo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattbaird/elastigo/merges","archive_url":"https://api.github.com/repos/mattbaird/elastigo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattbaird/elastigo/downloads","issues_url":"https://api.github.com/repos/mattbaird/elastigo/issues{/number}","pulls_url":"https://api.github.com/repos/mattbaird/elastigo/pulls{/number}","milestones_url":"https://api.github.com/repos/mattbaird/elastigo/milestones{/number}","notifications_url":"https://api.github.com/repos/mattbaird/elastigo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattbaird/elastigo/labels{/name}","releases_url":"https://api.github.com/repos/mattbaird/elastigo/releases{/id}","created_at":"2012-10-12T04:19:59Z","updated_at":"2014-09-24T02:50:17Z","pushed_at":"2014-09-17T17:11:34Z","git_url":"git://github.com/mattbaird/elastigo.git","ssh_url":"git@github.com:mattbaird/elastigo.git","clone_url":"https://github.com/mattbaird/elastigo.git","svn_url":"https://github.com/mattbaird/elastigo","homepage":"","size":4396,"stargazers_count":315,"watchers_count":315,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":89,"mirror_url":null,"open_issues_count":26,"forks":89,"open_issues":26,"watchers":315,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattbaird/elastigo/pulls/128"},"html":{"href":"https://github.com/mattbaird/elastigo/pull/128"},"issue":{"href":"https://api.github.com/repos/mattbaird/elastigo/issues/128"},"comments":{"href":"https://api.github.com/repos/mattbaird/elastigo/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/mattbaird/elastigo/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/mattbaird/elastigo/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mattbaird/elastigo/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/mattbaird/elastigo/statuses/fb80ea2448304694f5831a15a2ecd41ec335b8eb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":36,"deletions":0,"changed_files":1}}