{"action":"opened","number":756,"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/756","id":65311705,"html_url":"https://github.com/puppetlabs/puppetlabs-postgresql/pull/756","diff_url":"https://github.com/puppetlabs/puppetlabs-postgresql/pull/756.diff","patch_url":"https://github.com/puppetlabs/puppetlabs-postgresql/pull/756.patch","issue_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/issues/756","number":756,"state":"open","locked":false,"title":"Adding grant_role","user":{"login":"paulhamby","id":4423579,"avatar_url":"https://avatars.githubusercontent.com/u/4423579?v=3","gravatar_id":"","url":"https://api.github.com/users/paulhamby","html_url":"https://github.com/paulhamby","followers_url":"https://api.github.com/users/paulhamby/followers","following_url":"https://api.github.com/users/paulhamby/following{/other_user}","gists_url":"https://api.github.com/users/paulhamby/gists{/gist_id}","starred_url":"https://api.github.com/users/paulhamby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulhamby/subscriptions","organizations_url":"https://api.github.com/users/paulhamby/orgs","repos_url":"https://api.github.com/users/paulhamby/repos","events_url":"https://api.github.com/users/paulhamby/events{/privacy}","received_events_url":"https://api.github.com/users/paulhamby/received_events","type":"User","site_admin":false},"body":"This adds the ability to grant a group role to a user role. This was mentioned in https://tickets.puppetlabs.com/browse/MODULES-1165 and this is basically the code from the comment in that ticket. It appears to work for me just fine, so hopefully it will work for others as well.","created_at":"2016-04-05T14:15:13Z","updated_at":"2016-04-05T14:15:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/756/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/756/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/issues/756/comments","statuses_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/statuses/24f6a3c0604df602505864e5ae198883e2ff84c8","head":{"label":"paulhamby:grant_role","ref":"grant_role","sha":"24f6a3c0604df602505864e5ae198883e2ff84c8","user":{"login":"paulhamby","id":4423579,"avatar_url":"https://avatars.githubusercontent.com/u/4423579?v=3","gravatar_id":"","url":"https://api.github.com/users/paulhamby","html_url":"https://github.com/paulhamby","followers_url":"https://api.github.com/users/paulhamby/followers","following_url":"https://api.github.com/users/paulhamby/following{/other_user}","gists_url":"https://api.github.com/users/paulhamby/gists{/gist_id}","starred_url":"https://api.github.com/users/paulhamby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulhamby/subscriptions","organizations_url":"https://api.github.com/users/paulhamby/orgs","repos_url":"https://api.github.com/users/paulhamby/repos","events_url":"https://api.github.com/users/paulhamby/events{/privacy}","received_events_url":"https://api.github.com/users/paulhamby/received_events","type":"User","site_admin":false},"repo":{"id":55450979,"name":"puppetlabs-postgresql","full_name":"paulhamby/puppetlabs-postgresql","owner":{"login":"paulhamby","id":4423579,"avatar_url":"https://avatars.githubusercontent.com/u/4423579?v=3","gravatar_id":"","url":"https://api.github.com/users/paulhamby","html_url":"https://github.com/paulhamby","followers_url":"https://api.github.com/users/paulhamby/followers","following_url":"https://api.github.com/users/paulhamby/following{/other_user}","gists_url":"https://api.github.com/users/paulhamby/gists{/gist_id}","starred_url":"https://api.github.com/users/paulhamby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulhamby/subscriptions","organizations_url":"https://api.github.com/users/paulhamby/orgs","repos_url":"https://api.github.com/users/paulhamby/repos","events_url":"https://api.github.com/users/paulhamby/events{/privacy}","received_events_url":"https://api.github.com/users/paulhamby/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulhamby/puppetlabs-postgresql","description":"Puppet module for managing PostgreSQL","fork":true,"url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql","forks_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/forks","keys_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/teams","hooks_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/hooks","issue_events_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/issues/events{/number}","events_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/events","assignees_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/assignees{/user}","branches_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/branches{/branch}","tags_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/tags","blobs_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/statuses/{sha}","languages_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/languages","stargazers_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/stargazers","contributors_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/contributors","subscribers_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/subscribers","subscription_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/subscription","commits_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/contents/{+path}","compare_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/merges","archive_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/downloads","issues_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/issues{/number}","pulls_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/pulls{/number}","milestones_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/milestones{/number}","notifications_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/labels{/name}","releases_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/releases{/id}","deployments_url":"https://api.github.com/repos/paulhamby/puppetlabs-postgresql/deployments","created_at":"2016-04-04T22:49:15Z","updated_at":"2016-04-04T22:49:16Z","pushed_at":"2016-04-05T14:10:07Z","git_url":"git://github.com/paulhamby/puppetlabs-postgresql.git","ssh_url":"git@github.com:paulhamby/puppetlabs-postgresql.git","clone_url":"https://github.com/paulhamby/puppetlabs-postgresql.git","svn_url":"https://github.com/paulhamby/puppetlabs-postgresql","homepage":null,"size":1363,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"puppetlabs:master","ref":"master","sha":"bccb77db3fc29ab8a1fd2e94fd7c8a6f793bb05b","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":4078159,"name":"puppetlabs-postgresql","full_name":"puppetlabs/puppetlabs-postgresql","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/puppetlabs-postgresql","description":"Puppet module for managing PostgreSQL","fork":false,"url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql","forks_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/forks","keys_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/teams","hooks_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/events","assignees_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/tags","blobs_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/subscription","commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/merges","archive_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/downloads","issues_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/deployments","created_at":"2012-04-19T17:32:56Z","updated_at":"2016-04-05T10:59:20Z","pushed_at":"2016-04-05T10:55:37Z","git_url":"git://github.com/puppetlabs/puppetlabs-postgresql.git","ssh_url":"git@github.com:puppetlabs/puppetlabs-postgresql.git","clone_url":"https://github.com/puppetlabs/puppetlabs-postgresql.git","svn_url":"https://github.com/puppetlabs/puppetlabs-postgresql","homepage":null,"size":2466,"stargazers_count":173,"watchers_count":173,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":455,"mirror_url":null,"open_issues_count":40,"forks":455,"open_issues":40,"watchers":173,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/756"},"html":{"href":"https://github.com/puppetlabs/puppetlabs-postgresql/pull/756"},"issue":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/issues/756"},"comments":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/issues/756/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/756/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/756/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/statuses/24f6a3c0604df602505864e5ae198883e2ff84c8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":41,"deletions":0,"changed_files":2}}