{"action":"closed","number":527,"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/527","id":23940592,"html_url":"https://github.com/puppetlabs/puppetlabs-postgresql/pull/527","diff_url":"https://github.com/puppetlabs/puppetlabs-postgresql/pull/527.diff","patch_url":"https://github.com/puppetlabs/puppetlabs-postgresql/pull/527.patch","issue_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/issues/527","number":527,"state":"closed","locked":false,"title":"Add onlyif option to postgresql_psql type","user":{"login":"kimor79","id":58626,"avatar_url":"https://avatars.githubusercontent.com/u/58626?v=3","gravatar_id":"","url":"https://api.github.com/users/kimor79","html_url":"https://github.com/kimor79","followers_url":"https://api.github.com/users/kimor79/followers","following_url":"https://api.github.com/users/kimor79/following{/other_user}","gists_url":"https://api.github.com/users/kimor79/gists{/gist_id}","starred_url":"https://api.github.com/users/kimor79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimor79/subscriptions","organizations_url":"https://api.github.com/users/kimor79/orgs","repos_url":"https://api.github.com/users/kimor79/repos","events_url":"https://api.github.com/users/kimor79/events{/privacy}","received_events_url":"https://api.github.com/users/kimor79/received_events","type":"User","site_admin":false},"body":"This adds an onlyif option to the postgresql_psql type to allow for commands to only run if the onlyif command succeeds. The primary use case being to only add a table grant if the table exists (if for example, the tables are managed outside of puppet but the grants are managed within puppet).","created_at":"2014-11-05T21:45:46Z","updated_at":"2015-06-25T21:06:19Z","closed_at":"2015-06-25T21:06:19Z","merged_at":null,"merge_commit_sha":"616d4a904ccd4f61f9eae7392b45994538e38137","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/527/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/527/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/527/comments","statuses_url":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/statuses/810f07781b6cd4b6cee3c507a8369826a85fca07","head":{"label":"kimor79:psql-onlyif","ref":"psql-onlyif","sha":"810f07781b6cd4b6cee3c507a8369826a85fca07","user":{"login":"kimor79","id":58626,"avatar_url":"https://avatars.githubusercontent.com/u/58626?v=3","gravatar_id":"","url":"https://api.github.com/users/kimor79","html_url":"https://github.com/kimor79","followers_url":"https://api.github.com/users/kimor79/followers","following_url":"https://api.github.com/users/kimor79/following{/other_user}","gists_url":"https://api.github.com/users/kimor79/gists{/gist_id}","starred_url":"https://api.github.com/users/kimor79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimor79/subscriptions","organizations_url":"https://api.github.com/users/kimor79/orgs","repos_url":"https://api.github.com/users/kimor79/repos","events_url":"https://api.github.com/users/kimor79/events{/privacy}","received_events_url":"https://api.github.com/users/kimor79/received_events","type":"User","site_admin":false},"repo":{"id":26194095,"name":"puppetlabs-postgresql","full_name":"kimor79/puppetlabs-postgresql","owner":{"login":"kimor79","id":58626,"avatar_url":"https://avatars.githubusercontent.com/u/58626?v=3","gravatar_id":"","url":"https://api.github.com/users/kimor79","html_url":"https://github.com/kimor79","followers_url":"https://api.github.com/users/kimor79/followers","following_url":"https://api.github.com/users/kimor79/following{/other_user}","gists_url":"https://api.github.com/users/kimor79/gists{/gist_id}","starred_url":"https://api.github.com/users/kimor79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimor79/subscriptions","organizations_url":"https://api.github.com/users/kimor79/orgs","repos_url":"https://api.github.com/users/kimor79/repos","events_url":"https://api.github.com/users/kimor79/events{/privacy}","received_events_url":"https://api.github.com/users/kimor79/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kimor79/puppetlabs-postgresql","description":"Puppet module for managing PostgreSQL","fork":true,"url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql","forks_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/forks","keys_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/teams","hooks_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/hooks","issue_events_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/issues/events{/number}","events_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/events","assignees_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/assignees{/user}","branches_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/branches{/branch}","tags_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/tags","blobs_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/git/refs{/sha}","trees_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/statuses/{sha}","languages_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/languages","stargazers_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/stargazers","contributors_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/contributors","subscribers_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/subscribers","subscription_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/subscription","commits_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/commits{/sha}","git_commits_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/git/commits{/sha}","comments_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/comments{/number}","issue_comment_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/issues/comments{/number}","contents_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/contents/{+path}","compare_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/merges","archive_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/downloads","issues_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/issues{/number}","pulls_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/pulls{/number}","milestones_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/milestones{/number}","notifications_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/labels{/name}","releases_url":"https://api.github.com/repos/kimor79/puppetlabs-postgresql/releases{/id}","created_at":"2014-11-04T23:46:18Z","updated_at":"2014-11-04T22:09:42Z","pushed_at":"2015-05-19T05:24:07Z","git_url":"git://github.com/kimor79/puppetlabs-postgresql.git","ssh_url":"git@github.com:kimor79/puppetlabs-postgresql.git","clone_url":"https://github.com/kimor79/puppetlabs-postgresql.git","svn_url":"https://github.com/kimor79/puppetlabs-postgresql","homepage":null,"size":1208,"stargazers_count":0,"watchers_count":0,"language":null,"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":"3341b73b39d4f1c5934ed08a3a8ed88c988dd98b","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}","created_at":"2012-04-19T17:32:56Z","updated_at":"2015-06-22T01:33:55Z","pushed_at":"2015-06-25T21:04:44Z","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":6299,"stargazers_count":151,"watchers_count":151,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":397,"mirror_url":null,"open_issues_count":42,"forks":397,"open_issues":42,"watchers":151,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/527"},"html":{"href":"https://github.com/puppetlabs/puppetlabs-postgresql/pull/527"},"issue":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/issues/527"},"comments":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/issues/527/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/pulls/527/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/527/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-postgresql/statuses/810f07781b6cd4b6cee3c507a8369826a85fca07"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":7,"review_comments":6,"commits":9,"additions":89,"deletions":17,"changed_files":4}}