{"action":"created","comment":{"url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/comments/65831031","id":65831031,"diff_hunk":"@@ -0,0 +1,53 @@\n+package main\n+\n+import (\n+\t\"database/sql\"\n+\t\"flag\"\n+\t\"fmt\"\n+\t_ \"github.com/go-sql-driver/mysql\"\n+\n+\tconfig \"finc_monitorings/config\"\n+)\n+\n+func main() {\n+\tflag.Parse()\n+\tif flag.Arg(0) == \"\" || flag.Arg(0) == \"test\" {\n+\t\tfor _, target := range config.RecordTargets() {\n+\t\t\tcheck(target, flag.Arg(0))\n+\t\t}\n+\t} else {\n+\t\tfmt.Println(\"Invalid Argument\", flag.Arg(0))\n+\t}\n+}\n+\n+func check(target config.RecordConfig, opt string) {","path":"scripts/watch/check_records.go","position":23,"original_position":23,"commit_id":"7a492776f6e358a2d390fed496daef0dddbcd0c7","original_commit_id":"7a492776f6e358a2d390fed496daef0dddbcd0c7","user":{"login":"nobuhikosawai","id":3371732,"avatar_url":"https://avatars.githubusercontent.com/u/3371732?v=3","gravatar_id":"","url":"https://api.github.com/users/nobuhikosawai","html_url":"https://github.com/nobuhikosawai","followers_url":"https://api.github.com/users/nobuhikosawai/followers","following_url":"https://api.github.com/users/nobuhikosawai/following{/other_user}","gists_url":"https://api.github.com/users/nobuhikosawai/gists{/gist_id}","starred_url":"https://api.github.com/users/nobuhikosawai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nobuhikosawai/subscriptions","organizations_url":"https://api.github.com/users/nobuhikosawai/orgs","repos_url":"https://api.github.com/users/nobuhikosawai/repos","events_url":"https://api.github.com/users/nobuhikosawai/events{/privacy}","received_events_url":"https://api.github.com/users/nobuhikosawai/received_events","type":"User","site_admin":false},"body":"申し訳ありません。他コード参照して、slack出力用に設定されていたのをそのまま書いてしまいました。\r\n現在slackと接続していないので、削除します。","created_at":"2016-06-06T02:04:04Z","updated_at":"2016-06-06T02:04:04Z","html_url":"https://github.com/FiNCDeveloper/finc_monitorings/pull/1#discussion_r65831031","pull_request_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/comments/65831031"},"html":{"href":"https://github.com/FiNCDeveloper/finc_monitorings/pull/1#discussion_r65831031"},"pull_request":{"href":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/1","id":72646979,"html_url":"https://github.com/FiNCDeveloper/finc_monitorings/pull/1","diff_url":"https://github.com/FiNCDeveloper/finc_monitorings/pull/1.diff","patch_url":"https://github.com/FiNCDeveloper/finc_monitorings/pull/1.patch","issue_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/issues/1","number":1,"state":"open","locked":false,"title":"[WIP] DB内テーブルのレコード数を数えるスクリプトを追加","user":{"login":"nobuhikosawai","id":3371732,"avatar_url":"https://avatars.githubusercontent.com/u/3371732?v=3","gravatar_id":"","url":"https://api.github.com/users/nobuhikosawai","html_url":"https://github.com/nobuhikosawai","followers_url":"https://api.github.com/users/nobuhikosawai/followers","following_url":"https://api.github.com/users/nobuhikosawai/following{/other_user}","gists_url":"https://api.github.com/users/nobuhikosawai/gists{/gist_id}","starred_url":"https://api.github.com/users/nobuhikosawai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nobuhikosawai/subscriptions","organizations_url":"https://api.github.com/users/nobuhikosawai/orgs","repos_url":"https://api.github.com/users/nobuhikosawai/repos","events_url":"https://api.github.com/users/nobuhikosawai/events{/privacy}","received_events_url":"https://api.github.com/users/nobuhikosawai/received_events","type":"User","site_admin":false},"body":"## 概要\r\nDB内テーブルのレコード数を数えるスクリプトを追加","created_at":"2016-06-06T01:25:39Z","updated_at":"2016-06-06T02:04:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71b3a19d0523e7f3ea2c24577fcc1c0f837e8ddf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/1/commits","review_comments_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/1/comments","review_comment_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/issues/1/comments","statuses_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/statuses/7a492776f6e358a2d390fed496daef0dddbcd0c7","head":{"label":"FiNCDeveloper:nobuhikosawai/count_table_rows","ref":"nobuhikosawai/count_table_rows","sha":"7a492776f6e358a2d390fed496daef0dddbcd0c7","user":{"login":"FiNCDeveloper","id":10471529,"avatar_url":"https://avatars.githubusercontent.com/u/10471529?v=3","gravatar_id":"","url":"https://api.github.com/users/FiNCDeveloper","html_url":"https://github.com/FiNCDeveloper","followers_url":"https://api.github.com/users/FiNCDeveloper/followers","following_url":"https://api.github.com/users/FiNCDeveloper/following{/other_user}","gists_url":"https://api.github.com/users/FiNCDeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/FiNCDeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FiNCDeveloper/subscriptions","organizations_url":"https://api.github.com/users/FiNCDeveloper/orgs","repos_url":"https://api.github.com/users/FiNCDeveloper/repos","events_url":"https://api.github.com/users/FiNCDeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/FiNCDeveloper/received_events","type":"Organization","site_admin":false},"repo":{"id":42725056,"name":"finc_monitorings","full_name":"FiNCDeveloper/finc_monitorings","owner":{"login":"FiNCDeveloper","id":10471529,"avatar_url":"https://avatars.githubusercontent.com/u/10471529?v=3","gravatar_id":"","url":"https://api.github.com/users/FiNCDeveloper","html_url":"https://github.com/FiNCDeveloper","followers_url":"https://api.github.com/users/FiNCDeveloper/followers","following_url":"https://api.github.com/users/FiNCDeveloper/following{/other_user}","gists_url":"https://api.github.com/users/FiNCDeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/FiNCDeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FiNCDeveloper/subscriptions","organizations_url":"https://api.github.com/users/FiNCDeveloper/orgs","repos_url":"https://api.github.com/users/FiNCDeveloper/repos","events_url":"https://api.github.com/users/FiNCDeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/FiNCDeveloper/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FiNCDeveloper/finc_monitorings","description":"monitoring scripts for finc applications","fork":false,"url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings","forks_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/forks","keys_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/teams","hooks_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/hooks","issue_events_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/issues/events{/number}","events_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/events","assignees_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/assignees{/user}","branches_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/branches{/branch}","tags_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/tags","blobs_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/git/refs{/sha}","trees_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/statuses/{sha}","languages_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/languages","stargazers_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/stargazers","contributors_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/contributors","subscribers_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/subscribers","subscription_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/subscription","commits_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/commits{/sha}","git_commits_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/git/commits{/sha}","comments_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/comments{/number}","issue_comment_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/issues/comments{/number}","contents_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/contents/{+path}","compare_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/merges","archive_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/downloads","issues_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/issues{/number}","pulls_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls{/number}","milestones_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/milestones{/number}","notifications_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/labels{/name}","releases_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/releases{/id}","deployments_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/deployments","created_at":"2015-09-18T13:51:40Z","updated_at":"2016-01-23T09:18:20Z","pushed_at":"2016-06-06T01:44:45Z","git_url":"git://github.com/FiNCDeveloper/finc_monitorings.git","ssh_url":"git@github.com:FiNCDeveloper/finc_monitorings.git","clone_url":"https://github.com/FiNCDeveloper/finc_monitorings.git","svn_url":"https://github.com/FiNCDeveloper/finc_monitorings","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"FiNCDeveloper:master","ref":"master","sha":"07d8a1841bf2dd53ac0291fcf93a3f76acf2107f","user":{"login":"FiNCDeveloper","id":10471529,"avatar_url":"https://avatars.githubusercontent.com/u/10471529?v=3","gravatar_id":"","url":"https://api.github.com/users/FiNCDeveloper","html_url":"https://github.com/FiNCDeveloper","followers_url":"https://api.github.com/users/FiNCDeveloper/followers","following_url":"https://api.github.com/users/FiNCDeveloper/following{/other_user}","gists_url":"https://api.github.com/users/FiNCDeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/FiNCDeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FiNCDeveloper/subscriptions","organizations_url":"https://api.github.com/users/FiNCDeveloper/orgs","repos_url":"https://api.github.com/users/FiNCDeveloper/repos","events_url":"https://api.github.com/users/FiNCDeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/FiNCDeveloper/received_events","type":"Organization","site_admin":false},"repo":{"id":42725056,"name":"finc_monitorings","full_name":"FiNCDeveloper/finc_monitorings","owner":{"login":"FiNCDeveloper","id":10471529,"avatar_url":"https://avatars.githubusercontent.com/u/10471529?v=3","gravatar_id":"","url":"https://api.github.com/users/FiNCDeveloper","html_url":"https://github.com/FiNCDeveloper","followers_url":"https://api.github.com/users/FiNCDeveloper/followers","following_url":"https://api.github.com/users/FiNCDeveloper/following{/other_user}","gists_url":"https://api.github.com/users/FiNCDeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/FiNCDeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FiNCDeveloper/subscriptions","organizations_url":"https://api.github.com/users/FiNCDeveloper/orgs","repos_url":"https://api.github.com/users/FiNCDeveloper/repos","events_url":"https://api.github.com/users/FiNCDeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/FiNCDeveloper/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FiNCDeveloper/finc_monitorings","description":"monitoring scripts for finc applications","fork":false,"url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings","forks_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/forks","keys_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/teams","hooks_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/hooks","issue_events_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/issues/events{/number}","events_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/events","assignees_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/assignees{/user}","branches_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/branches{/branch}","tags_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/tags","blobs_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/git/refs{/sha}","trees_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/statuses/{sha}","languages_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/languages","stargazers_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/stargazers","contributors_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/contributors","subscribers_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/subscribers","subscription_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/subscription","commits_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/commits{/sha}","git_commits_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/git/commits{/sha}","comments_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/comments{/number}","issue_comment_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/issues/comments{/number}","contents_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/contents/{+path}","compare_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/merges","archive_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/downloads","issues_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/issues{/number}","pulls_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls{/number}","milestones_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/milestones{/number}","notifications_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/labels{/name}","releases_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/releases{/id}","deployments_url":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/deployments","created_at":"2015-09-18T13:51:40Z","updated_at":"2016-01-23T09:18:20Z","pushed_at":"2016-06-06T01:44:45Z","git_url":"git://github.com/FiNCDeveloper/finc_monitorings.git","ssh_url":"git@github.com:FiNCDeveloper/finc_monitorings.git","clone_url":"https://github.com/FiNCDeveloper/finc_monitorings.git","svn_url":"https://github.com/FiNCDeveloper/finc_monitorings","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/1"},"html":{"href":"https://github.com/FiNCDeveloper/finc_monitorings/pull/1"},"issue":{"href":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/issues/1"},"comments":{"href":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/FiNCDeveloper/finc_monitorings/statuses/7a492776f6e358a2d390fed496daef0dddbcd0c7"}}}}
{"actor":{"display_login":"nobuhikosawai"}}