{"action":"closed","number":1866,"pull_request":{"url":"https://api.github.com/repos/pulumi/pulumi/pulls/1866","id":212603569,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNjAzNTY5","html_url":"https://github.com/pulumi/pulumi/pull/1866","diff_url":"https://github.com/pulumi/pulumi/pull/1866.diff","patch_url":"https://github.com/pulumi/pulumi/pull/1866.patch","issue_url":"https://api.github.com/repos/pulumi/pulumi/issues/1866","number":1866,"state":"closed","locked":false,"title":"Allow promise exports","user":{"login":"joeduffy","id":3953235,"node_id":"MDQ6VXNlcjM5NTMyMzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3953235?v=4","gravatar_id":"","url":"https://api.github.com/users/joeduffy","html_url":"https://github.com/joeduffy","followers_url":"https://api.github.com/users/joeduffy/followers","following_url":"https://api.github.com/users/joeduffy/following{/other_user}","gists_url":"https://api.github.com/users/joeduffy/gists{/gist_id}","starred_url":"https://api.github.com/users/joeduffy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeduffy/subscriptions","organizations_url":"https://api.github.com/users/joeduffy/orgs","repos_url":"https://api.github.com/users/joeduffy/repos","events_url":"https://api.github.com/users/joeduffy/events{/privacy}","received_events_url":"https://api.github.com/users/joeduffy/received_events","type":"User","site_admin":false},"body":"This change partly addresses pulumi/pulumi#1611, by permitting you\r\nto export a promise at the top-level, and have it be recognized as\r\na stack output. In other words, you can now say things like\r\n\r\n    async function main() {\r\n        ...\r\n        return {\r\n            a: \"x\",\r\n            ...,\r\n            z: 42,\r\n        };\r\n    }\r\n\r\n    module.exports = main();\r\n\r\nand your Pulumi program will record distinct outputs as you'd hope:\r\n\r\n    ---outputs:---\r\n    a: \"x\"\r\n    ...\r\n    z: 42\r\n\r\nThis is arguably just a bug in the way we implemented stack outputs.\r\nThe remainder of the requests in #1611 will remain open for future\r\ndesign and discussion, as they have more subtle ramifications.","created_at":"2018-09-02T17:41:38Z","updated_at":"2018-09-02T20:50:09Z","closed_at":"2018-09-02T20:50:08Z","merged_at":"2018-09-02T20:50:08Z","merge_commit_sha":"35b78abcf4e693b359caa1797fe38ee23059df67","assignee":null,"assignees":[],"requested_reviewers":[{"login":"pgavlin","id":1224093,"node_id":"MDQ6VXNlcjEyMjQwOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1224093?v=4","gravatar_id":"","url":"https://api.github.com/users/pgavlin","html_url":"https://github.com/pgavlin","followers_url":"https://api.github.com/users/pgavlin/followers","following_url":"https://api.github.com/users/pgavlin/following{/other_user}","gists_url":"https://api.github.com/users/pgavlin/gists{/gist_id}","starred_url":"https://api.github.com/users/pgavlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgavlin/subscriptions","organizations_url":"https://api.github.com/users/pgavlin/orgs","repos_url":"https://api.github.com/users/pgavlin/repos","events_url":"https://api.github.com/users/pgavlin/events{/privacy}","received_events_url":"https://api.github.com/users/pgavlin/received_events","type":"User","site_admin":false},{"login":"swgillespie","id":1871912,"node_id":"MDQ6VXNlcjE4NzE5MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1871912?v=4","gravatar_id":"","url":"https://api.github.com/users/swgillespie","html_url":"https://github.com/swgillespie","followers_url":"https://api.github.com/users/swgillespie/followers","following_url":"https://api.github.com/users/swgillespie/following{/other_user}","gists_url":"https://api.github.com/users/swgillespie/gists{/gist_id}","starred_url":"https://api.github.com/users/swgillespie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swgillespie/subscriptions","organizations_url":"https://api.github.com/users/swgillespie/orgs","repos_url":"https://api.github.com/users/swgillespie/repos","events_url":"https://api.github.com/users/swgillespie/events{/privacy}","received_events_url":"https://api.github.com/users/swgillespie/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pulumi/pulumi/pulls/1866/commits","review_comments_url":"https://api.github.com/repos/pulumi/pulumi/pulls/1866/comments","review_comment_url":"https://api.github.com/repos/pulumi/pulumi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pulumi/pulumi/issues/1866/comments","statuses_url":"https://api.github.com/repos/pulumi/pulumi/statuses/fb6c0a43f5a38ef42b6b061c779db7edf541fd6c","head":{"label":"pulumi:joeduffy/1611_allow_promise_exports","ref":"joeduffy/1611_allow_promise_exports","sha":"fb6c0a43f5a38ef42b6b061c779db7edf541fd6c","user":{"login":"pulumi","id":21992475,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTkyNDc1","avatar_url":"https://avatars0.githubusercontent.com/u/21992475?v=4","gravatar_id":"","url":"https://api.github.com/users/pulumi","html_url":"https://github.com/pulumi","followers_url":"https://api.github.com/users/pulumi/followers","following_url":"https://api.github.com/users/pulumi/following{/other_user}","gists_url":"https://api.github.com/users/pulumi/gists{/gist_id}","starred_url":"https://api.github.com/users/pulumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulumi/subscriptions","organizations_url":"https://api.github.com/users/pulumi/orgs","repos_url":"https://api.github.com/users/pulumi/repos","events_url":"https://api.github.com/users/pulumi/events{/privacy}","received_events_url":"https://api.github.com/users/pulumi/received_events","type":"Organization","site_admin":false},"repo":{"id":72477752,"node_id":"MDEwOlJlcG9zaXRvcnk3MjQ3Nzc1Mg==","name":"pulumi","full_name":"pulumi/pulumi","owner":{"login":"pulumi","id":21992475,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTkyNDc1","avatar_url":"https://avatars0.githubusercontent.com/u/21992475?v=4","gravatar_id":"","url":"https://api.github.com/users/pulumi","html_url":"https://github.com/pulumi","followers_url":"https://api.github.com/users/pulumi/followers","following_url":"https://api.github.com/users/pulumi/following{/other_user}","gists_url":"https://api.github.com/users/pulumi/gists{/gist_id}","starred_url":"https://api.github.com/users/pulumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulumi/subscriptions","organizations_url":"https://api.github.com/users/pulumi/orgs","repos_url":"https://api.github.com/users/pulumi/repos","events_url":"https://api.github.com/users/pulumi/events{/privacy}","received_events_url":"https://api.github.com/users/pulumi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulumi/pulumi","description":"Pulumi is a cloud native infrastructure as code platform. Build cloud apps and infrastructure in your favorite language, and continuously deploy them to any cloud, no YAML required.","fork":false,"url":"https://api.github.com/repos/pulumi/pulumi","forks_url":"https://api.github.com/repos/pulumi/pulumi/forks","keys_url":"https://api.github.com/repos/pulumi/pulumi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulumi/pulumi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulumi/pulumi/teams","hooks_url":"https://api.github.com/repos/pulumi/pulumi/hooks","issue_events_url":"https://api.github.com/repos/pulumi/pulumi/issues/events{/number}","events_url":"https://api.github.com/repos/pulumi/pulumi/events","assignees_url":"https://api.github.com/repos/pulumi/pulumi/assignees{/user}","branches_url":"https://api.github.com/repos/pulumi/pulumi/branches{/branch}","tags_url":"https://api.github.com/repos/pulumi/pulumi/tags","blobs_url":"https://api.github.com/repos/pulumi/pulumi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulumi/pulumi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulumi/pulumi/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulumi/pulumi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulumi/pulumi/statuses/{sha}","languages_url":"https://api.github.com/repos/pulumi/pulumi/languages","stargazers_url":"https://api.github.com/repos/pulumi/pulumi/stargazers","contributors_url":"https://api.github.com/repos/pulumi/pulumi/contributors","subscribers_url":"https://api.github.com/repos/pulumi/pulumi/subscribers","subscription_url":"https://api.github.com/repos/pulumi/pulumi/subscription","commits_url":"https://api.github.com/repos/pulumi/pulumi/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulumi/pulumi/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulumi/pulumi/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulumi/pulumi/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulumi/pulumi/contents/{+path}","compare_url":"https://api.github.com/repos/pulumi/pulumi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulumi/pulumi/merges","archive_url":"https://api.github.com/repos/pulumi/pulumi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulumi/pulumi/downloads","issues_url":"https://api.github.com/repos/pulumi/pulumi/issues{/number}","pulls_url":"https://api.github.com/repos/pulumi/pulumi/pulls{/number}","milestones_url":"https://api.github.com/repos/pulumi/pulumi/milestones{/number}","notifications_url":"https://api.github.com/repos/pulumi/pulumi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulumi/pulumi/labels{/name}","releases_url":"https://api.github.com/repos/pulumi/pulumi/releases{/id}","deployments_url":"https://api.github.com/repos/pulumi/pulumi/deployments","created_at":"2016-10-31T21:02:47Z","updated_at":"2018-09-02T18:58:54Z","pushed_at":"2018-09-02T20:50:08Z","git_url":"git://github.com/pulumi/pulumi.git","ssh_url":"git@github.com:pulumi/pulumi.git","clone_url":"https://github.com/pulumi/pulumi.git","svn_url":"https://github.com/pulumi/pulumi","homepage":"https://pulumi.io","size":18741,"stargazers_count":1141,"watchers_count":1141,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":268,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":34,"open_issues":268,"watchers":1141,"default_branch":"master"}},"base":{"label":"pulumi:master","ref":"master","sha":"143d548b350fe940d64fce13a612c8224d16c421","user":{"login":"pulumi","id":21992475,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTkyNDc1","avatar_url":"https://avatars0.githubusercontent.com/u/21992475?v=4","gravatar_id":"","url":"https://api.github.com/users/pulumi","html_url":"https://github.com/pulumi","followers_url":"https://api.github.com/users/pulumi/followers","following_url":"https://api.github.com/users/pulumi/following{/other_user}","gists_url":"https://api.github.com/users/pulumi/gists{/gist_id}","starred_url":"https://api.github.com/users/pulumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulumi/subscriptions","organizations_url":"https://api.github.com/users/pulumi/orgs","repos_url":"https://api.github.com/users/pulumi/repos","events_url":"https://api.github.com/users/pulumi/events{/privacy}","received_events_url":"https://api.github.com/users/pulumi/received_events","type":"Organization","site_admin":false},"repo":{"id":72477752,"node_id":"MDEwOlJlcG9zaXRvcnk3MjQ3Nzc1Mg==","name":"pulumi","full_name":"pulumi/pulumi","owner":{"login":"pulumi","id":21992475,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTkyNDc1","avatar_url":"https://avatars0.githubusercontent.com/u/21992475?v=4","gravatar_id":"","url":"https://api.github.com/users/pulumi","html_url":"https://github.com/pulumi","followers_url":"https://api.github.com/users/pulumi/followers","following_url":"https://api.github.com/users/pulumi/following{/other_user}","gists_url":"https://api.github.com/users/pulumi/gists{/gist_id}","starred_url":"https://api.github.com/users/pulumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulumi/subscriptions","organizations_url":"https://api.github.com/users/pulumi/orgs","repos_url":"https://api.github.com/users/pulumi/repos","events_url":"https://api.github.com/users/pulumi/events{/privacy}","received_events_url":"https://api.github.com/users/pulumi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulumi/pulumi","description":"Pulumi is a cloud native infrastructure as code platform. Build cloud apps and infrastructure in your favorite language, and continuously deploy them to any cloud, no YAML required.","fork":false,"url":"https://api.github.com/repos/pulumi/pulumi","forks_url":"https://api.github.com/repos/pulumi/pulumi/forks","keys_url":"https://api.github.com/repos/pulumi/pulumi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulumi/pulumi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulumi/pulumi/teams","hooks_url":"https://api.github.com/repos/pulumi/pulumi/hooks","issue_events_url":"https://api.github.com/repos/pulumi/pulumi/issues/events{/number}","events_url":"https://api.github.com/repos/pulumi/pulumi/events","assignees_url":"https://api.github.com/repos/pulumi/pulumi/assignees{/user}","branches_url":"https://api.github.com/repos/pulumi/pulumi/branches{/branch}","tags_url":"https://api.github.com/repos/pulumi/pulumi/tags","blobs_url":"https://api.github.com/repos/pulumi/pulumi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulumi/pulumi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulumi/pulumi/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulumi/pulumi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulumi/pulumi/statuses/{sha}","languages_url":"https://api.github.com/repos/pulumi/pulumi/languages","stargazers_url":"https://api.github.com/repos/pulumi/pulumi/stargazers","contributors_url":"https://api.github.com/repos/pulumi/pulumi/contributors","subscribers_url":"https://api.github.com/repos/pulumi/pulumi/subscribers","subscription_url":"https://api.github.com/repos/pulumi/pulumi/subscription","commits_url":"https://api.github.com/repos/pulumi/pulumi/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulumi/pulumi/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulumi/pulumi/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulumi/pulumi/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulumi/pulumi/contents/{+path}","compare_url":"https://api.github.com/repos/pulumi/pulumi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulumi/pulumi/merges","archive_url":"https://api.github.com/repos/pulumi/pulumi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulumi/pulumi/downloads","issues_url":"https://api.github.com/repos/pulumi/pulumi/issues{/number}","pulls_url":"https://api.github.com/repos/pulumi/pulumi/pulls{/number}","milestones_url":"https://api.github.com/repos/pulumi/pulumi/milestones{/number}","notifications_url":"https://api.github.com/repos/pulumi/pulumi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulumi/pulumi/labels{/name}","releases_url":"https://api.github.com/repos/pulumi/pulumi/releases{/id}","deployments_url":"https://api.github.com/repos/pulumi/pulumi/deployments","created_at":"2016-10-31T21:02:47Z","updated_at":"2018-09-02T18:58:54Z","pushed_at":"2018-09-02T20:50:08Z","git_url":"git://github.com/pulumi/pulumi.git","ssh_url":"git@github.com:pulumi/pulumi.git","clone_url":"https://github.com/pulumi/pulumi.git","svn_url":"https://github.com/pulumi/pulumi","homepage":"https://pulumi.io","size":18741,"stargazers_count":1141,"watchers_count":1141,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":268,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":34,"open_issues":268,"watchers":1141,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pulumi/pulumi/pulls/1866"},"html":{"href":"https://github.com/pulumi/pulumi/pull/1866"},"issue":{"href":"https://api.github.com/repos/pulumi/pulumi/issues/1866"},"comments":{"href":"https://api.github.com/repos/pulumi/pulumi/issues/1866/comments"},"review_comments":{"href":"https://api.github.com/repos/pulumi/pulumi/pulls/1866/comments"},"review_comment":{"href":"https://api.github.com/repos/pulumi/pulumi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pulumi/pulumi/pulls/1866/commits"},"statuses":{"href":"https://api.github.com/repos/pulumi/pulumi/statuses/fb6c0a43f5a38ef42b6b061c779db7edf541fd6c"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"joeduffy","id":3953235,"node_id":"MDQ6VXNlcjM5NTMyMzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3953235?v=4","gravatar_id":"","url":"https://api.github.com/users/joeduffy","html_url":"https://github.com/joeduffy","followers_url":"https://api.github.com/users/joeduffy/followers","following_url":"https://api.github.com/users/joeduffy/following{/other_user}","gists_url":"https://api.github.com/users/joeduffy/gists{/gist_id}","starred_url":"https://api.github.com/users/joeduffy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeduffy/subscriptions","organizations_url":"https://api.github.com/users/joeduffy/orgs","repos_url":"https://api.github.com/users/joeduffy/repos","events_url":"https://api.github.com/users/joeduffy/events{/privacy}","received_events_url":"https://api.github.com/users/joeduffy/received_events","type":"User","site_admin":false},"comments":6,"review_comments":10,"maintainer_can_modify":false,"commits":3,"additions":42,"deletions":8,"changed_files":5}}
{"actor":{"display_login":"joeduffy"}}