{"action":"created","comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/comments/234833602","pull_request_review_id":176560533,"id":234833602,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDgzMzYwMg==","diff_hunk":"@@ -530,11 +530,17 @@ func expandEventTrigger(configured []interface{}, project string) *cloudfunction\n \t\tshape = \"projects/%s/buckets/%s\"\n \tcase strings.HasPrefix(eventType, \"google.pubsub.topic.\"):\n \t\tshape = \"projects/%s/topics/%s\"\n+\tcase strings.HasPrefix(eventType, \"google.firestore.document.\"):\n+\t\tshape = \"projects/%s/databases/(default)/documents/%s\"\n \t// Legacy style triggers\n \tcase strings.HasPrefix(eventType, \"providers/cloud.storage/eventTypes/\"):\n \t\tshape = \"projects/%s/buckets/%s\"\n \tcase strings.HasPrefix(eventType, \"providers/cloud.pubsub/eventTypes/\"):\n \t\tshape = \"projects/%s/topics/%s\"\n+\tcase strings.HasPrefix(eventType, \"providers/cloud.firestore/eventTypes/\"):\n+\t\tshape = \"projects/%s/databases/(default)/documents/%s\"","path":"google/resource_cloudfunctions_function.go","position":7,"original_position":12,"commit_id":"44da51664507774e557ae16f4546181f744e75c6","original_commit_id":"0055617de13c5a56187e4f3630e766e1a74b06a2","user":{"login":"matthewrj","id":11561974,"node_id":"MDQ6VXNlcjExNTYxOTc0","avatar_url":"https://avatars0.githubusercontent.com/u/11561974?v=4","gravatar_id":"","url":"https://api.github.com/users/matthewrj","html_url":"https://github.com/matthewrj","followers_url":"https://api.github.com/users/matthewrj/followers","following_url":"https://api.github.com/users/matthewrj/following{/other_user}","gists_url":"https://api.github.com/users/matthewrj/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrj/subscriptions","organizations_url":"https://api.github.com/users/matthewrj/orgs","repos_url":"https://api.github.com/users/matthewrj/repos","events_url":"https://api.github.com/users/matthewrj/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrj/received_events","type":"User","site_admin":false},"body":"I have added a comment.","created_at":"2018-11-20T00:37:05Z","updated_at":"2018-11-20T00:37:05Z","html_url":"https://github.com/terraform-providers/terraform-provider-google/pull/2480#discussion_r234833602","pull_request_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/2480","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/comments/234833602"},"html":{"href":"https://github.com/terraform-providers/terraform-provider-google/pull/2480#discussion_r234833602"},"pull_request":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/2480"}},"in_reply_to_id":234302613},"pull_request":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/2480","id":231068583,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxMDY4NTgz","html_url":"https://github.com/terraform-providers/terraform-provider-google/pull/2480","diff_url":"https://github.com/terraform-providers/terraform-provider-google/pull/2480.diff","patch_url":"https://github.com/terraform-providers/terraform-provider-google/pull/2480.patch","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/2480","number":2480,"state":"open","locked":false,"title":"support firestore cloud function triggers","user":{"login":"matthewrj","id":11561974,"node_id":"MDQ6VXNlcjExNTYxOTc0","avatar_url":"https://avatars0.githubusercontent.com/u/11561974?v=4","gravatar_id":"","url":"https://api.github.com/users/matthewrj","html_url":"https://github.com/matthewrj","followers_url":"https://api.github.com/users/matthewrj/followers","following_url":"https://api.github.com/users/matthewrj/following{/other_user}","gists_url":"https://api.github.com/users/matthewrj/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrj/subscriptions","organizations_url":"https://api.github.com/users/matthewrj/orgs","repos_url":"https://api.github.com/users/matthewrj/repos","events_url":"https://api.github.com/users/matthewrj/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrj/received_events","type":"User","site_admin":false},"body":"This PR adds support for firestore event triggers for cloud functions.\r\n\r\nThe docs for firestore events can be found here: https://cloud.google.com/functions/docs/calling/cloud-firestore","created_at":"2018-11-15T04:55:58Z","updated_at":"2018-11-20T00:37:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c54cd88937c71984a7268535e0825cf5d7f61bad","assignee":{"login":"rileykarson","id":2080520,"node_id":"MDQ6VXNlcjIwODA1MjA=","avatar_url":"https://avatars2.githubusercontent.com/u/2080520?v=4","gravatar_id":"","url":"https://api.github.com/users/rileykarson","html_url":"https://github.com/rileykarson","followers_url":"https://api.github.com/users/rileykarson/followers","following_url":"https://api.github.com/users/rileykarson/following{/other_user}","gists_url":"https://api.github.com/users/rileykarson/gists{/gist_id}","starred_url":"https://api.github.com/users/rileykarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rileykarson/subscriptions","organizations_url":"https://api.github.com/users/rileykarson/orgs","repos_url":"https://api.github.com/users/rileykarson/repos","events_url":"https://api.github.com/users/rileykarson/events{/privacy}","received_events_url":"https://api.github.com/users/rileykarson/received_events","type":"User","site_admin":false},"assignees":[{"login":"rileykarson","id":2080520,"node_id":"MDQ6VXNlcjIwODA1MjA=","avatar_url":"https://avatars2.githubusercontent.com/u/2080520?v=4","gravatar_id":"","url":"https://api.github.com/users/rileykarson","html_url":"https://github.com/rileykarson","followers_url":"https://api.github.com/users/rileykarson/followers","following_url":"https://api.github.com/users/rileykarson/following{/other_user}","gists_url":"https://api.github.com/users/rileykarson/gists{/gist_id}","starred_url":"https://api.github.com/users/rileykarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rileykarson/subscriptions","organizations_url":"https://api.github.com/users/rileykarson/orgs","repos_url":"https://api.github.com/users/rileykarson/repos","events_url":"https://api.github.com/users/rileykarson/events{/privacy}","received_events_url":"https://api.github.com/users/rileykarson/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":737832350,"node_id":"MDU6TGFiZWw3Mzc4MzIzNTA=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/labels/size/M","name":"size/M","color":"ffffff","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/2480/commits","review_comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/2480/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/2480/comments","statuses_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/statuses/44da51664507774e557ae16f4546181f744e75c6","head":{"label":"matthewrj:2.0.0","ref":"2.0.0","sha":"44da51664507774e557ae16f4546181f744e75c6","user":{"login":"matthewrj","id":11561974,"node_id":"MDQ6VXNlcjExNTYxOTc0","avatar_url":"https://avatars0.githubusercontent.com/u/11561974?v=4","gravatar_id":"","url":"https://api.github.com/users/matthewrj","html_url":"https://github.com/matthewrj","followers_url":"https://api.github.com/users/matthewrj/followers","following_url":"https://api.github.com/users/matthewrj/following{/other_user}","gists_url":"https://api.github.com/users/matthewrj/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrj/subscriptions","organizations_url":"https://api.github.com/users/matthewrj/orgs","repos_url":"https://api.github.com/users/matthewrj/repos","events_url":"https://api.github.com/users/matthewrj/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrj/received_events","type":"User","site_admin":false},"repo":{"id":127853092,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc4NTMwOTI=","name":"terraform-provider-google","full_name":"matthewrj/terraform-provider-google","private":false,"owner":{"login":"matthewrj","id":11561974,"node_id":"MDQ6VXNlcjExNTYxOTc0","avatar_url":"https://avatars0.githubusercontent.com/u/11561974?v=4","gravatar_id":"","url":"https://api.github.com/users/matthewrj","html_url":"https://github.com/matthewrj","followers_url":"https://api.github.com/users/matthewrj/followers","following_url":"https://api.github.com/users/matthewrj/following{/other_user}","gists_url":"https://api.github.com/users/matthewrj/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrj/subscriptions","organizations_url":"https://api.github.com/users/matthewrj/orgs","repos_url":"https://api.github.com/users/matthewrj/repos","events_url":"https://api.github.com/users/matthewrj/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrj/received_events","type":"User","site_admin":false},"html_url":"https://github.com/matthewrj/terraform-provider-google","description":"Terraform Google Cloud provider","fork":true,"url":"https://api.github.com/repos/matthewrj/terraform-provider-google","forks_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/forks","keys_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/teams","hooks_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/hooks","issue_events_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/issues/events{/number}","events_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/events","assignees_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/assignees{/user}","branches_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/branches{/branch}","tags_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/tags","blobs_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/statuses/{sha}","languages_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/languages","stargazers_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/stargazers","contributors_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/contributors","subscribers_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/subscribers","subscription_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/subscription","commits_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/contents/{+path}","compare_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/merges","archive_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/downloads","issues_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/issues{/number}","pulls_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/pulls{/number}","milestones_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/milestones{/number}","notifications_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/labels{/name}","releases_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/releases{/id}","deployments_url":"https://api.github.com/repos/matthewrj/terraform-provider-google/deployments","created_at":"2018-04-03T04:58:39Z","updated_at":"2018-04-03T20:10:45Z","pushed_at":"2018-11-20T00:34:02Z","git_url":"git://github.com/matthewrj/terraform-provider-google.git","ssh_url":"git@github.com:matthewrj/terraform-provider-google.git","clone_url":"https://github.com/matthewrj/terraform-provider-google.git","svn_url":"https://github.com/matthewrj/terraform-provider-google","homepage":"https://www.terraform.io/docs/providers/google/","size":16700,"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","node_id":"MDc6TGljZW5zZTE0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"terraform-providers:2.0.0","ref":"2.0.0","sha":"537bff8695d1d52d51ec4f96993a910526dfc2b2","user":{"login":"terraform-providers","id":29154831,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTU0ODMx","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,"node_id":"MDEwOlJlcG9zaXRvcnk5MzQ0NjA3NQ==","name":"terraform-provider-google","full_name":"terraform-providers/terraform-provider-google","private":false,"owner":{"login":"terraform-providers","id":29154831,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTU0ODMx","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},"html_url":"https://github.com/terraform-providers/terraform-provider-google","description":"Terraform Google Cloud Platform 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-11-19T23:38:51Z","pushed_at":"2018-11-20T00:34:03Z","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":19184,"stargazers_count":451,"watchers_count":451,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":361,"mirror_url":null,"archived":false,"open_issues_count":234,"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","node_id":"MDc6TGljZW5zZTE0"},"forks":361,"open_issues":234,"watchers":451,"default_branch":"2.0.0"}},"_links":{"self":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/2480"},"html":{"href":"https://github.com/terraform-providers/terraform-provider-google/pull/2480"},"issue":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/2480"},"comments":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/2480/comments"},"review_comments":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/pulls/2480/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/2480/commits"},"statuses":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-google/statuses/44da51664507774e557ae16f4546181f744e75c6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"matthewrj"}}