{"action":"created","comment":{"url":"https://api.github.com/repos/Bridg/hydra-1/pulls/comments/127828256","pull_request_review_id":50450591,"id":127828256,"diff_hunk":"@@ -0,0 +1,16 @@\n+{\n+  \"id\": \"bridg_campaign_messaging\",\n+  \"description\": \"Give bridg's campaign messaging service access to Bridg's resources.\",\n+  \"subjects\": [\n+    \"bridg-campaign-messaging\"\n+  ],\n+  \"effect\": \"allow\",\n+  \"resources\": [\n+    \"rn:bridg:scheduler:schedule\",\n+    \"rn:bridg:<(accounts:[A-z0-9_-]+:brands:[A-z0-9_-]+:):(campaigns|email-engine)(:.+)?>>\"","path":"data/seeds/cli-example/policies/bridg-campaign-messaging.json","position":10,"original_position":10,"commit_id":"c8395f4ab7785b5e00eb20ebd301be3a5ded6484","original_commit_id":"c8395f4ab7785b5e00eb20ebd301be3a5ded6484","user":{"login":"ericalandouglas","id":1504312,"avatar_url":"https://avatars1.githubusercontent.com/u/1504312?v=4","gravatar_id":"","url":"https://api.github.com/users/ericalandouglas","html_url":"https://github.com/ericalandouglas","followers_url":"https://api.github.com/users/ericalandouglas/followers","following_url":"https://api.github.com/users/ericalandouglas/following{/other_user}","gists_url":"https://api.github.com/users/ericalandouglas/gists{/gist_id}","starred_url":"https://api.github.com/users/ericalandouglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericalandouglas/subscriptions","organizations_url":"https://api.github.com/users/ericalandouglas/orgs","repos_url":"https://api.github.com/users/ericalandouglas/repos","events_url":"https://api.github.com/users/ericalandouglas/events{/privacy}","received_events_url":"https://api.github.com/users/ericalandouglas/received_events","type":"User","site_admin":false},"body":"This regex has some minor syntax issues. The end includes `>>` but only one `>` is needed to close the regex expression. Also `(accounts:[A-z0-9_-]+:brands:[A-z0-9_-]+:):` can become `accounts:[A-z0-9_-]+:brands:[A-z0-9_-]+:` (a capture group is not needed and we don't want to include `:` twice. Thanks for the PR here, otherwise it looks good.","created_at":"2017-07-17T21:16:41Z","updated_at":"2017-07-17T21:16:41Z","html_url":"https://github.com/Bridg/hydra-1/pull/7#discussion_r127828256","pull_request_url":"https://api.github.com/repos/Bridg/hydra-1/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/Bridg/hydra-1/pulls/comments/127828256"},"html":{"href":"https://github.com/Bridg/hydra-1/pull/7#discussion_r127828256"},"pull_request":{"href":"https://api.github.com/repos/Bridg/hydra-1/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/Bridg/hydra-1/pulls/7","id":130952102,"html_url":"https://github.com/Bridg/hydra-1/pull/7","diff_url":"https://github.com/Bridg/hydra-1/pull/7.diff","patch_url":"https://github.com/Bridg/hydra-1/pull/7.patch","issue_url":"https://api.github.com/repos/Bridg/hydra-1/issues/7","number":7,"state":"open","locked":false,"title":"campaign masseging policies","user":{"login":"andrzejurbanowicz","id":26388171,"avatar_url":"https://avatars2.githubusercontent.com/u/26388171?v=4","gravatar_id":"","url":"https://api.github.com/users/andrzejurbanowicz","html_url":"https://github.com/andrzejurbanowicz","followers_url":"https://api.github.com/users/andrzejurbanowicz/followers","following_url":"https://api.github.com/users/andrzejurbanowicz/following{/other_user}","gists_url":"https://api.github.com/users/andrzejurbanowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/andrzejurbanowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrzejurbanowicz/subscriptions","organizations_url":"https://api.github.com/users/andrzejurbanowicz/orgs","repos_url":"https://api.github.com/users/andrzejurbanowicz/repos","events_url":"https://api.github.com/users/andrzejurbanowicz/events{/privacy}","received_events_url":"https://api.github.com/users/andrzejurbanowicz/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-17T21:07:58Z","updated_at":"2017-07-17T21:16:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4df972b82ff0a4db84d92670750d6e0d40abd71","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Bridg/hydra-1/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Bridg/hydra-1/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Bridg/hydra-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bridg/hydra-1/issues/7/comments","statuses_url":"https://api.github.com/repos/Bridg/hydra-1/statuses/c8395f4ab7785b5e00eb20ebd301be3a5ded6484","head":{"label":"Bridg:feature/blast_managment","ref":"feature/blast_managment","sha":"c8395f4ab7785b5e00eb20ebd301be3a5ded6484","user":{"login":"Bridg","id":6288002,"avatar_url":"https://avatars0.githubusercontent.com/u/6288002?v=4","gravatar_id":"","url":"https://api.github.com/users/Bridg","html_url":"https://github.com/Bridg","followers_url":"https://api.github.com/users/Bridg/followers","following_url":"https://api.github.com/users/Bridg/following{/other_user}","gists_url":"https://api.github.com/users/Bridg/gists{/gist_id}","starred_url":"https://api.github.com/users/Bridg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bridg/subscriptions","organizations_url":"https://api.github.com/users/Bridg/orgs","repos_url":"https://api.github.com/users/Bridg/repos","events_url":"https://api.github.com/users/Bridg/events{/privacy}","received_events_url":"https://api.github.com/users/Bridg/received_events","type":"Organization","site_admin":false},"repo":{"id":84477476,"name":"hydra-1","full_name":"Bridg/hydra-1","owner":{"login":"Bridg","id":6288002,"avatar_url":"https://avatars0.githubusercontent.com/u/6288002?v=4","gravatar_id":"","url":"https://api.github.com/users/Bridg","html_url":"https://github.com/Bridg","followers_url":"https://api.github.com/users/Bridg/followers","following_url":"https://api.github.com/users/Bridg/following{/other_user}","gists_url":"https://api.github.com/users/Bridg/gists{/gist_id}","starred_url":"https://api.github.com/users/Bridg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bridg/subscriptions","organizations_url":"https://api.github.com/users/Bridg/orgs","repos_url":"https://api.github.com/users/Bridg/repos","events_url":"https://api.github.com/users/Bridg/events{/privacy}","received_events_url":"https://api.github.com/users/Bridg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bridg/hydra-1","description":"A security-first open source OAuth2 and OpenID Connect server for new and existing infrastructures. Written in Go.","fork":true,"url":"https://api.github.com/repos/Bridg/hydra-1","forks_url":"https://api.github.com/repos/Bridg/hydra-1/forks","keys_url":"https://api.github.com/repos/Bridg/hydra-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bridg/hydra-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bridg/hydra-1/teams","hooks_url":"https://api.github.com/repos/Bridg/hydra-1/hooks","issue_events_url":"https://api.github.com/repos/Bridg/hydra-1/issues/events{/number}","events_url":"https://api.github.com/repos/Bridg/hydra-1/events","assignees_url":"https://api.github.com/repos/Bridg/hydra-1/assignees{/user}","branches_url":"https://api.github.com/repos/Bridg/hydra-1/branches{/branch}","tags_url":"https://api.github.com/repos/Bridg/hydra-1/tags","blobs_url":"https://api.github.com/repos/Bridg/hydra-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bridg/hydra-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bridg/hydra-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bridg/hydra-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bridg/hydra-1/statuses/{sha}","languages_url":"https://api.github.com/repos/Bridg/hydra-1/languages","stargazers_url":"https://api.github.com/repos/Bridg/hydra-1/stargazers","contributors_url":"https://api.github.com/repos/Bridg/hydra-1/contributors","subscribers_url":"https://api.github.com/repos/Bridg/hydra-1/subscribers","subscription_url":"https://api.github.com/repos/Bridg/hydra-1/subscription","commits_url":"https://api.github.com/repos/Bridg/hydra-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bridg/hydra-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bridg/hydra-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bridg/hydra-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bridg/hydra-1/contents/{+path}","compare_url":"https://api.github.com/repos/Bridg/hydra-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bridg/hydra-1/merges","archive_url":"https://api.github.com/repos/Bridg/hydra-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bridg/hydra-1/downloads","issues_url":"https://api.github.com/repos/Bridg/hydra-1/issues{/number}","pulls_url":"https://api.github.com/repos/Bridg/hydra-1/pulls{/number}","milestones_url":"https://api.github.com/repos/Bridg/hydra-1/milestones{/number}","notifications_url":"https://api.github.com/repos/Bridg/hydra-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bridg/hydra-1/labels{/name}","releases_url":"https://api.github.com/repos/Bridg/hydra-1/releases{/id}","deployments_url":"https://api.github.com/repos/Bridg/hydra-1/deployments","created_at":"2017-03-09T18:53:51Z","updated_at":"2017-03-09T18:53:53Z","pushed_at":"2017-07-17T21:07:59Z","git_url":"git://github.com/Bridg/hydra-1.git","ssh_url":"git@github.com:Bridg/hydra-1.git","clone_url":"https://github.com/Bridg/hydra-1.git","svn_url":"https://github.com/Bridg/hydra-1","homepage":"https://www.ory.am/products/hydra","size":32872,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Bridg:master","ref":"master","sha":"5abef33d26d29eba088557338887dadbcb73f414","user":{"login":"Bridg","id":6288002,"avatar_url":"https://avatars0.githubusercontent.com/u/6288002?v=4","gravatar_id":"","url":"https://api.github.com/users/Bridg","html_url":"https://github.com/Bridg","followers_url":"https://api.github.com/users/Bridg/followers","following_url":"https://api.github.com/users/Bridg/following{/other_user}","gists_url":"https://api.github.com/users/Bridg/gists{/gist_id}","starred_url":"https://api.github.com/users/Bridg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bridg/subscriptions","organizations_url":"https://api.github.com/users/Bridg/orgs","repos_url":"https://api.github.com/users/Bridg/repos","events_url":"https://api.github.com/users/Bridg/events{/privacy}","received_events_url":"https://api.github.com/users/Bridg/received_events","type":"Organization","site_admin":false},"repo":{"id":84477476,"name":"hydra-1","full_name":"Bridg/hydra-1","owner":{"login":"Bridg","id":6288002,"avatar_url":"https://avatars0.githubusercontent.com/u/6288002?v=4","gravatar_id":"","url":"https://api.github.com/users/Bridg","html_url":"https://github.com/Bridg","followers_url":"https://api.github.com/users/Bridg/followers","following_url":"https://api.github.com/users/Bridg/following{/other_user}","gists_url":"https://api.github.com/users/Bridg/gists{/gist_id}","starred_url":"https://api.github.com/users/Bridg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bridg/subscriptions","organizations_url":"https://api.github.com/users/Bridg/orgs","repos_url":"https://api.github.com/users/Bridg/repos","events_url":"https://api.github.com/users/Bridg/events{/privacy}","received_events_url":"https://api.github.com/users/Bridg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bridg/hydra-1","description":"A security-first open source OAuth2 and OpenID Connect server for new and existing infrastructures. Written in Go.","fork":true,"url":"https://api.github.com/repos/Bridg/hydra-1","forks_url":"https://api.github.com/repos/Bridg/hydra-1/forks","keys_url":"https://api.github.com/repos/Bridg/hydra-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bridg/hydra-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bridg/hydra-1/teams","hooks_url":"https://api.github.com/repos/Bridg/hydra-1/hooks","issue_events_url":"https://api.github.com/repos/Bridg/hydra-1/issues/events{/number}","events_url":"https://api.github.com/repos/Bridg/hydra-1/events","assignees_url":"https://api.github.com/repos/Bridg/hydra-1/assignees{/user}","branches_url":"https://api.github.com/repos/Bridg/hydra-1/branches{/branch}","tags_url":"https://api.github.com/repos/Bridg/hydra-1/tags","blobs_url":"https://api.github.com/repos/Bridg/hydra-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bridg/hydra-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bridg/hydra-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bridg/hydra-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bridg/hydra-1/statuses/{sha}","languages_url":"https://api.github.com/repos/Bridg/hydra-1/languages","stargazers_url":"https://api.github.com/repos/Bridg/hydra-1/stargazers","contributors_url":"https://api.github.com/repos/Bridg/hydra-1/contributors","subscribers_url":"https://api.github.com/repos/Bridg/hydra-1/subscribers","subscription_url":"https://api.github.com/repos/Bridg/hydra-1/subscription","commits_url":"https://api.github.com/repos/Bridg/hydra-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bridg/hydra-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bridg/hydra-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bridg/hydra-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bridg/hydra-1/contents/{+path}","compare_url":"https://api.github.com/repos/Bridg/hydra-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bridg/hydra-1/merges","archive_url":"https://api.github.com/repos/Bridg/hydra-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bridg/hydra-1/downloads","issues_url":"https://api.github.com/repos/Bridg/hydra-1/issues{/number}","pulls_url":"https://api.github.com/repos/Bridg/hydra-1/pulls{/number}","milestones_url":"https://api.github.com/repos/Bridg/hydra-1/milestones{/number}","notifications_url":"https://api.github.com/repos/Bridg/hydra-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bridg/hydra-1/labels{/name}","releases_url":"https://api.github.com/repos/Bridg/hydra-1/releases{/id}","deployments_url":"https://api.github.com/repos/Bridg/hydra-1/deployments","created_at":"2017-03-09T18:53:51Z","updated_at":"2017-03-09T18:53:53Z","pushed_at":"2017-07-17T21:07:59Z","git_url":"git://github.com/Bridg/hydra-1.git","ssh_url":"git@github.com:Bridg/hydra-1.git","clone_url":"https://github.com/Bridg/hydra-1.git","svn_url":"https://github.com/Bridg/hydra-1","homepage":"https://www.ory.am/products/hydra","size":32872,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Bridg/hydra-1/pulls/7"},"html":{"href":"https://github.com/Bridg/hydra-1/pull/7"},"issue":{"href":"https://api.github.com/repos/Bridg/hydra-1/issues/7"},"comments":{"href":"https://api.github.com/repos/Bridg/hydra-1/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Bridg/hydra-1/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Bridg/hydra-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bridg/hydra-1/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Bridg/hydra-1/statuses/c8395f4ab7785b5e00eb20ebd301be3a5ded6484"}}}}
{"actor":{"display_login":"ericalandouglas"}}