GitHub PullRequestReviewCommentEvent at 2014-05-24 00:34:36
Repository: my_webhook_server
Actor: raypereda
Payload: {"comment":{"url":"https://api.github.com/repos/3dna/my_webhook_server/pulls/comments/13023860","id":13023860,"diff_hunk":"@@ -0,0 +1,144 @@\n+package main\n+\n+import (\n+\t\"database/sql\"\n+\t\"encoding/json\"\n+\t\"fmt\"\n+\t\"io/ioutil\"\n+\t\"log\"\n+\t\"net/http\"\n+\t\"os\"\n+\t\"runtime\"\n+\t\"strings\"\n+\t_ \"code.google.com/p/go-sqlite/go1/sqlite3\"\n+)\n+\n+func httpPostHandler(w http.ResponseWriter, r *http.Request) {\n+\tif r.Method == \"POST\" {\n+\t\tbody, err := ioutil.ReadAll(r.Body)\n+\t\tif err != nil {\n+\t\t\treturn\n+\t\t}\n+\n+\t\tvar person_map map[string]interface{}\n+\n+\t\tif err := json.Unmarshal(body, &person_map); err != nil {\n+\t\t\tpanic(err)\n+\t\t}\n+\n+\t\tdatabase := Open()\n+\t\tdefer database.Close()\n+\n+\t\tfullname := fmt.Sprintf(\"%s %s\", person_map[\"first_name\"].(string), person_map[\"last_name\"].(string))\n+\n+\t\tp := Person{\n+\t\t\tid:      int(person_map[\"id\"].(float64)),\n+\t\t\tname:    fullname,\n+\t\t\temail:   person_map[\"email\"].(string),\n+\t\t\tupdates: 0}\n+\n+\t\tdatabase.Insert(p)\n+\t}","path":"go/my_app.go","position":41,"original_position":41,"commit_id":"ace38852d8c9590b08517d1c728c2886cbe80aa5","original_commit_id":"7a3f7b132e9e25c81010c30ebae18a160c19d66e","user":{"login":"raypereda","id":140913,"avatar_url":"https://avatars.githubusercontent.com/u/140913?","gravatar_id":"b23147a2541e1977e531bea943b69747","url":"https://api.github.com/users/raypereda","html_url":"https://github.com/raypereda","followers_url":"https://api.github.com/users/raypereda/followers","following_url":"https://api.github.com/users/raypereda/following{/other_user}","gists_url":"https://api.github.com/users/raypereda/gists{/gist_id}","starred_url":"https://api.github.com/users/raypereda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raypereda/subscriptions","organizations_url":"https://api.github.com/users/raypereda/orgs","repos_url":"https://api.github.com/users/raypereda/repos","events_url":"https://api.github.com/users/raypereda/events{/privacy}","received_events_url":"https://api.github.com/users/raypereda/received_events","type":"User","site_admin":false},"body":"addressed","created_at":"2014-05-24T00:34:36Z","updated_at":"2014-05-24T00:34:36Z","html_url":"https://github.com/3dna/my_webhook_server/pull/1#discussion_r13023860","pull_request_url":"https://api.github.com/repos/3dna/my_webhook_server/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/3dna/my_webhook_server/pulls/comments/13023860"},"html":{"href":"https://github.com/3dna/my_webhook_server/pull/1#discussion_r13023860"},"pull_request":{"href":"https://api.github.com/repos/3dna/my_webhook_server/pulls/1"}}}}