{"action":"created","comment":{"url":"https://api.github.com/repos/beproud/beproudbot/pulls/comments/198337326","pull_request_review_id":132250846,"id":198337326,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODMzNzMyNg==","diff_hunk":"@@ -0,0 +1,28 @@\n+from redminelib import Redmine\n+from db import Session\n+\n+from haro.plugins.redmine_models import ProjectChannel\n+\n+from slackbot_settings import REDMINE_URL\n+from slackbot_settings import API_KEY\n+\n+def get_ticket_information():\n+    redmine = Redmine(REDMINE_URL, key=API_KEY)\n+    # すべてのチケットを取得\n+    issues = redmine.issue.all(sort='subject:desc')\n+    s = Session()\n+    for issue in issues:","path":"src/redmine_notification.py","position":14,"original_position":14,"commit_id":"27f75d482ff01bb807f7f2ad0d294ccecc057a5c","original_commit_id":"27f75d482ff01bb807f7f2ad0d294ccecc057a5c","user":{"login":"takanory","id":988241,"node_id":"MDQ6VXNlcjk4ODI0MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/988241?v=4","gravatar_id":"","url":"https://api.github.com/users/takanory","html_url":"https://github.com/takanory","followers_url":"https://api.github.com/users/takanory/followers","following_url":"https://api.github.com/users/takanory/following{/other_user}","gists_url":"https://api.github.com/users/takanory/gists{/gist_id}","starred_url":"https://api.github.com/users/takanory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takanory/subscriptions","organizations_url":"https://api.github.com/users/takanory/orgs","repos_url":"https://api.github.com/users/takanory/repos","events_url":"https://api.github.com/users/takanory/events{/privacy}","received_events_url":"https://api.github.com/users/takanory/received_events","type":"User","site_admin":false},"body":"重要: 全体として dai.k がどういう風に実装しようとしているかこのコードだけではわかりません。\r\nコメントで「ここでXXXをする」というように、このプログラムの全体像を明らかにしてください(詳細設計相当)\r\n分岐とかループが必要だったら、以下のように書いたりしてダミーのコードにする\r\n\r\n```\r\nif True:  # ここでXXXXのみを処理する(といった説明)\r\n   # ここでYYYYする\r\n   pass\r\n```","created_at":"2018-06-27T00:40:02Z","updated_at":"2018-06-27T00:40:18Z","html_url":"https://github.com/beproud/beproudbot/pull/141#discussion_r198337326","pull_request_url":"https://api.github.com/repos/beproud/beproudbot/pulls/141","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/beproud/beproudbot/pulls/comments/198337326"},"html":{"href":"https://github.com/beproud/beproudbot/pull/141#discussion_r198337326"},"pull_request":{"href":"https://api.github.com/repos/beproud/beproudbot/pulls/141"}}},"pull_request":{"url":"https://api.github.com/repos/beproud/beproudbot/pulls/141","id":197582983,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3NTgyOTgz","html_url":"https://github.com/beproud/beproudbot/pull/141","diff_url":"https://github.com/beproud/beproudbot/pull/141.diff","patch_url":"https://github.com/beproud/beproudbot/pull/141.patch","issue_url":"https://api.github.com/repos/beproud/beproudbot/issues/141","number":141,"state":"open","locked":false,"title":"[WIP]redmineの期限切れタスクを定期通知","user":{"login":"daikikuchi","id":25555600,"node_id":"MDQ6VXNlcjI1NTU1NjAw","avatar_url":"https://avatars0.githubusercontent.com/u/25555600?v=4","gravatar_id":"","url":"https://api.github.com/users/daikikuchi","html_url":"https://github.com/daikikuchi","followers_url":"https://api.github.com/users/daikikuchi/followers","following_url":"https://api.github.com/users/daikikuchi/following{/other_user}","gists_url":"https://api.github.com/users/daikikuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/daikikuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daikikuchi/subscriptions","organizations_url":"https://api.github.com/users/daikikuchi/orgs","repos_url":"https://api.github.com/users/daikikuchi/repos","events_url":"https://api.github.com/users/daikikuchi/events{/privacy}","received_events_url":"https://api.github.com/users/daikikuchi/received_events","type":"User","site_admin":false},"body":"Redmineチケット情報取得のfunction作成\r\n\r\nチケットURL\r\n\r\n- #137 \r\n\r\nこのレビューで確認してほしい点\r\n\r\n- [ ] 実装の方向性は適切か？\r\n- [ ] redmineからチケットを獲得する方法は正しいか？\r\n\r\n\r\n","created_at":"2018-06-26T23:59:17Z","updated_at":"2018-06-27T00:40:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5243890c5d524161fef1425e325fa3a453fc0f9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/beproud/beproudbot/pulls/141/commits","review_comments_url":"https://api.github.com/repos/beproud/beproudbot/pulls/141/comments","review_comment_url":"https://api.github.com/repos/beproud/beproudbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/beproud/beproudbot/issues/141/comments","statuses_url":"https://api.github.com/repos/beproud/beproudbot/statuses/27f75d482ff01bb807f7f2ad0d294ccecc057a5c","head":{"label":"beproud:t137-redmine_notification","ref":"t137-redmine_notification","sha":"27f75d482ff01bb807f7f2ad0d294ccecc057a5c","user":{"login":"beproud","id":643795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0Mzc5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/643795?v=4","gravatar_id":"","url":"https://api.github.com/users/beproud","html_url":"https://github.com/beproud","followers_url":"https://api.github.com/users/beproud/followers","following_url":"https://api.github.com/users/beproud/following{/other_user}","gists_url":"https://api.github.com/users/beproud/gists{/gist_id}","starred_url":"https://api.github.com/users/beproud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beproud/subscriptions","organizations_url":"https://api.github.com/users/beproud/orgs","repos_url":"https://api.github.com/users/beproud/repos","events_url":"https://api.github.com/users/beproud/events{/privacy}","received_events_url":"https://api.github.com/users/beproud/received_events","type":"Organization","site_admin":false},"repo":{"id":71103212,"node_id":"MDEwOlJlcG9zaXRvcnk3MTEwMzIxMg==","name":"beproudbot","full_name":"beproud/beproudbot","owner":{"login":"beproud","id":643795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0Mzc5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/643795?v=4","gravatar_id":"","url":"https://api.github.com/users/beproud","html_url":"https://github.com/beproud","followers_url":"https://api.github.com/users/beproud/followers","following_url":"https://api.github.com/users/beproud/following{/other_user}","gists_url":"https://api.github.com/users/beproud/gists{/gist_id}","starred_url":"https://api.github.com/users/beproud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beproud/subscriptions","organizations_url":"https://api.github.com/users/beproud/orgs","repos_url":"https://api.github.com/users/beproud/repos","events_url":"https://api.github.com/users/beproud/events{/privacy}","received_events_url":"https://api.github.com/users/beproud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/beproud/beproudbot","description":"beproud bot system","fork":false,"url":"https://api.github.com/repos/beproud/beproudbot","forks_url":"https://api.github.com/repos/beproud/beproudbot/forks","keys_url":"https://api.github.com/repos/beproud/beproudbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beproud/beproudbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beproud/beproudbot/teams","hooks_url":"https://api.github.com/repos/beproud/beproudbot/hooks","issue_events_url":"https://api.github.com/repos/beproud/beproudbot/issues/events{/number}","events_url":"https://api.github.com/repos/beproud/beproudbot/events","assignees_url":"https://api.github.com/repos/beproud/beproudbot/assignees{/user}","branches_url":"https://api.github.com/repos/beproud/beproudbot/branches{/branch}","tags_url":"https://api.github.com/repos/beproud/beproudbot/tags","blobs_url":"https://api.github.com/repos/beproud/beproudbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beproud/beproudbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beproud/beproudbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/beproud/beproudbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beproud/beproudbot/statuses/{sha}","languages_url":"https://api.github.com/repos/beproud/beproudbot/languages","stargazers_url":"https://api.github.com/repos/beproud/beproudbot/stargazers","contributors_url":"https://api.github.com/repos/beproud/beproudbot/contributors","subscribers_url":"https://api.github.com/repos/beproud/beproudbot/subscribers","subscription_url":"https://api.github.com/repos/beproud/beproudbot/subscription","commits_url":"https://api.github.com/repos/beproud/beproudbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/beproud/beproudbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/beproud/beproudbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/beproud/beproudbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/beproud/beproudbot/contents/{+path}","compare_url":"https://api.github.com/repos/beproud/beproudbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beproud/beproudbot/merges","archive_url":"https://api.github.com/repos/beproud/beproudbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beproud/beproudbot/downloads","issues_url":"https://api.github.com/repos/beproud/beproudbot/issues{/number}","pulls_url":"https://api.github.com/repos/beproud/beproudbot/pulls{/number}","milestones_url":"https://api.github.com/repos/beproud/beproudbot/milestones{/number}","notifications_url":"https://api.github.com/repos/beproud/beproudbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beproud/beproudbot/labels{/name}","releases_url":"https://api.github.com/repos/beproud/beproudbot/releases{/id}","deployments_url":"https://api.github.com/repos/beproud/beproudbot/deployments","created_at":"2016-10-17T05:35:24Z","updated_at":"2018-06-19T00:18:46Z","pushed_at":"2018-06-27T00:13:37Z","git_url":"git://github.com/beproud/beproudbot.git","ssh_url":"git@github.com:beproud/beproudbot.git","clone_url":"https://github.com/beproud/beproudbot.git","svn_url":"https://github.com/beproud/beproudbot","homepage":"http://www.beproud.jp/","size":7127,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":26,"watchers":6,"default_branch":"master"}},"base":{"label":"beproud:master","ref":"master","sha":"51b35e4a670fe807df672674ebacc81432ddc39b","user":{"login":"beproud","id":643795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0Mzc5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/643795?v=4","gravatar_id":"","url":"https://api.github.com/users/beproud","html_url":"https://github.com/beproud","followers_url":"https://api.github.com/users/beproud/followers","following_url":"https://api.github.com/users/beproud/following{/other_user}","gists_url":"https://api.github.com/users/beproud/gists{/gist_id}","starred_url":"https://api.github.com/users/beproud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beproud/subscriptions","organizations_url":"https://api.github.com/users/beproud/orgs","repos_url":"https://api.github.com/users/beproud/repos","events_url":"https://api.github.com/users/beproud/events{/privacy}","received_events_url":"https://api.github.com/users/beproud/received_events","type":"Organization","site_admin":false},"repo":{"id":71103212,"node_id":"MDEwOlJlcG9zaXRvcnk3MTEwMzIxMg==","name":"beproudbot","full_name":"beproud/beproudbot","owner":{"login":"beproud","id":643795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0Mzc5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/643795?v=4","gravatar_id":"","url":"https://api.github.com/users/beproud","html_url":"https://github.com/beproud","followers_url":"https://api.github.com/users/beproud/followers","following_url":"https://api.github.com/users/beproud/following{/other_user}","gists_url":"https://api.github.com/users/beproud/gists{/gist_id}","starred_url":"https://api.github.com/users/beproud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beproud/subscriptions","organizations_url":"https://api.github.com/users/beproud/orgs","repos_url":"https://api.github.com/users/beproud/repos","events_url":"https://api.github.com/users/beproud/events{/privacy}","received_events_url":"https://api.github.com/users/beproud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/beproud/beproudbot","description":"beproud bot system","fork":false,"url":"https://api.github.com/repos/beproud/beproudbot","forks_url":"https://api.github.com/repos/beproud/beproudbot/forks","keys_url":"https://api.github.com/repos/beproud/beproudbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beproud/beproudbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beproud/beproudbot/teams","hooks_url":"https://api.github.com/repos/beproud/beproudbot/hooks","issue_events_url":"https://api.github.com/repos/beproud/beproudbot/issues/events{/number}","events_url":"https://api.github.com/repos/beproud/beproudbot/events","assignees_url":"https://api.github.com/repos/beproud/beproudbot/assignees{/user}","branches_url":"https://api.github.com/repos/beproud/beproudbot/branches{/branch}","tags_url":"https://api.github.com/repos/beproud/beproudbot/tags","blobs_url":"https://api.github.com/repos/beproud/beproudbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beproud/beproudbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beproud/beproudbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/beproud/beproudbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beproud/beproudbot/statuses/{sha}","languages_url":"https://api.github.com/repos/beproud/beproudbot/languages","stargazers_url":"https://api.github.com/repos/beproud/beproudbot/stargazers","contributors_url":"https://api.github.com/repos/beproud/beproudbot/contributors","subscribers_url":"https://api.github.com/repos/beproud/beproudbot/subscribers","subscription_url":"https://api.github.com/repos/beproud/beproudbot/subscription","commits_url":"https://api.github.com/repos/beproud/beproudbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/beproud/beproudbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/beproud/beproudbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/beproud/beproudbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/beproud/beproudbot/contents/{+path}","compare_url":"https://api.github.com/repos/beproud/beproudbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beproud/beproudbot/merges","archive_url":"https://api.github.com/repos/beproud/beproudbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beproud/beproudbot/downloads","issues_url":"https://api.github.com/repos/beproud/beproudbot/issues{/number}","pulls_url":"https://api.github.com/repos/beproud/beproudbot/pulls{/number}","milestones_url":"https://api.github.com/repos/beproud/beproudbot/milestones{/number}","notifications_url":"https://api.github.com/repos/beproud/beproudbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beproud/beproudbot/labels{/name}","releases_url":"https://api.github.com/repos/beproud/beproudbot/releases{/id}","deployments_url":"https://api.github.com/repos/beproud/beproudbot/deployments","created_at":"2016-10-17T05:35:24Z","updated_at":"2018-06-19T00:18:46Z","pushed_at":"2018-06-27T00:13:37Z","git_url":"git://github.com/beproud/beproudbot.git","ssh_url":"git@github.com:beproud/beproudbot.git","clone_url":"https://github.com/beproud/beproudbot.git","svn_url":"https://github.com/beproud/beproudbot","homepage":"http://www.beproud.jp/","size":7127,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":26,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/beproud/beproudbot/pulls/141"},"html":{"href":"https://github.com/beproud/beproudbot/pull/141"},"issue":{"href":"https://api.github.com/repos/beproud/beproudbot/issues/141"},"comments":{"href":"https://api.github.com/repos/beproud/beproudbot/issues/141/comments"},"review_comments":{"href":"https://api.github.com/repos/beproud/beproudbot/pulls/141/comments"},"review_comment":{"href":"https://api.github.com/repos/beproud/beproudbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/beproud/beproudbot/pulls/141/commits"},"statuses":{"href":"https://api.github.com/repos/beproud/beproudbot/statuses/27f75d482ff01bb807f7f2ad0d294ccecc057a5c"}},"author_association":"NONE"}}
{"actor":{"display_login":"takanory"}}