{"action":"opened","number":2580,"pull_request":{"url":"https://api.github.com/repos/consul/consul/pulls/2580","id":179889430,"html_url":"https://github.com/consul/consul/pull/2580","diff_url":"https://github.com/consul/consul/pull/2580.diff","patch_url":"https://github.com/consul/consul/pull/2580.patch","issue_url":"https://api.github.com/repos/consul/consul/issues/2580","number":2580,"state":"open","locked":false,"title":"Admin notifications","user":{"login":"bertocq","id":983242,"avatar_url":"https://avatars1.githubusercontent.com/u/983242?v=4","gravatar_id":"","url":"https://api.github.com/users/bertocq","html_url":"https://github.com/bertocq","followers_url":"https://api.github.com/users/bertocq/followers","following_url":"https://api.github.com/users/bertocq/following{/other_user}","gists_url":"https://api.github.com/users/bertocq/gists{/gist_id}","starred_url":"https://api.github.com/users/bertocq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertocq/subscriptions","organizations_url":"https://api.github.com/users/bertocq/orgs","repos_url":"https://api.github.com/users/bertocq/repos","events_url":"https://api.github.com/users/bertocq/events{/privacy}","received_events_url":"https://api.github.com/users/bertocq/received_events","type":"User","site_admin":false},"body":"References\r\n==========\r\nThis is a backport from Madrid's fork for a production tested feature created at https://github.com/AyuntamientoMadrid/consul/pull/1289\r\n\r\nObjectives\r\n==========\r\nAdmins should be able to send notifications to users of a given segment, with a title, text and optional link (external or internal)\r\n\r\n\r\nVisual Changes (if any)\r\n=======================\r\nYes, check original referenced PR for details\r\n\r\nNotes\r\n=====================\r\nThe PR includes dev seeds data included for manual test & demo purposes. We encourage you to avoid testing this in preproduction with real user emails!! If you really need a segment for testing just create a new one like we did at madrid's fork https://github.com/AyuntamientoMadrid/consul/blob/master/lib/user_segments.rb#L53-L61","created_at":"2018-04-06T08:55:17Z","updated_at":"2018-04-06T08:55:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/consul/consul/pulls/2580/commits","review_comments_url":"https://api.github.com/repos/consul/consul/pulls/2580/comments","review_comment_url":"https://api.github.com/repos/consul/consul/pulls/comments{/number}","comments_url":"https://api.github.com/repos/consul/consul/issues/2580/comments","statuses_url":"https://api.github.com/repos/consul/consul/statuses/e53d377231e2d11f8c6d12f0062208ad212e6fdc","head":{"label":"consul:admin_notifications","ref":"admin_notifications","sha":"e53d377231e2d11f8c6d12f0062208ad212e6fdc","user":{"login":"consul","id":14167322,"avatar_url":"https://avatars2.githubusercontent.com/u/14167322?v=4","gravatar_id":"","url":"https://api.github.com/users/consul","html_url":"https://github.com/consul","followers_url":"https://api.github.com/users/consul/followers","following_url":"https://api.github.com/users/consul/following{/other_user}","gists_url":"https://api.github.com/users/consul/gists{/gist_id}","starred_url":"https://api.github.com/users/consul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consul/subscriptions","organizations_url":"https://api.github.com/users/consul/orgs","repos_url":"https://api.github.com/users/consul/repos","events_url":"https://api.github.com/users/consul/events{/privacy}","received_events_url":"https://api.github.com/users/consul/received_events","type":"Organization","site_admin":false},"repo":{"id":39152554,"name":"consul","full_name":"consul/consul","owner":{"login":"consul","id":14167322,"avatar_url":"https://avatars2.githubusercontent.com/u/14167322?v=4","gravatar_id":"","url":"https://api.github.com/users/consul","html_url":"https://github.com/consul","followers_url":"https://api.github.com/users/consul/followers","following_url":"https://api.github.com/users/consul/following{/other_user}","gists_url":"https://api.github.com/users/consul/gists{/gist_id}","starred_url":"https://api.github.com/users/consul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consul/subscriptions","organizations_url":"https://api.github.com/users/consul/orgs","repos_url":"https://api.github.com/users/consul/repos","events_url":"https://api.github.com/users/consul/events{/privacy}","received_events_url":"https://api.github.com/users/consul/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/consul/consul","description":"Consul - Open Government and E-Participation Web Software","fork":false,"url":"https://api.github.com/repos/consul/consul","forks_url":"https://api.github.com/repos/consul/consul/forks","keys_url":"https://api.github.com/repos/consul/consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/consul/consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/consul/consul/teams","hooks_url":"https://api.github.com/repos/consul/consul/hooks","issue_events_url":"https://api.github.com/repos/consul/consul/issues/events{/number}","events_url":"https://api.github.com/repos/consul/consul/events","assignees_url":"https://api.github.com/repos/consul/consul/assignees{/user}","branches_url":"https://api.github.com/repos/consul/consul/branches{/branch}","tags_url":"https://api.github.com/repos/consul/consul/tags","blobs_url":"https://api.github.com/repos/consul/consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/consul/consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/consul/consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/consul/consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/consul/consul/statuses/{sha}","languages_url":"https://api.github.com/repos/consul/consul/languages","stargazers_url":"https://api.github.com/repos/consul/consul/stargazers","contributors_url":"https://api.github.com/repos/consul/consul/contributors","subscribers_url":"https://api.github.com/repos/consul/consul/subscribers","subscription_url":"https://api.github.com/repos/consul/consul/subscription","commits_url":"https://api.github.com/repos/consul/consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/consul/consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/consul/consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/consul/consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/consul/consul/contents/{+path}","compare_url":"https://api.github.com/repos/consul/consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/consul/consul/merges","archive_url":"https://api.github.com/repos/consul/consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/consul/consul/downloads","issues_url":"https://api.github.com/repos/consul/consul/issues{/number}","pulls_url":"https://api.github.com/repos/consul/consul/pulls{/number}","milestones_url":"https://api.github.com/repos/consul/consul/milestones{/number}","notifications_url":"https://api.github.com/repos/consul/consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/consul/consul/labels{/name}","releases_url":"https://api.github.com/repos/consul/consul/releases{/id}","deployments_url":"https://api.github.com/repos/consul/consul/deployments","created_at":"2015-07-15T18:04:16Z","updated_at":"2018-04-05T22:37:27Z","pushed_at":"2018-04-06T08:52:37Z","git_url":"git://github.com/consul/consul.git","ssh_url":"git@github.com:consul/consul.git","clone_url":"https://github.com/consul/consul.git","svn_url":"https://github.com/consul/consul","homepage":"","size":29895,"stargazers_count":566,"watchers_count":566,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":329,"mirror_url":null,"archived":false,"open_issues_count":214,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":329,"open_issues":214,"watchers":566,"default_branch":"master"}},"base":{"label":"consul:master","ref":"master","sha":"0fceb1381fda09b04cae18f8b230171b46f13d40","user":{"login":"consul","id":14167322,"avatar_url":"https://avatars2.githubusercontent.com/u/14167322?v=4","gravatar_id":"","url":"https://api.github.com/users/consul","html_url":"https://github.com/consul","followers_url":"https://api.github.com/users/consul/followers","following_url":"https://api.github.com/users/consul/following{/other_user}","gists_url":"https://api.github.com/users/consul/gists{/gist_id}","starred_url":"https://api.github.com/users/consul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consul/subscriptions","organizations_url":"https://api.github.com/users/consul/orgs","repos_url":"https://api.github.com/users/consul/repos","events_url":"https://api.github.com/users/consul/events{/privacy}","received_events_url":"https://api.github.com/users/consul/received_events","type":"Organization","site_admin":false},"repo":{"id":39152554,"name":"consul","full_name":"consul/consul","owner":{"login":"consul","id":14167322,"avatar_url":"https://avatars2.githubusercontent.com/u/14167322?v=4","gravatar_id":"","url":"https://api.github.com/users/consul","html_url":"https://github.com/consul","followers_url":"https://api.github.com/users/consul/followers","following_url":"https://api.github.com/users/consul/following{/other_user}","gists_url":"https://api.github.com/users/consul/gists{/gist_id}","starred_url":"https://api.github.com/users/consul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consul/subscriptions","organizations_url":"https://api.github.com/users/consul/orgs","repos_url":"https://api.github.com/users/consul/repos","events_url":"https://api.github.com/users/consul/events{/privacy}","received_events_url":"https://api.github.com/users/consul/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/consul/consul","description":"Consul - Open Government and E-Participation Web Software","fork":false,"url":"https://api.github.com/repos/consul/consul","forks_url":"https://api.github.com/repos/consul/consul/forks","keys_url":"https://api.github.com/repos/consul/consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/consul/consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/consul/consul/teams","hooks_url":"https://api.github.com/repos/consul/consul/hooks","issue_events_url":"https://api.github.com/repos/consul/consul/issues/events{/number}","events_url":"https://api.github.com/repos/consul/consul/events","assignees_url":"https://api.github.com/repos/consul/consul/assignees{/user}","branches_url":"https://api.github.com/repos/consul/consul/branches{/branch}","tags_url":"https://api.github.com/repos/consul/consul/tags","blobs_url":"https://api.github.com/repos/consul/consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/consul/consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/consul/consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/consul/consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/consul/consul/statuses/{sha}","languages_url":"https://api.github.com/repos/consul/consul/languages","stargazers_url":"https://api.github.com/repos/consul/consul/stargazers","contributors_url":"https://api.github.com/repos/consul/consul/contributors","subscribers_url":"https://api.github.com/repos/consul/consul/subscribers","subscription_url":"https://api.github.com/repos/consul/consul/subscription","commits_url":"https://api.github.com/repos/consul/consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/consul/consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/consul/consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/consul/consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/consul/consul/contents/{+path}","compare_url":"https://api.github.com/repos/consul/consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/consul/consul/merges","archive_url":"https://api.github.com/repos/consul/consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/consul/consul/downloads","issues_url":"https://api.github.com/repos/consul/consul/issues{/number}","pulls_url":"https://api.github.com/repos/consul/consul/pulls{/number}","milestones_url":"https://api.github.com/repos/consul/consul/milestones{/number}","notifications_url":"https://api.github.com/repos/consul/consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/consul/consul/labels{/name}","releases_url":"https://api.github.com/repos/consul/consul/releases{/id}","deployments_url":"https://api.github.com/repos/consul/consul/deployments","created_at":"2015-07-15T18:04:16Z","updated_at":"2018-04-05T22:37:27Z","pushed_at":"2018-04-06T08:52:37Z","git_url":"git://github.com/consul/consul.git","ssh_url":"git@github.com:consul/consul.git","clone_url":"https://github.com/consul/consul.git","svn_url":"https://github.com/consul/consul","homepage":"","size":29895,"stargazers_count":566,"watchers_count":566,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":329,"mirror_url":null,"archived":false,"open_issues_count":214,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":329,"open_issues":214,"watchers":566,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/consul/consul/pulls/2580"},"html":{"href":"https://github.com/consul/consul/pull/2580"},"issue":{"href":"https://api.github.com/repos/consul/consul/issues/2580"},"comments":{"href":"https://api.github.com/repos/consul/consul/issues/2580/comments"},"review_comments":{"href":"https://api.github.com/repos/consul/consul/pulls/2580/comments"},"review_comment":{"href":"https://api.github.com/repos/consul/consul/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/consul/consul/pulls/2580/commits"},"statuses":{"href":"https://api.github.com/repos/consul/consul/statuses/e53d377231e2d11f8c6d12f0062208ad212e6fdc"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":9,"additions":870,"deletions":26,"changed_files":29}}
{"actor":{"display_login":"bertocq"}}