{"action":"created","comment":{"url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/comments/44245698","id":44245698,"diff_hunk":"@@ -0,0 +1,217 @@\n+# -*- coding: utf-8 -*-\n+\n+import urllib\n+import urllib2\n+import json\n+\n+class Identity(object):\n+    u'''\n+    識別子\n+    '''\n+    def __init__(self, value):\n+        self.value = value\n+    def __eq__(self, other):\n+        return self.value == other.value\n+    def __ne__(self, other):\n+        return self.value != other.value\n+\n+################################################################################\n+###                          classes for chatwork                            ###\n+################################################################################\n+\n+class ChatworkApiToken(object):\n+    u'''\n+    '''\n+    def __init__(self, value):\n+        u'''\n+        :param value:\n+        :rtype : ChatworkApiToken\n+        '''\n+        self.value = value\n+\n+class ChatworkRoom(object):\n+    u'''\n+    chatworkの部屋\n+    id: 部屋のID\n+    '''\n+    def __init__(self, roomId):\n+        u'''\n+        :param roomId:\n+        :rtype : ChatworkRoom\n+        '''\n+        self.id = roomId\n+\n+class ChatworkMessageId(Identity):","path":"chatwork.py","position":44,"original_position":44,"commit_id":"a2e89a58cadfb94bbb0dd4fb291f31fe28f1003f","original_commit_id":"a2e89a58cadfb94bbb0dd4fb291f31fe28f1003f","user":{"login":"uzzu","id":440251,"avatar_url":"https://avatars.githubusercontent.com/u/440251?v=3","gravatar_id":"","url":"https://api.github.com/users/uzzu","html_url":"https://github.com/uzzu","followers_url":"https://api.github.com/users/uzzu/followers","following_url":"https://api.github.com/users/uzzu/following{/other_user}","gists_url":"https://api.github.com/users/uzzu/gists{/gist_id}","starred_url":"https://api.github.com/users/uzzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzzu/subscriptions","organizations_url":"https://api.github.com/users/uzzu/orgs","repos_url":"https://api.github.com/users/uzzu/repos","events_url":"https://api.github.com/users/uzzu/events{/privacy}","received_events_url":"https://api.github.com/users/uzzu/received_events","type":"User","site_admin":false},"body":"@kakkun61 rename ``ChatworkMessageId`` to ``MessageId``","created_at":"2015-11-09T07:03:14Z","updated_at":"2015-11-09T07:03:14Z","html_url":"https://github.com/uzzu/jenkins-notify-chatworkbot/pull/5#discussion_r44245698","pull_request_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/comments/44245698"},"html":{"href":"https://github.com/uzzu/jenkins-notify-chatworkbot/pull/5#discussion_r44245698"},"pull_request":{"href":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/5","id":43862735,"html_url":"https://github.com/uzzu/jenkins-notify-chatworkbot/pull/5","diff_url":"https://github.com/uzzu/jenkins-notify-chatworkbot/pull/5.diff","patch_url":"https://github.com/uzzu/jenkins-notify-chatworkbot/pull/5.patch","issue_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/issues/5","number":5,"state":"open","locked":false,"title":"Command line interface to post message simply","user":{"login":"kakkun61","id":282593,"avatar_url":"https://avatars.githubusercontent.com/u/282593?v=3","gravatar_id":"","url":"https://api.github.com/users/kakkun61","html_url":"https://github.com/kakkun61","followers_url":"https://api.github.com/users/kakkun61/followers","following_url":"https://api.github.com/users/kakkun61/following{/other_user}","gists_url":"https://api.github.com/users/kakkun61/gists{/gist_id}","starred_url":"https://api.github.com/users/kakkun61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kakkun61/subscriptions","organizations_url":"https://api.github.com/users/kakkun61/orgs","repos_url":"https://api.github.com/users/kakkun61/repos","events_url":"https://api.github.com/users/kakkun61/events{/privacy}","received_events_url":"https://api.github.com/users/kakkun61/received_events","type":"User","site_admin":false},"body":"# New features:\r\n\r\n- You can call `cw-send-message.py api-token room-id message` on command line.\r\n- To get `chatwork` module independent.\r\n\r\n# Questions:\r\n\r\n- `cw-send-message.py` is not for jenkins-notify-chatworkbot. It may be a problem a little.\r\n- To make `chatwork` module runnable is one idea. Which is better, current implementation or this?","created_at":"2015-09-01T11:03:40Z","updated_at":"2015-11-09T07:03:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38cd3e04cec1cd2871652997ed3fbaab5496ec80","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/5/commits","review_comments_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/5/comments","review_comment_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/issues/5/comments","statuses_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/statuses/a2e89a58cadfb94bbb0dd4fb291f31fe28f1003f","head":{"label":"kakkun61:feature/cli","ref":"feature/cli","sha":"a2e89a58cadfb94bbb0dd4fb291f31fe28f1003f","user":{"login":"kakkun61","id":282593,"avatar_url":"https://avatars.githubusercontent.com/u/282593?v=3","gravatar_id":"","url":"https://api.github.com/users/kakkun61","html_url":"https://github.com/kakkun61","followers_url":"https://api.github.com/users/kakkun61/followers","following_url":"https://api.github.com/users/kakkun61/following{/other_user}","gists_url":"https://api.github.com/users/kakkun61/gists{/gist_id}","starred_url":"https://api.github.com/users/kakkun61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kakkun61/subscriptions","organizations_url":"https://api.github.com/users/kakkun61/orgs","repos_url":"https://api.github.com/users/kakkun61/repos","events_url":"https://api.github.com/users/kakkun61/events{/privacy}","received_events_url":"https://api.github.com/users/kakkun61/received_events","type":"User","site_admin":false},"repo":{"id":41655681,"name":"jenkins-notify-chatworkbot","full_name":"kakkun61/jenkins-notify-chatworkbot","owner":{"login":"kakkun61","id":282593,"avatar_url":"https://avatars.githubusercontent.com/u/282593?v=3","gravatar_id":"","url":"https://api.github.com/users/kakkun61","html_url":"https://github.com/kakkun61","followers_url":"https://api.github.com/users/kakkun61/followers","following_url":"https://api.github.com/users/kakkun61/following{/other_user}","gists_url":"https://api.github.com/users/kakkun61/gists{/gist_id}","starred_url":"https://api.github.com/users/kakkun61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kakkun61/subscriptions","organizations_url":"https://api.github.com/users/kakkun61/orgs","repos_url":"https://api.github.com/users/kakkun61/repos","events_url":"https://api.github.com/users/kakkun61/events{/privacy}","received_events_url":"https://api.github.com/users/kakkun61/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kakkun61/jenkins-notify-chatworkbot","description":"The bot which notifies information of jenkins's build to chatwork","fork":true,"url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot","forks_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/forks","keys_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/teams","hooks_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/hooks","issue_events_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/issues/events{/number}","events_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/events","assignees_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/assignees{/user}","branches_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/branches{/branch}","tags_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/tags","blobs_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/statuses/{sha}","languages_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/languages","stargazers_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/stargazers","contributors_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/contributors","subscribers_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/subscribers","subscription_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/subscription","commits_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/contents/{+path}","compare_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/merges","archive_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/downloads","issues_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/issues{/number}","pulls_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/pulls{/number}","milestones_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/milestones{/number}","notifications_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/labels{/name}","releases_url":"https://api.github.com/repos/kakkun61/jenkins-notify-chatworkbot/releases{/id}","created_at":"2015-08-31T04:24:25Z","updated_at":"2015-08-31T04:24:25Z","pushed_at":"2015-09-15T14:30:19Z","git_url":"git://github.com/kakkun61/jenkins-notify-chatworkbot.git","ssh_url":"git@github.com:kakkun61/jenkins-notify-chatworkbot.git","clone_url":"https://github.com/kakkun61/jenkins-notify-chatworkbot.git","svn_url":"https://github.com/kakkun61/jenkins-notify-chatworkbot","homepage":null,"size":121,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"uzzu:master","ref":"master","sha":"da4cc361d901588d2153c685570e00f31112d2a1","user":{"login":"uzzu","id":440251,"avatar_url":"https://avatars.githubusercontent.com/u/440251?v=3","gravatar_id":"","url":"https://api.github.com/users/uzzu","html_url":"https://github.com/uzzu","followers_url":"https://api.github.com/users/uzzu/followers","following_url":"https://api.github.com/users/uzzu/following{/other_user}","gists_url":"https://api.github.com/users/uzzu/gists{/gist_id}","starred_url":"https://api.github.com/users/uzzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzzu/subscriptions","organizations_url":"https://api.github.com/users/uzzu/orgs","repos_url":"https://api.github.com/users/uzzu/repos","events_url":"https://api.github.com/users/uzzu/events{/privacy}","received_events_url":"https://api.github.com/users/uzzu/received_events","type":"User","site_admin":false},"repo":{"id":15007167,"name":"jenkins-notify-chatworkbot","full_name":"uzzu/jenkins-notify-chatworkbot","owner":{"login":"uzzu","id":440251,"avatar_url":"https://avatars.githubusercontent.com/u/440251?v=3","gravatar_id":"","url":"https://api.github.com/users/uzzu","html_url":"https://github.com/uzzu","followers_url":"https://api.github.com/users/uzzu/followers","following_url":"https://api.github.com/users/uzzu/following{/other_user}","gists_url":"https://api.github.com/users/uzzu/gists{/gist_id}","starred_url":"https://api.github.com/users/uzzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzzu/subscriptions","organizations_url":"https://api.github.com/users/uzzu/orgs","repos_url":"https://api.github.com/users/uzzu/repos","events_url":"https://api.github.com/users/uzzu/events{/privacy}","received_events_url":"https://api.github.com/users/uzzu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/uzzu/jenkins-notify-chatworkbot","description":"The bot which notifies information of jenkins's build to chatwork","fork":false,"url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot","forks_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/forks","keys_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/teams","hooks_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/hooks","issue_events_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/issues/events{/number}","events_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/events","assignees_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/assignees{/user}","branches_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/branches{/branch}","tags_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/tags","blobs_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/statuses/{sha}","languages_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/languages","stargazers_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/stargazers","contributors_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/contributors","subscribers_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/subscribers","subscription_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/subscription","commits_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/contents/{+path}","compare_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/merges","archive_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/downloads","issues_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/issues{/number}","pulls_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls{/number}","milestones_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/milestones{/number}","notifications_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/labels{/name}","releases_url":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/releases{/id}","created_at":"2013-12-07T14:45:13Z","updated_at":"2014-07-17T03:38:55Z","pushed_at":"2015-09-15T14:30:19Z","git_url":"git://github.com/uzzu/jenkins-notify-chatworkbot.git","ssh_url":"git@github.com:uzzu/jenkins-notify-chatworkbot.git","clone_url":"https://github.com/uzzu/jenkins-notify-chatworkbot.git","svn_url":"https://github.com/uzzu/jenkins-notify-chatworkbot","homepage":null,"size":217,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/5"},"html":{"href":"https://github.com/uzzu/jenkins-notify-chatworkbot/pull/5"},"issue":{"href":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/issues/5"},"comments":{"href":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/uzzu/jenkins-notify-chatworkbot/statuses/a2e89a58cadfb94bbb0dd4fb291f31fe28f1003f"}}}}