{"action":"created","comment":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/comments/98981785","pull_request_review_id":19641621,"id":98981785,"diff_hunk":"@@ -0,0 +1,61 @@\n+package pagerduty\n+\n+import (\n+\t\"fmt\"\n+\t\"log\"\n+\n+\tpagerduty \"github.com/PagerDuty/go-pagerduty\"\n+\t\"github.com/hashicorp/terraform/helper/schema\"\n+)\n+\n+func dataSourcePagerDutySchedule() *schema.Resource {\n+\treturn &schema.Resource{\n+\t\tRead: dataSourcePagerDutyScheduleRead,\n+\n+\t\tSchema: map[string]*schema.Schema{\n+\t\t\t\"id\": {","path":"builtin/providers/pagerduty/data_source_pagerduty_schedule.go","position":null,"original_position":16,"commit_id":"0f1957d5a6c94baaabfc60b1e5cbadae0869b673","original_commit_id":"7de8675cd56f09932a19378bd3d0083fae6e85cb","user":{"login":"heimweh","id":13624191,"avatar_url":"https://avatars.githubusercontent.com/u/13624191?v=3","gravatar_id":"","url":"https://api.github.com/users/heimweh","html_url":"https://github.com/heimweh","followers_url":"https://api.github.com/users/heimweh/followers","following_url":"https://api.github.com/users/heimweh/following{/other_user}","gists_url":"https://api.github.com/users/heimweh/gists{/gist_id}","starred_url":"https://api.github.com/users/heimweh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heimweh/subscriptions","organizations_url":"https://api.github.com/users/heimweh/orgs","repos_url":"https://api.github.com/users/heimweh/repos","events_url":"https://api.github.com/users/heimweh/events{/privacy}","received_events_url":"https://api.github.com/users/heimweh/received_events","type":"User","site_admin":false},"body":"Pushed a fix now to both data sources 🙂 ","created_at":"2017-02-01T20:00:55Z","updated_at":"2017-02-01T20:00:55Z","html_url":"https://github.com/hashicorp/terraform/pull/11614#discussion_r98981785","pull_request_url":"https://api.github.com/repos/hashicorp/terraform/pulls/11614","_links":{"self":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/comments/98981785"},"html":{"href":"https://github.com/hashicorp/terraform/pull/11614#discussion_r98981785"},"pull_request":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/11614"}}},"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/11614","id":104194341,"html_url":"https://github.com/hashicorp/terraform/pull/11614","diff_url":"https://github.com/hashicorp/terraform/pull/11614.diff","patch_url":"https://github.com/hashicorp/terraform/pull/11614.patch","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/11614","number":11614,"state":"open","locked":false,"title":"provider/pagerduty: pagerduty_schedule data source","user":{"login":"heimweh","id":13624191,"avatar_url":"https://avatars.githubusercontent.com/u/13624191?v=3","gravatar_id":"","url":"https://api.github.com/users/heimweh","html_url":"https://github.com/heimweh","followers_url":"https://api.github.com/users/heimweh/followers","following_url":"https://api.github.com/users/heimweh/following{/other_user}","gists_url":"https://api.github.com/users/heimweh/gists{/gist_id}","starred_url":"https://api.github.com/users/heimweh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heimweh/subscriptions","organizations_url":"https://api.github.com/users/heimweh/orgs","repos_url":"https://api.github.com/users/heimweh/repos","events_url":"https://api.github.com/users/heimweh/events{/privacy}","received_events_url":"https://api.github.com/users/heimweh/received_events","type":"User","site_admin":false},"body":"This PR adds a new data source `pagerduty_schedule`\r\n\r\nSo far, the only thing we store is the actual ID of the resource, \r\nbut can easily be extended to export more attributes in the future.\r\n\r\nExample usage:\r\n```hcl\r\ndata \"pagerduty_schedule\" \"test\" {\r\n  name = \"Daily Engineering Rotation\"\r\n}\r\n\r\nresource \"pagerduty_escalation_policy\" \"test\" {\r\n  name      = \"Engineering Escalation Policy\"\r\n  num_loops = 2\r\n\r\n  rule {\r\n    escalation_delay_in_minutes = 10\r\n\r\n    target {\r\n      type = \"schedule_reference\"\r\n      id   = \"${data.pagerduty_schedule.test.id}\"\r\n    }\r\n  }\r\n}\r\n```","created_at":"2017-02-01T18:32:00Z","updated_at":"2017-02-01T20:00:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73c240f84bec9e34baf92bfcf0e4c33c248d4c14","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hashicorp/terraform/pulls/11614/commits","review_comments_url":"https://api.github.com/repos/hashicorp/terraform/pulls/11614/comments","review_comment_url":"https://api.github.com/repos/hashicorp/terraform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/11614/comments","statuses_url":"https://api.github.com/repos/hashicorp/terraform/statuses/0f1957d5a6c94baaabfc60b1e5cbadae0869b673","head":{"label":"heimweh:datasource_schedule","ref":"datasource_schedule","sha":"0f1957d5a6c94baaabfc60b1e5cbadae0869b673","user":{"login":"heimweh","id":13624191,"avatar_url":"https://avatars.githubusercontent.com/u/13624191?v=3","gravatar_id":"","url":"https://api.github.com/users/heimweh","html_url":"https://github.com/heimweh","followers_url":"https://api.github.com/users/heimweh/followers","following_url":"https://api.github.com/users/heimweh/following{/other_user}","gists_url":"https://api.github.com/users/heimweh/gists{/gist_id}","starred_url":"https://api.github.com/users/heimweh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heimweh/subscriptions","organizations_url":"https://api.github.com/users/heimweh/orgs","repos_url":"https://api.github.com/users/heimweh/repos","events_url":"https://api.github.com/users/heimweh/events{/privacy}","received_events_url":"https://api.github.com/users/heimweh/received_events","type":"User","site_admin":false},"repo":{"id":69055501,"name":"terraform","full_name":"heimweh/terraform","owner":{"login":"heimweh","id":13624191,"avatar_url":"https://avatars.githubusercontent.com/u/13624191?v=3","gravatar_id":"","url":"https://api.github.com/users/heimweh","html_url":"https://github.com/heimweh","followers_url":"https://api.github.com/users/heimweh/followers","following_url":"https://api.github.com/users/heimweh/following{/other_user}","gists_url":"https://api.github.com/users/heimweh/gists{/gist_id}","starred_url":"https://api.github.com/users/heimweh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heimweh/subscriptions","organizations_url":"https://api.github.com/users/heimweh/orgs","repos_url":"https://api.github.com/users/heimweh/repos","events_url":"https://api.github.com/users/heimweh/events{/privacy}","received_events_url":"https://api.github.com/users/heimweh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/heimweh/terraform","description":"Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.","fork":true,"url":"https://api.github.com/repos/heimweh/terraform","forks_url":"https://api.github.com/repos/heimweh/terraform/forks","keys_url":"https://api.github.com/repos/heimweh/terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heimweh/terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heimweh/terraform/teams","hooks_url":"https://api.github.com/repos/heimweh/terraform/hooks","issue_events_url":"https://api.github.com/repos/heimweh/terraform/issues/events{/number}","events_url":"https://api.github.com/repos/heimweh/terraform/events","assignees_url":"https://api.github.com/repos/heimweh/terraform/assignees{/user}","branches_url":"https://api.github.com/repos/heimweh/terraform/branches{/branch}","tags_url":"https://api.github.com/repos/heimweh/terraform/tags","blobs_url":"https://api.github.com/repos/heimweh/terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heimweh/terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heimweh/terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/heimweh/terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heimweh/terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/heimweh/terraform/languages","stargazers_url":"https://api.github.com/repos/heimweh/terraform/stargazers","contributors_url":"https://api.github.com/repos/heimweh/terraform/contributors","subscribers_url":"https://api.github.com/repos/heimweh/terraform/subscribers","subscription_url":"https://api.github.com/repos/heimweh/terraform/subscription","commits_url":"https://api.github.com/repos/heimweh/terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/heimweh/terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/heimweh/terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/heimweh/terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/heimweh/terraform/contents/{+path}","compare_url":"https://api.github.com/repos/heimweh/terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heimweh/terraform/merges","archive_url":"https://api.github.com/repos/heimweh/terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heimweh/terraform/downloads","issues_url":"https://api.github.com/repos/heimweh/terraform/issues{/number}","pulls_url":"https://api.github.com/repos/heimweh/terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/heimweh/terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/heimweh/terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heimweh/terraform/labels{/name}","releases_url":"https://api.github.com/repos/heimweh/terraform/releases{/id}","deployments_url":"https://api.github.com/repos/heimweh/terraform/deployments","created_at":"2016-09-23T19:41:17Z","updated_at":"2016-09-23T19:41:27Z","pushed_at":"2017-02-01T19:57:47Z","git_url":"git://github.com/heimweh/terraform.git","ssh_url":"git@github.com:heimweh/terraform.git","clone_url":"https://github.com/heimweh/terraform.git","svn_url":"https://github.com/heimweh/terraform","homepage":"https://www.terraform.io/","size":77455,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"hashicorp:master","ref":"master","sha":"b51edd61759e6a58a6e73cb57d566488d11a0df2","user":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"repo":{"id":17728164,"name":"terraform","full_name":"hashicorp/terraform","owner":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashicorp/terraform","description":"Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.","fork":false,"url":"https://api.github.com/repos/hashicorp/terraform","forks_url":"https://api.github.com/repos/hashicorp/terraform/forks","keys_url":"https://api.github.com/repos/hashicorp/terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashicorp/terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashicorp/terraform/teams","hooks_url":"https://api.github.com/repos/hashicorp/terraform/hooks","issue_events_url":"https://api.github.com/repos/hashicorp/terraform/issues/events{/number}","events_url":"https://api.github.com/repos/hashicorp/terraform/events","assignees_url":"https://api.github.com/repos/hashicorp/terraform/assignees{/user}","branches_url":"https://api.github.com/repos/hashicorp/terraform/branches{/branch}","tags_url":"https://api.github.com/repos/hashicorp/terraform/tags","blobs_url":"https://api.github.com/repos/hashicorp/terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashicorp/terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashicorp/terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashicorp/terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashicorp/terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/hashicorp/terraform/languages","stargazers_url":"https://api.github.com/repos/hashicorp/terraform/stargazers","contributors_url":"https://api.github.com/repos/hashicorp/terraform/contributors","subscribers_url":"https://api.github.com/repos/hashicorp/terraform/subscribers","subscription_url":"https://api.github.com/repos/hashicorp/terraform/subscription","commits_url":"https://api.github.com/repos/hashicorp/terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashicorp/terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashicorp/terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashicorp/terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashicorp/terraform/contents/{+path}","compare_url":"https://api.github.com/repos/hashicorp/terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashicorp/terraform/merges","archive_url":"https://api.github.com/repos/hashicorp/terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashicorp/terraform/downloads","issues_url":"https://api.github.com/repos/hashicorp/terraform/issues{/number}","pulls_url":"https://api.github.com/repos/hashicorp/terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/hashicorp/terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/hashicorp/terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashicorp/terraform/labels{/name}","releases_url":"https://api.github.com/repos/hashicorp/terraform/releases{/id}","deployments_url":"https://api.github.com/repos/hashicorp/terraform/deployments","created_at":"2014-03-13T22:25:48Z","updated_at":"2017-02-01T19:51:30Z","pushed_at":"2017-02-01T19:57:49Z","git_url":"git://github.com/hashicorp/terraform.git","ssh_url":"git@github.com:hashicorp/terraform.git","clone_url":"https://github.com/hashicorp/terraform.git","svn_url":"https://github.com/hashicorp/terraform","homepage":"https://www.terraform.io/","size":78215,"stargazers_count":6929,"watchers_count":6929,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2503,"mirror_url":null,"open_issues_count":1723,"forks":2503,"open_issues":1723,"watchers":6929,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/11614"},"html":{"href":"https://github.com/hashicorp/terraform/pull/11614"},"issue":{"href":"https://api.github.com/repos/hashicorp/terraform/issues/11614"},"comments":{"href":"https://api.github.com/repos/hashicorp/terraform/issues/11614/comments"},"review_comments":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/11614/comments"},"review_comment":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/11614/commits"},"statuses":{"href":"https://api.github.com/repos/hashicorp/terraform/statuses/0f1957d5a6c94baaabfc60b1e5cbadae0869b673"}}}}
{"actor":{"display_login":"heimweh"}}