{"action":"created","comment":{"url":"https://api.github.com/repos/zulip/zulip/pulls/comments/72384630","id":72384630,"diff_hunk":"@@ -0,0 +1,72 @@\n+from __future__ import absolute_import\n+from typing import Any, Iterable, Dict, Optional, Set, Tuple\n+from six import text_type\n+\n+import requests\n+import sys\n+import inspect\n+from six.moves import urllib\n+\n+from zerver.models import get_outgoing_webhook_bot_profile, Realm\n+\n+from straight.plugin import load\n+\n+class OutgoingWebhookBotInterface(object):\n+    email = None # type: text_type\n+    full_name = None # type: text_type\n+\n+    def __init__(self):\n+        self.post_url = None # type: text_type\n+        self.service_api_key = None # type: text_type\n+\n+    def process_command(self, command):\n+        raise NotImplementedError()\n+\n+    def process_response(self, response_json):\n+        raise NotImplementedError()\n+\n+    def handle_failure(self, status_code, json_response):\n+        raise NotImplementedError()\n+\n+class OutgoingWebhookBot():","path":"zerver/lib/outgoing_webhook.py","position":31,"original_position":31,"commit_id":"c9a942d1d2972b4f02c39f8c3300d41d3c046b85","original_commit_id":"c9a942d1d2972b4f02c39f8c3300d41d3c046b85","user":{"login":"rahuldeve","id":4870175,"avatar_url":"https://avatars.githubusercontent.com/u/4870175?v=3","gravatar_id":"","url":"https://api.github.com/users/rahuldeve","html_url":"https://github.com/rahuldeve","followers_url":"https://api.github.com/users/rahuldeve/followers","following_url":"https://api.github.com/users/rahuldeve/following{/other_user}","gists_url":"https://api.github.com/users/rahuldeve/gists{/gist_id}","starred_url":"https://api.github.com/users/rahuldeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahuldeve/subscriptions","organizations_url":"https://api.github.com/users/rahuldeve/orgs","repos_url":"https://api.github.com/users/rahuldeve/repos","events_url":"https://api.github.com/users/rahuldeve/events{/privacy}","received_events_url":"https://api.github.com/users/rahuldeve/received_events","type":"User","site_admin":false},"body":"Ah yes. I wanted something like a dynamic inheritance but I was not sure I could do it in python. It seems you can totally do something like that!","created_at":"2016-07-27T06:00:22Z","updated_at":"2016-07-27T06:00:22Z","html_url":"https://github.com/zulip/zulip/pull/1393#discussion_r72384630","pull_request_url":"https://api.github.com/repos/zulip/zulip/pulls/1393","_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip/pulls/comments/72384630"},"html":{"href":"https://github.com/zulip/zulip/pull/1393#discussion_r72384630"},"pull_request":{"href":"https://api.github.com/repos/zulip/zulip/pulls/1393"}}},"pull_request":{"url":"https://api.github.com/repos/zulip/zulip/pulls/1393","id":78604745,"html_url":"https://github.com/zulip/zulip/pull/1393","diff_url":"https://github.com/zulip/zulip/pull/1393.diff","patch_url":"https://github.com/zulip/zulip/pull/1393.patch","issue_url":"https://api.github.com/repos/zulip/zulip/issues/1393","number":1393,"state":"open","locked":false,"title":"[WIP] Outgoing webhook","user":{"login":"rahuldeve","id":4870175,"avatar_url":"https://avatars.githubusercontent.com/u/4870175?v=3","gravatar_id":"","url":"https://api.github.com/users/rahuldeve","html_url":"https://github.com/rahuldeve","followers_url":"https://api.github.com/users/rahuldeve/followers","following_url":"https://api.github.com/users/rahuldeve/following{/other_user}","gists_url":"https://api.github.com/users/rahuldeve/gists{/gist_id}","starred_url":"https://api.github.com/users/rahuldeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahuldeve/subscriptions","organizations_url":"https://api.github.com/users/rahuldeve/orgs","repos_url":"https://api.github.com/users/rahuldeve/repos","events_url":"https://api.github.com/users/rahuldeve/events{/privacy}","received_events_url":"https://api.github.com/users/rahuldeve/received_events","type":"User","site_admin":false},"body":"@timabbott Here is the prototype for the outgoing webhook I made.","created_at":"2016-07-24T18:03:32Z","updated_at":"2016-07-27T06:00:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92681b77ebad05d8006aa4ada6c61d236833d49f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zulip/zulip/pulls/1393/commits","review_comments_url":"https://api.github.com/repos/zulip/zulip/pulls/1393/comments","review_comment_url":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/1393/comments","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/c9a942d1d2972b4f02c39f8c3300d41d3c046b85","head":{"label":"rahuldeve:outgoing_webhook","ref":"outgoing_webhook","sha":"c9a942d1d2972b4f02c39f8c3300d41d3c046b85","user":{"login":"rahuldeve","id":4870175,"avatar_url":"https://avatars.githubusercontent.com/u/4870175?v=3","gravatar_id":"","url":"https://api.github.com/users/rahuldeve","html_url":"https://github.com/rahuldeve","followers_url":"https://api.github.com/users/rahuldeve/followers","following_url":"https://api.github.com/users/rahuldeve/following{/other_user}","gists_url":"https://api.github.com/users/rahuldeve/gists{/gist_id}","starred_url":"https://api.github.com/users/rahuldeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahuldeve/subscriptions","organizations_url":"https://api.github.com/users/rahuldeve/orgs","repos_url":"https://api.github.com/users/rahuldeve/repos","events_url":"https://api.github.com/users/rahuldeve/events{/privacy}","received_events_url":"https://api.github.com/users/rahuldeve/received_events","type":"User","site_admin":false},"repo":{"id":54367885,"name":"zulip","full_name":"rahuldeve/zulip","owner":{"login":"rahuldeve","id":4870175,"avatar_url":"https://avatars.githubusercontent.com/u/4870175?v=3","gravatar_id":"","url":"https://api.github.com/users/rahuldeve","html_url":"https://github.com/rahuldeve","followers_url":"https://api.github.com/users/rahuldeve/followers","following_url":"https://api.github.com/users/rahuldeve/following{/other_user}","gists_url":"https://api.github.com/users/rahuldeve/gists{/gist_id}","starred_url":"https://api.github.com/users/rahuldeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahuldeve/subscriptions","organizations_url":"https://api.github.com/users/rahuldeve/orgs","repos_url":"https://api.github.com/users/rahuldeve/repos","events_url":"https://api.github.com/users/rahuldeve/events{/privacy}","received_events_url":"https://api.github.com/users/rahuldeve/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rahuldeve/zulip","description":"Zulip server - powerful open source group chat","fork":true,"url":"https://api.github.com/repos/rahuldeve/zulip","forks_url":"https://api.github.com/repos/rahuldeve/zulip/forks","keys_url":"https://api.github.com/repos/rahuldeve/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rahuldeve/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rahuldeve/zulip/teams","hooks_url":"https://api.github.com/repos/rahuldeve/zulip/hooks","issue_events_url":"https://api.github.com/repos/rahuldeve/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/rahuldeve/zulip/events","assignees_url":"https://api.github.com/repos/rahuldeve/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/rahuldeve/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/rahuldeve/zulip/tags","blobs_url":"https://api.github.com/repos/rahuldeve/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rahuldeve/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rahuldeve/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/rahuldeve/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rahuldeve/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/rahuldeve/zulip/languages","stargazers_url":"https://api.github.com/repos/rahuldeve/zulip/stargazers","contributors_url":"https://api.github.com/repos/rahuldeve/zulip/contributors","subscribers_url":"https://api.github.com/repos/rahuldeve/zulip/subscribers","subscription_url":"https://api.github.com/repos/rahuldeve/zulip/subscription","commits_url":"https://api.github.com/repos/rahuldeve/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/rahuldeve/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/rahuldeve/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/rahuldeve/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/rahuldeve/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/rahuldeve/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rahuldeve/zulip/merges","archive_url":"https://api.github.com/repos/rahuldeve/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rahuldeve/zulip/downloads","issues_url":"https://api.github.com/repos/rahuldeve/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/rahuldeve/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/rahuldeve/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/rahuldeve/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rahuldeve/zulip/labels{/name}","releases_url":"https://api.github.com/repos/rahuldeve/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/rahuldeve/zulip/deployments","created_at":"2016-03-21T07:22:04Z","updated_at":"2016-03-21T07:22:11Z","pushed_at":"2016-07-24T20:05:20Z","git_url":"git://github.com/rahuldeve/zulip.git","ssh_url":"git@github.com:rahuldeve/zulip.git","clone_url":"https://github.com/rahuldeve/zulip.git","svn_url":"https://github.com/rahuldeve/zulip","homepage":"","size":113108,"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":"zulip:master","ref":"master","sha":"1da9325476ebd9f8b7a9e0274f603cbe96cd28ef","user":{"login":"zulip","id":4921959,"avatar_url":"https://avatars.githubusercontent.com/u/4921959?v=3","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"repo":{"id":43160685,"name":"zulip","full_name":"zulip/zulip","owner":{"login":"zulip","id":4921959,"avatar_url":"https://avatars.githubusercontent.com/u/4921959?v=3","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zulip/zulip","description":"Zulip server - powerful open source group chat","fork":false,"url":"https://api.github.com/repos/zulip/zulip","forks_url":"https://api.github.com/repos/zulip/zulip/forks","keys_url":"https://api.github.com/repos/zulip/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zulip/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zulip/zulip/teams","hooks_url":"https://api.github.com/repos/zulip/zulip/hooks","issue_events_url":"https://api.github.com/repos/zulip/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/zulip/zulip/events","assignees_url":"https://api.github.com/repos/zulip/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/zulip/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/zulip/zulip/tags","blobs_url":"https://api.github.com/repos/zulip/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zulip/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zulip/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/zulip/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/zulip/zulip/languages","stargazers_url":"https://api.github.com/repos/zulip/zulip/stargazers","contributors_url":"https://api.github.com/repos/zulip/zulip/contributors","subscribers_url":"https://api.github.com/repos/zulip/zulip/subscribers","subscription_url":"https://api.github.com/repos/zulip/zulip/subscription","commits_url":"https://api.github.com/repos/zulip/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/zulip/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/zulip/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/zulip/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/zulip/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/zulip/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zulip/zulip/merges","archive_url":"https://api.github.com/repos/zulip/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zulip/zulip/downloads","issues_url":"https://api.github.com/repos/zulip/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/zulip/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/zulip/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/zulip/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zulip/zulip/labels{/name}","releases_url":"https://api.github.com/repos/zulip/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/zulip/zulip/deployments","created_at":"2015-09-25T16:37:25Z","updated_at":"2016-07-27T04:50:23Z","pushed_at":"2016-07-27T03:30:28Z","git_url":"git://github.com/zulip/zulip.git","ssh_url":"git@github.com:zulip/zulip.git","clone_url":"https://github.com/zulip/zulip.git","svn_url":"https://github.com/zulip/zulip","homepage":"","size":119792,"stargazers_count":3970,"watchers_count":3970,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":631,"mirror_url":null,"open_issues_count":439,"forks":631,"open_issues":439,"watchers":3970,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip/pulls/1393"},"html":{"href":"https://github.com/zulip/zulip/pull/1393"},"issue":{"href":"https://api.github.com/repos/zulip/zulip/issues/1393"},"comments":{"href":"https://api.github.com/repos/zulip/zulip/issues/1393/comments"},"review_comments":{"href":"https://api.github.com/repos/zulip/zulip/pulls/1393/comments"},"review_comment":{"href":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zulip/zulip/pulls/1393/commits"},"statuses":{"href":"https://api.github.com/repos/zulip/zulip/statuses/c9a942d1d2972b4f02c39f8c3300d41d3c046b85"}}}}
{"actor":{"display_login":"rahuldeve"}}