GitHub PullRequestReviewCommentEvent at 2014-03-31 02:44:26
Repository: sample
Actor: sakurapa
Payload: {"comment":{"url":"https://api.github.com/repos/kawaguchi0512/sample/pulls/comments/11102720","id":11102720,"diff_hunk":"@@ -0,0 +1,23 @@\n+<?php\n+class CouponModel extends Coupon\n+{\n+  private $dsn = 'mysql:host=localhost;dbname=testdrive';\n+  private $user = 'root';\n+  private $pass = 'pass';\n+\n+  // クーポンリスト取得\n+  public function selectCoupon()\n+  {\n+  \t// DB接続\n+  \ttry {\n+  \t    $pdo = new PDO($this->dsn, $this->user, $this->pass,\n+  \t\t\tarray(PDO::ATTR_EMULATE_PREPARES => false));\n+  \t    $pdo->query('SET NAMES UTF8');\n+  \t    $ret = $pdo->query('SELECT id, name FROM coupon ORDER BY public_ended DESC');\n+  \t    return $ret;\n+  \t} catch (PDOException $e) {\n+  \t\texit('データベース接続失敗。'.$e->getMessage());\n+  \t}\n+  }\n+}\n+?>","path":"testdrive/protected/models/CouponModel.php","position":23,"original_position":23,"commit_id":"4fd5422b3028e8ba816e9ba59d0d1a2a08ebd5fe","original_commit_id":"4fd5422b3028e8ba816e9ba59d0d1a2a08ebd5fe","user":{"login":"sakurapa","id":5018663,"avatar_url":"https://avatars.githubusercontent.com/u/5018663?","gravatar_id":"4ae63979f019d905e0dec977f9f42dd7","url":"https://api.github.com/users/sakurapa","html_url":"https://github.com/sakurapa","followers_url":"https://api.github.com/users/sakurapa/followers","following_url":"https://api.github.com/users/sakurapa/following{/other_user}","gists_url":"https://api.github.com/users/sakurapa/gists{/gist_id}","starred_url":"https://api.github.com/users/sakurapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakurapa/subscriptions","organizations_url":"https://api.github.com/users/sakurapa/orgs","repos_url":"https://api.github.com/users/sakurapa/repos","events_url":"https://api.github.com/users/sakurapa/events{/privacy}","received_events_url":"https://api.github.com/users/sakurapa/received_events","type":"User","site_admin":false},"body":"phpの閉じタグは消しときましょうか","created_at":"2014-03-31T02:44:26Z","updated_at":"2014-03-31T02:44:26Z","html_url":"https://github.com/kawaguchi0512/sample/pull/1#discussion_r11102720","pull_request_url":"https://api.github.com/repos/kawaguchi0512/sample/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/kawaguchi0512/sample/pulls/comments/11102720"},"html":{"href":"https://github.com/kawaguchi0512/sample/pull/1#discussion_r11102720"},"pull_request":{"href":"https://api.github.com/repos/kawaguchi0512/sample/pulls/1"}}}}