{"action":"created","comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/comments/190414141","pull_request_review_id":122782499,"id":190414141,"diff_hunk":"@@ -238,6 +273,23 @@ func expandBooleanOrganizationPolicy(configured []interface{}) *cloudresourceman\n \t}\n }\n \n+func expandRestoreOrganizationPolicy(configured []interface{}) (*cloudresourcemanager.RestoreDefault, error) {\n+\tif len(configured) == 0 {\n+\t\treturn nil, nil\n+\t}\n+\n+\tif len(configured) > 0 {","path":"google/resource_google_organization_policy.go","position":102,"original_position":102,"commit_id":"4722e1281e669f86e1baf22a0fdc9fb1ffa07ddf","original_commit_id":"4722e1281e669f86e1baf22a0fdc9fb1ffa07ddf","user":{"login":"danawillow","id":1130694,"avatar_url":"https://avatars2.githubusercontent.com/u/1130694?v=4","gravatar_id":"","url":"https://api.github.com/users/danawillow","html_url":"https://github.com/danawillow","followers_url":"https://api.github.com/users/danawillow/followers","following_url":"https://api.github.com/users/danawillow/following{/other_user}","gists_url":"https://api.github.com/users/danawillow/gists{/gist_id}","starred_url":"https://api.github.com/users/danawillow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danawillow/subscriptions","organizations_url":"https://api.github.com/users/danawillow/orgs","repos_url":"https://api.github.com/users/danawillow/repos","events_url":"https://api.github.com/users/danawillow/events{/privacy}","received_events_url":"https://api.github.com/users/danawillow/received_events","type":"User","site_admin":false},"body":"This if statement isn't necessary since we already checked above if it's equal to 0","created_at":"2018-05-23T22:07:23Z","updated_at":"2018-05-23T22:11:56Z","html_url":"https://github.com/terraform-providers/terraform-provider-google/pull/1477#discussion_r190414141","pull_request_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/1477","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/comments/190414141"},"html":{"href":"https://github.com/terraform-providers/terraform-provider-google/pull/1477#discussion_r190414141"},"pull_request":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/1477"}}},"pull_request":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/1477","id":187521721,"html_url":"https://github.com/terraform-providers/terraform-provider-google/pull/1477","diff_url":"https://github.com/terraform-providers/terraform-provider-google/pull/1477.diff","patch_url":"https://github.com/terraform-providers/terraform-provider-google/pull/1477.patch","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1477","number":1477,"state":"open","locked":false,"title":"Added support for restoring default organization policies","user":{"login":"ortaman","id":10294130,"avatar_url":"https://avatars1.githubusercontent.com/u/10294130?v=4","gravatar_id":"","url":"https://api.github.com/users/ortaman","html_url":"https://github.com/ortaman","followers_url":"https://api.github.com/users/ortaman/followers","following_url":"https://api.github.com/users/ortaman/following{/other_user}","gists_url":"https://api.github.com/users/ortaman/gists{/gist_id}","starred_url":"https://api.github.com/users/ortaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ortaman/subscriptions","organizations_url":"https://api.github.com/users/ortaman/orgs","repos_url":"https://api.github.com/users/ortaman/repos","events_url":"https://api.github.com/users/ortaman/events{/privacy}","received_events_url":"https://api.github.com/users/ortaman/received_events","type":"User","site_admin":false},"body":"To the enhancement: https://github.com/terraform-providers/terraform-provider-google/issues/1239","created_at":"2018-05-11T17:17:53Z","updated_at":"2018-05-23T22:11:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04024bb782893b3a2d13fdd32d74b743f4a3432e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/1477/commits","review_comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/1477/comments","review_comment_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/comments{/number}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1477/comments","statuses_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/statuses/4722e1281e669f86e1baf22a0fdc9fb1ffa07ddf","head":{"label":"ortaman:master","ref":"master","sha":"4722e1281e669f86e1baf22a0fdc9fb1ffa07ddf","user":{"login":"ortaman","id":10294130,"avatar_url":"https://avatars1.githubusercontent.com/u/10294130?v=4","gravatar_id":"","url":"https://api.github.com/users/ortaman","html_url":"https://github.com/ortaman","followers_url":"https://api.github.com/users/ortaman/followers","following_url":"https://api.github.com/users/ortaman/following{/other_user}","gists_url":"https://api.github.com/users/ortaman/gists{/gist_id}","starred_url":"https://api.github.com/users/ortaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ortaman/subscriptions","organizations_url":"https://api.github.com/users/ortaman/orgs","repos_url":"https://api.github.com/users/ortaman/repos","events_url":"https://api.github.com/users/ortaman/events{/privacy}","received_events_url":"https://api.github.com/users/ortaman/received_events","type":"User","site_admin":false},"repo":{"id":132866113,"name":"terraform-provider-google","full_name":"ortaman/terraform-provider-google","owner":{"login":"ortaman","id":10294130,"avatar_url":"https://avatars1.githubusercontent.com/u/10294130?v=4","gravatar_id":"","url":"https://api.github.com/users/ortaman","html_url":"https://github.com/ortaman","followers_url":"https://api.github.com/users/ortaman/followers","following_url":"https://api.github.com/users/ortaman/following{/other_user}","gists_url":"https://api.github.com/users/ortaman/gists{/gist_id}","starred_url":"https://api.github.com/users/ortaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ortaman/subscriptions","organizations_url":"https://api.github.com/users/ortaman/orgs","repos_url":"https://api.github.com/users/ortaman/repos","events_url":"https://api.github.com/users/ortaman/events{/privacy}","received_events_url":"https://api.github.com/users/ortaman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ortaman/terraform-provider-google","description":"Terraform Google Cloud provider","fork":true,"url":"https://api.github.com/repos/ortaman/terraform-provider-google","forks_url":"https://api.github.com/repos/ortaman/terraform-provider-google/forks","keys_url":"https://api.github.com/repos/ortaman/terraform-provider-google/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ortaman/terraform-provider-google/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ortaman/terraform-provider-google/teams","hooks_url":"https://api.github.com/repos/ortaman/terraform-provider-google/hooks","issue_events_url":"https://api.github.com/repos/ortaman/terraform-provider-google/issues/events{/number}","events_url":"https://api.github.com/repos/ortaman/terraform-provider-google/events","assignees_url":"https://api.github.com/repos/ortaman/terraform-provider-google/assignees{/user}","branches_url":"https://api.github.com/repos/ortaman/terraform-provider-google/branches{/branch}","tags_url":"https://api.github.com/repos/ortaman/terraform-provider-google/tags","blobs_url":"https://api.github.com/repos/ortaman/terraform-provider-google/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ortaman/terraform-provider-google/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ortaman/terraform-provider-google/git/refs{/sha}","trees_url":"https://api.github.com/repos/ortaman/terraform-provider-google/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ortaman/terraform-provider-google/statuses/{sha}","languages_url":"https://api.github.com/repos/ortaman/terraform-provider-google/languages","stargazers_url":"https://api.github.com/repos/ortaman/terraform-provider-google/stargazers","contributors_url":"https://api.github.com/repos/ortaman/terraform-provider-google/contributors","subscribers_url":"https://api.github.com/repos/ortaman/terraform-provider-google/subscribers","subscription_url":"https://api.github.com/repos/ortaman/terraform-provider-google/subscription","commits_url":"https://api.github.com/repos/ortaman/terraform-provider-google/commits{/sha}","git_commits_url":"https://api.github.com/repos/ortaman/terraform-provider-google/git/commits{/sha}","comments_url":"https://api.github.com/repos/ortaman/terraform-provider-google/comments{/number}","issue_comment_url":"https://api.github.com/repos/ortaman/terraform-provider-google/issues/comments{/number}","contents_url":"https://api.github.com/repos/ortaman/terraform-provider-google/contents/{+path}","compare_url":"https://api.github.com/repos/ortaman/terraform-provider-google/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ortaman/terraform-provider-google/merges","archive_url":"https://api.github.com/repos/ortaman/terraform-provider-google/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ortaman/terraform-provider-google/downloads","issues_url":"https://api.github.com/repos/ortaman/terraform-provider-google/issues{/number}","pulls_url":"https://api.github.com/repos/ortaman/terraform-provider-google/pulls{/number}","milestones_url":"https://api.github.com/repos/ortaman/terraform-provider-google/milestones{/number}","notifications_url":"https://api.github.com/repos/ortaman/terraform-provider-google/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ortaman/terraform-provider-google/labels{/name}","releases_url":"https://api.github.com/repos/ortaman/terraform-provider-google/releases{/id}","deployments_url":"https://api.github.com/repos/ortaman/terraform-provider-google/deployments","created_at":"2018-05-10T07:42:01Z","updated_at":"2018-05-15T16:33:28Z","pushed_at":"2018-05-22T17:23:59Z","git_url":"git://github.com/ortaman/terraform-provider-google.git","ssh_url":"git@github.com:ortaman/terraform-provider-google.git","clone_url":"https://github.com/ortaman/terraform-provider-google.git","svn_url":"https://github.com/ortaman/terraform-provider-google","homepage":"https://www.terraform.io/docs/providers/google/","size":10846,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"terraform-providers:master","ref":"master","sha":"612be33ab94e103be23de3e850d0c2c98e386f75","user":{"login":"terraform-providers","id":29154831,"avatar_url":"https://avatars0.githubusercontent.com/u/29154831?v=4","gravatar_id":"","url":"https://api.github.com/users/terraform-providers","html_url":"https://github.com/terraform-providers","followers_url":"https://api.github.com/users/terraform-providers/followers","following_url":"https://api.github.com/users/terraform-providers/following{/other_user}","gists_url":"https://api.github.com/users/terraform-providers/gists{/gist_id}","starred_url":"https://api.github.com/users/terraform-providers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terraform-providers/subscriptions","organizations_url":"https://api.github.com/users/terraform-providers/orgs","repos_url":"https://api.github.com/users/terraform-providers/repos","events_url":"https://api.github.com/users/terraform-providers/events{/privacy}","received_events_url":"https://api.github.com/users/terraform-providers/received_events","type":"Organization","site_admin":false},"repo":{"id":93446075,"name":"terraform-provider-google","full_name":"terraform-providers/terraform-provider-google","owner":{"login":"terraform-providers","id":29154831,"avatar_url":"https://avatars0.githubusercontent.com/u/29154831?v=4","gravatar_id":"","url":"https://api.github.com/users/terraform-providers","html_url":"https://github.com/terraform-providers","followers_url":"https://api.github.com/users/terraform-providers/followers","following_url":"https://api.github.com/users/terraform-providers/following{/other_user}","gists_url":"https://api.github.com/users/terraform-providers/gists{/gist_id}","starred_url":"https://api.github.com/users/terraform-providers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terraform-providers/subscriptions","organizations_url":"https://api.github.com/users/terraform-providers/orgs","repos_url":"https://api.github.com/users/terraform-providers/repos","events_url":"https://api.github.com/users/terraform-providers/events{/privacy}","received_events_url":"https://api.github.com/users/terraform-providers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/terraform-providers/terraform-provider-google","description":"Terraform Google Cloud provider","fork":false,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google","forks_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/forks","keys_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/keys{/key_id}","collaborators_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/teams","hooks_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/hooks","issue_events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/events{/number}","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/events","assignees_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/assignees{/user}","branches_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/branches{/branch}","tags_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/tags","blobs_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/git/refs{/sha}","trees_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/git/trees{/sha}","statuses_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/statuses/{sha}","languages_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/languages","stargazers_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/stargazers","contributors_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/contributors","subscribers_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/subscribers","subscription_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/subscription","commits_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/commits{/sha}","git_commits_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/git/commits{/sha}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/comments{/number}","issue_comment_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/comments{/number}","contents_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/contents/{+path}","compare_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/compare/{base}...{head}","merges_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/merges","archive_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/downloads","issues_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues{/number}","pulls_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls{/number}","milestones_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/milestones{/number}","notifications_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/labels{/name}","releases_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/releases{/id}","deployments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/deployments","created_at":"2017-06-05T20:54:02Z","updated_at":"2018-05-23T21:53:52Z","pushed_at":"2018-05-23T22:02:17Z","git_url":"git://github.com/terraform-providers/terraform-provider-google.git","ssh_url":"git@github.com:terraform-providers/terraform-provider-google.git","clone_url":"https://github.com/terraform-providers/terraform-provider-google.git","svn_url":"https://github.com/terraform-providers/terraform-provider-google","homepage":"https://www.terraform.io/docs/providers/google/","size":11124,"stargazers_count":253,"watchers_count":253,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":213,"mirror_url":null,"archived":false,"open_issues_count":153,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":213,"open_issues":153,"watchers":253,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/1477"},"html":{"href":"https://github.com/terraform-providers/terraform-provider-google/pull/1477"},"issue":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1477"},"comments":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1477/comments"},"review_comments":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/1477/comments"},"review_comment":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/1477/commits"},"statuses":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/statuses/4722e1281e669f86e1baf22a0fdc9fb1ffa07ddf"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"danawillow"}}