{"action":"created","comment":{"url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/comments/110203645","pull_request_review_id":31359378,"id":110203645,"diff_hunk":"@@ -27,13 +27,12 @@\n \n # Route without <ALERTID> are for LI, with are for vROps\n @app.route(\"/endpoint/bugzilla\", methods=['POST'])\n-@app.route(\"/endpoint/bugzilla/<ALERTID>\", methods=['PUT'])\n @app.route(\"/endpoint/bugzilla/<TOKEN>\", methods=['POST'])\n-@app.route(\"/endpoint/bugzilla/<TOKEN>/<ALERTID>\", methods=['PUT'])\n+@app.route(\"/endpoint/bugzilla/<TOKEN>/<ALERTID>\", methods=['POST','PUT'])\n @app.route(\"/endpoint/bugzilla/<TOKEN>/<PRODUCT>/<COMPONENT>/<VERSION>\", methods=['POST'])\n-@app.route(\"/endpoint/bugzilla/<TOKEN>/<PRODUCT>/<COMPONENT>/<VERSION>/<ALERTID>\", methods=['PUT'])\n-@app.route(\"/endpoint/bugzilla/<PRODUCT>/<COMPONENT>/<VERSION>\", methods=['POST'])\n-@app.route(\"/endpoint/bugzilla/<PRODUCT>/<COMPONENT>/<VERSION>/<ALERTID>\", methods=['PUT'])\n+@app.route(\"/endpoint/bugzilla/<TOKEN>/<PRODUCT>/<COMPONENT>/<VERSION>/<ALERTID>\", methods=['POST','PUT'])\n+@app.route(\"/endpoint/bugzilla2/<PRODUCT>/<COMPONENT>/<VERSION>\", methods=['POST'])","path":"loginsightwebhookdemo/bugzilla.py","position":13,"original_position":13,"commit_id":"59924b759f90585c79494e9164ccc072d7d8249a","original_commit_id":"59924b759f90585c79494e9164ccc072d7d8249a","user":{"login":"alanjcastonguay","id":1447600,"avatar_url":"https://avatars1.githubusercontent.com/u/1447600?v=3","gravatar_id":"","url":"https://api.github.com/users/alanjcastonguay","html_url":"https://github.com/alanjcastonguay","followers_url":"https://api.github.com/users/alanjcastonguay/followers","following_url":"https://api.github.com/users/alanjcastonguay/following{/other_user}","gists_url":"https://api.github.com/users/alanjcastonguay/gists{/gist_id}","starred_url":"https://api.github.com/users/alanjcastonguay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanjcastonguay/subscriptions","organizations_url":"https://api.github.com/users/alanjcastonguay/orgs","repos_url":"https://api.github.com/users/alanjcastonguay/repos","events_url":"https://api.github.com/users/alanjcastonguay/events{/privacy}","received_events_url":"https://api.github.com/users/alanjcastonguay/received_events","type":"User","site_admin":false},"body":"Agree with reason, but not necessarily with result. The second one doesn't have a token, but is otherwise almost identical. Would a zero-byte token be acceptable, aka `bugzilla//product/component/version` and `bugzilla//product/component/version/alertid`? If so, half of these routes could be merged...","created_at":"2017-04-06T16:09:44Z","updated_at":"2017-04-06T16:09:44Z","html_url":"https://github.com/vmw-loginsight/webhook-shims/pull/31#discussion_r110203645","pull_request_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/comments/110203645"},"html":{"href":"https://github.com/vmw-loginsight/webhook-shims/pull/31#discussion_r110203645"},"pull_request":{"href":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/31","id":114440280,"html_url":"https://github.com/vmw-loginsight/webhook-shims/pull/31","diff_url":"https://github.com/vmw-loginsight/webhook-shims/pull/31.diff","patch_url":"https://github.com/vmw-loginsight/webhook-shims/pull/31.patch","issue_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/issues/31","number":31,"state":"open","locked":false,"title":"Support POST and PUT methods for vROps payloads.","user":{"login":"vmw-loginsight","id":9042993,"avatar_url":"https://avatars3.githubusercontent.com/u/9042993?v=3","gravatar_id":"","url":"https://api.github.com/users/vmw-loginsight","html_url":"https://github.com/vmw-loginsight","followers_url":"https://api.github.com/users/vmw-loginsight/followers","following_url":"https://api.github.com/users/vmw-loginsight/following{/other_user}","gists_url":"https://api.github.com/users/vmw-loginsight/gists{/gist_id}","starred_url":"https://api.github.com/users/vmw-loginsight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmw-loginsight/subscriptions","organizations_url":"https://api.github.com/users/vmw-loginsight/orgs","repos_url":"https://api.github.com/users/vmw-loginsight/repos","events_url":"https://api.github.com/users/vmw-loginsight/events{/privacy}","received_events_url":"https://api.github.com/users/vmw-loginsight/received_events","type":"User","site_admin":false},"body":"NOTE: This change impacts the routes of multiple shims -- user changes\r\nmay be required after updating.\r\n\r\nvROps uses POST for creates and updates to alerts while using PUT for\r\ncancelling. Added support for both methods. In order to support this,\r\nsome routes now required an `<ALERTID>` to specify certain options such as\r\n`<NUMRESULTS>`. In the case of bugzilla, a separate endpoint needed to be\r\nadded.","created_at":"2017-04-05T18:16:49Z","updated_at":"2017-04-06T16:09:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac3babd883fde1a77a052572448235086cc6311d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/31/commits","review_comments_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/31/comments","review_comment_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/issues/31/comments","statuses_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/statuses/59924b759f90585c79494e9164ccc072d7d8249a","head":{"label":"vmw-loginsight:vrops","ref":"vrops","sha":"59924b759f90585c79494e9164ccc072d7d8249a","user":{"login":"vmw-loginsight","id":9042993,"avatar_url":"https://avatars3.githubusercontent.com/u/9042993?v=3","gravatar_id":"","url":"https://api.github.com/users/vmw-loginsight","html_url":"https://github.com/vmw-loginsight","followers_url":"https://api.github.com/users/vmw-loginsight/followers","following_url":"https://api.github.com/users/vmw-loginsight/following{/other_user}","gists_url":"https://api.github.com/users/vmw-loginsight/gists{/gist_id}","starred_url":"https://api.github.com/users/vmw-loginsight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmw-loginsight/subscriptions","organizations_url":"https://api.github.com/users/vmw-loginsight/orgs","repos_url":"https://api.github.com/users/vmw-loginsight/repos","events_url":"https://api.github.com/users/vmw-loginsight/events{/privacy}","received_events_url":"https://api.github.com/users/vmw-loginsight/received_events","type":"User","site_admin":false},"repo":{"id":54596151,"name":"webhook-shims","full_name":"vmw-loginsight/webhook-shims","owner":{"login":"vmw-loginsight","id":9042993,"avatar_url":"https://avatars3.githubusercontent.com/u/9042993?v=3","gravatar_id":"","url":"https://api.github.com/users/vmw-loginsight","html_url":"https://github.com/vmw-loginsight","followers_url":"https://api.github.com/users/vmw-loginsight/followers","following_url":"https://api.github.com/users/vmw-loginsight/following{/other_user}","gists_url":"https://api.github.com/users/vmw-loginsight/gists{/gist_id}","starred_url":"https://api.github.com/users/vmw-loginsight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmw-loginsight/subscriptions","organizations_url":"https://api.github.com/users/vmw-loginsight/orgs","repos_url":"https://api.github.com/users/vmw-loginsight/repos","events_url":"https://api.github.com/users/vmw-loginsight/events{/privacy}","received_events_url":"https://api.github.com/users/vmw-loginsight/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vmw-loginsight/webhook-shims","description":"Shims for Log Insight 3.3+ and vRealize Operations Manager 6.0+","fork":false,"url":"https://api.github.com/repos/vmw-loginsight/webhook-shims","forks_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/forks","keys_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/teams","hooks_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/hooks","issue_events_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/issues/events{/number}","events_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/events","assignees_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/assignees{/user}","branches_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/branches{/branch}","tags_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/tags","blobs_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/statuses/{sha}","languages_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/languages","stargazers_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/stargazers","contributors_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/contributors","subscribers_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/subscribers","subscription_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/subscription","commits_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/contents/{+path}","compare_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/merges","archive_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/downloads","issues_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/issues{/number}","pulls_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls{/number}","milestones_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/milestones{/number}","notifications_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/labels{/name}","releases_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/releases{/id}","deployments_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/deployments","created_at":"2016-03-23T22:04:20Z","updated_at":"2017-04-01T15:31:40Z","pushed_at":"2017-04-06T03:56:23Z","git_url":"git://github.com/vmw-loginsight/webhook-shims.git","ssh_url":"git@github.com:vmw-loginsight/webhook-shims.git","clone_url":"https://github.com/vmw-loginsight/webhook-shims.git","svn_url":"https://github.com/vmw-loginsight/webhook-shims","homepage":"","size":119,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":9,"default_branch":"master"}},"base":{"label":"vmw-loginsight:master","ref":"master","sha":"fa2bd5c9d1fcc4edc608109694131b879ea1db9f","user":{"login":"vmw-loginsight","id":9042993,"avatar_url":"https://avatars3.githubusercontent.com/u/9042993?v=3","gravatar_id":"","url":"https://api.github.com/users/vmw-loginsight","html_url":"https://github.com/vmw-loginsight","followers_url":"https://api.github.com/users/vmw-loginsight/followers","following_url":"https://api.github.com/users/vmw-loginsight/following{/other_user}","gists_url":"https://api.github.com/users/vmw-loginsight/gists{/gist_id}","starred_url":"https://api.github.com/users/vmw-loginsight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmw-loginsight/subscriptions","organizations_url":"https://api.github.com/users/vmw-loginsight/orgs","repos_url":"https://api.github.com/users/vmw-loginsight/repos","events_url":"https://api.github.com/users/vmw-loginsight/events{/privacy}","received_events_url":"https://api.github.com/users/vmw-loginsight/received_events","type":"User","site_admin":false},"repo":{"id":54596151,"name":"webhook-shims","full_name":"vmw-loginsight/webhook-shims","owner":{"login":"vmw-loginsight","id":9042993,"avatar_url":"https://avatars3.githubusercontent.com/u/9042993?v=3","gravatar_id":"","url":"https://api.github.com/users/vmw-loginsight","html_url":"https://github.com/vmw-loginsight","followers_url":"https://api.github.com/users/vmw-loginsight/followers","following_url":"https://api.github.com/users/vmw-loginsight/following{/other_user}","gists_url":"https://api.github.com/users/vmw-loginsight/gists{/gist_id}","starred_url":"https://api.github.com/users/vmw-loginsight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmw-loginsight/subscriptions","organizations_url":"https://api.github.com/users/vmw-loginsight/orgs","repos_url":"https://api.github.com/users/vmw-loginsight/repos","events_url":"https://api.github.com/users/vmw-loginsight/events{/privacy}","received_events_url":"https://api.github.com/users/vmw-loginsight/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vmw-loginsight/webhook-shims","description":"Shims for Log Insight 3.3+ and vRealize Operations Manager 6.0+","fork":false,"url":"https://api.github.com/repos/vmw-loginsight/webhook-shims","forks_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/forks","keys_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/teams","hooks_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/hooks","issue_events_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/issues/events{/number}","events_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/events","assignees_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/assignees{/user}","branches_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/branches{/branch}","tags_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/tags","blobs_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/statuses/{sha}","languages_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/languages","stargazers_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/stargazers","contributors_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/contributors","subscribers_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/subscribers","subscription_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/subscription","commits_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/contents/{+path}","compare_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/merges","archive_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/downloads","issues_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/issues{/number}","pulls_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls{/number}","milestones_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/milestones{/number}","notifications_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/labels{/name}","releases_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/releases{/id}","deployments_url":"https://api.github.com/repos/vmw-loginsight/webhook-shims/deployments","created_at":"2016-03-23T22:04:20Z","updated_at":"2017-04-01T15:31:40Z","pushed_at":"2017-04-06T03:56:23Z","git_url":"git://github.com/vmw-loginsight/webhook-shims.git","ssh_url":"git@github.com:vmw-loginsight/webhook-shims.git","clone_url":"https://github.com/vmw-loginsight/webhook-shims.git","svn_url":"https://github.com/vmw-loginsight/webhook-shims","homepage":"","size":119,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/31"},"html":{"href":"https://github.com/vmw-loginsight/webhook-shims/pull/31"},"issue":{"href":"https://api.github.com/repos/vmw-loginsight/webhook-shims/issues/31"},"comments":{"href":"https://api.github.com/repos/vmw-loginsight/webhook-shims/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vmw-loginsight/webhook-shims/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/vmw-loginsight/webhook-shims/statuses/59924b759f90585c79494e9164ccc072d7d8249a"}}}}
{"actor":{"display_login":"alanjcastonguay"}}