{"action":"created","comment":{"url":"https://api.github.com/repos/haitch/azure-powershell/pulls/comments/226472743","pull_request_review_id":166264646,"id":226472743,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjQ3Mjc0Mw==","diff_hunk":"@@ -0,0 +1,87 @@\n+﻿// ----------------------------------------------------------------------------------\n+//\n+// Copyright Microsoft Corporation\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+// http://www.apache.org/licenses/LICENSE-2.0\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+// ----------------------------------------------------------------------------------\n+\n+using Microsoft.Azure.Management.Blueprint.Models;\n+using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Text;\n+using System.Threading.Tasks;\n+\n+namespace Microsoft.Azure.Commands.Blueprint.Models\n+{\n+    public class PSPublishedBlueprint : PSBlueprintBase\n+    {\n+        public string BlueprintName { get; set; }\n+        public string ChangeNotes { get; set; }\n+\n+        /// <summary>\n+        /// Create a PSPublishedBlueprint object from a PublishedBlueprint.\n+        /// </summary>\n+        /// <param name=\"model\"></param>\n+        /// <param name=\"managementGroupName\">Name of the management group the blueprint belongs to.</param>\n+        /// <returns>A new PSPublishedBlueprint object</returns>\n+        internal static PSPublishedBlueprint FromPublishedBlueprintModel(PublishedBlueprint model, string managementGroupName)\n+        {\n+            var psBlueprint = new PSPublishedBlueprint","path":"src/ResourceManager/Blueprint/Commands.Blueprint/Models/PSPublishedBlueprint.cs","position":37,"original_position":37,"commit_id":"4000b405142f8fe4ab2c5f74d34169127faf574f","original_commit_id":"4000b405142f8fe4ab2c5f74d34169127faf574f","user":{"login":"haitch","id":1167635,"node_id":"MDQ6VXNlcjExNjc2MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/1167635?v=4","gravatar_id":"","url":"https://api.github.com/users/haitch","html_url":"https://github.com/haitch","followers_url":"https://api.github.com/users/haitch/followers","following_url":"https://api.github.com/users/haitch/following{/other_user}","gists_url":"https://api.github.com/users/haitch/gists{/gist_id}","starred_url":"https://api.github.com/users/haitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haitch/subscriptions","organizations_url":"https://api.github.com/users/haitch/orgs","repos_url":"https://api.github.com/users/haitch/repos","events_url":"https://api.github.com/users/haitch/events{/privacy}","received_events_url":"https://api.github.com/users/haitch/received_events","type":"User","site_admin":false},"body":"I see lots of this code is duplicated on PSBlueprint.\r\n\r\nWhy not put some of this to PSBlueprintBase?","created_at":"2018-10-18T21:31:16Z","updated_at":"2018-10-18T21:31:45Z","html_url":"https://github.com/haitch/azure-powershell/pull/1#discussion_r226472743","pull_request_url":"https://api.github.com/repos/haitch/azure-powershell/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/haitch/azure-powershell/pulls/comments/226472743"},"html":{"href":"https://github.com/haitch/azure-powershell/pull/1#discussion_r226472743"},"pull_request":{"href":"https://api.github.com/repos/haitch/azure-powershell/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/haitch/azure-powershell/pulls/1","id":224076057,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MDc2MDU3","html_url":"https://github.com/haitch/azure-powershell/pull/1","diff_url":"https://github.com/haitch/azure-powershell/pull/1.diff","patch_url":"https://github.com/haitch/azure-powershell/pull/1.patch","issue_url":"https://api.github.com/repos/haitch/azure-powershell/issues/1","number":1,"state":"open","locked":false,"title":"Blueprint","user":{"login":"haitch","id":1167635,"node_id":"MDQ6VXNlcjExNjc2MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/1167635?v=4","gravatar_id":"","url":"https://api.github.com/users/haitch","html_url":"https://github.com/haitch","followers_url":"https://api.github.com/users/haitch/followers","following_url":"https://api.github.com/users/haitch/following{/other_user}","gists_url":"https://api.github.com/users/haitch/gists{/gist_id}","starred_url":"https://api.github.com/users/haitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haitch/subscriptions","organizations_url":"https://api.github.com/users/haitch/orgs","repos_url":"https://api.github.com/users/haitch/repos","events_url":"https://api.github.com/users/haitch/events{/privacy}","received_events_url":"https://api.github.com/users/haitch/received_events","type":"User","site_admin":false},"body":"<!-- DO NOT DELETE THIS TEMPLATE -->\r\n\r\n## Description\r\n\r\n<!-- Please add a brief description of the changes made in this PR -->\r\n\r\n## Checklist\r\n\r\n- [ ] I have read the [_Submitting Changes_](https://github.com/Azure/azure-powershell/blob/preview/CONTRIBUTING.md#submitting-changes) section of [`CONTRIBUTING.md`](https://github.com/Azure/azure-powershell/blob/preview/CONTRIBUTING.md)\r\n- [ ] The title of the PR is clear and informative\r\n- [ ] The appropriate [change log has been updated](https://github.com/Azure/azure-powershell/blob/preview/CONTRIBUTING.md#updating-the-change-log)\r\n- [ ] The PR does not introduce [breaking changes](https://github.com/Azure/azure-powershell/blob/preview/documentation/breaking-changes/breaking-changes-definition.md)\r\n- [ ] If applicable, the changes made in the PR have proper test coverage\r\n- [ ] For public API changes to cmdlets:\r\n    - [ ] the changes have gone through a [cmdlet design review](https://github.com/Azure/azure-powershell-cmdlet-review-pr) (Microsoft internal partners only)\r\n    - [ ] the cmdlet markdown files were [generated using the `platyPS` module](https://github.com/Azure/azure-powershell/blob/preview/documentation/development-docs/help-generation.md)\r\n","created_at":"2018-10-18T19:43:42Z","updated_at":"2018-10-18T21:31:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c7536d60fc044e0b7072fd98682c2ef19a2c0684","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/haitch/azure-powershell/pulls/1/commits","review_comments_url":"https://api.github.com/repos/haitch/azure-powershell/pulls/1/comments","review_comment_url":"https://api.github.com/repos/haitch/azure-powershell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/haitch/azure-powershell/issues/1/comments","statuses_url":"https://api.github.com/repos/haitch/azure-powershell/statuses/4000b405142f8fe4ab2c5f74d34169127faf574f","head":{"label":"jeffbi:blueprint","ref":"blueprint","sha":"4000b405142f8fe4ab2c5f74d34169127faf574f","user":{"login":"jeffbi","id":6708868,"node_id":"MDQ6VXNlcjY3MDg4Njg=","avatar_url":"https://avatars3.githubusercontent.com/u/6708868?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffbi","html_url":"https://github.com/jeffbi","followers_url":"https://api.github.com/users/jeffbi/followers","following_url":"https://api.github.com/users/jeffbi/following{/other_user}","gists_url":"https://api.github.com/users/jeffbi/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffbi/subscriptions","organizations_url":"https://api.github.com/users/jeffbi/orgs","repos_url":"https://api.github.com/users/jeffbi/repos","events_url":"https://api.github.com/users/jeffbi/events{/privacy}","received_events_url":"https://api.github.com/users/jeffbi/received_events","type":"User","site_admin":false},"repo":{"id":148519557,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg1MTk1NTc=","name":"azure-powershell","full_name":"jeffbi/azure-powershell","private":false,"owner":{"login":"jeffbi","id":6708868,"node_id":"MDQ6VXNlcjY3MDg4Njg=","avatar_url":"https://avatars3.githubusercontent.com/u/6708868?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffbi","html_url":"https://github.com/jeffbi","followers_url":"https://api.github.com/users/jeffbi/followers","following_url":"https://api.github.com/users/jeffbi/following{/other_user}","gists_url":"https://api.github.com/users/jeffbi/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffbi/subscriptions","organizations_url":"https://api.github.com/users/jeffbi/orgs","repos_url":"https://api.github.com/users/jeffbi/repos","events_url":"https://api.github.com/users/jeffbi/events{/privacy}","received_events_url":"https://api.github.com/users/jeffbi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jeffbi/azure-powershell","description":"Microsoft Azure PowerShell","fork":true,"url":"https://api.github.com/repos/jeffbi/azure-powershell","forks_url":"https://api.github.com/repos/jeffbi/azure-powershell/forks","keys_url":"https://api.github.com/repos/jeffbi/azure-powershell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffbi/azure-powershell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffbi/azure-powershell/teams","hooks_url":"https://api.github.com/repos/jeffbi/azure-powershell/hooks","issue_events_url":"https://api.github.com/repos/jeffbi/azure-powershell/issues/events{/number}","events_url":"https://api.github.com/repos/jeffbi/azure-powershell/events","assignees_url":"https://api.github.com/repos/jeffbi/azure-powershell/assignees{/user}","branches_url":"https://api.github.com/repos/jeffbi/azure-powershell/branches{/branch}","tags_url":"https://api.github.com/repos/jeffbi/azure-powershell/tags","blobs_url":"https://api.github.com/repos/jeffbi/azure-powershell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffbi/azure-powershell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffbi/azure-powershell/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffbi/azure-powershell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffbi/azure-powershell/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffbi/azure-powershell/languages","stargazers_url":"https://api.github.com/repos/jeffbi/azure-powershell/stargazers","contributors_url":"https://api.github.com/repos/jeffbi/azure-powershell/contributors","subscribers_url":"https://api.github.com/repos/jeffbi/azure-powershell/subscribers","subscription_url":"https://api.github.com/repos/jeffbi/azure-powershell/subscription","commits_url":"https://api.github.com/repos/jeffbi/azure-powershell/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffbi/azure-powershell/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffbi/azure-powershell/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffbi/azure-powershell/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffbi/azure-powershell/contents/{+path}","compare_url":"https://api.github.com/repos/jeffbi/azure-powershell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffbi/azure-powershell/merges","archive_url":"https://api.github.com/repos/jeffbi/azure-powershell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffbi/azure-powershell/downloads","issues_url":"https://api.github.com/repos/jeffbi/azure-powershell/issues{/number}","pulls_url":"https://api.github.com/repos/jeffbi/azure-powershell/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffbi/azure-powershell/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffbi/azure-powershell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffbi/azure-powershell/labels{/name}","releases_url":"https://api.github.com/repos/jeffbi/azure-powershell/releases{/id}","deployments_url":"https://api.github.com/repos/jeffbi/azure-powershell/deployments","created_at":"2018-09-12T17:52:09Z","updated_at":"2018-09-12T17:53:34Z","pushed_at":"2018-10-17T20:10:10Z","git_url":"git://github.com/jeffbi/azure-powershell.git","ssh_url":"git@github.com:jeffbi/azure-powershell.git","clone_url":"https://github.com/jeffbi/azure-powershell.git","svn_url":"https://github.com/jeffbi/azure-powershell","homepage":null,"size":551532,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"preview"}},"base":{"label":"haitch:preview","ref":"preview","sha":"252f3d2e7f6eea1aedd0401fcb7ee21f4525c564","user":{"login":"haitch","id":1167635,"node_id":"MDQ6VXNlcjExNjc2MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/1167635?v=4","gravatar_id":"","url":"https://api.github.com/users/haitch","html_url":"https://github.com/haitch","followers_url":"https://api.github.com/users/haitch/followers","following_url":"https://api.github.com/users/haitch/following{/other_user}","gists_url":"https://api.github.com/users/haitch/gists{/gist_id}","starred_url":"https://api.github.com/users/haitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haitch/subscriptions","organizations_url":"https://api.github.com/users/haitch/orgs","repos_url":"https://api.github.com/users/haitch/repos","events_url":"https://api.github.com/users/haitch/events{/privacy}","received_events_url":"https://api.github.com/users/haitch/received_events","type":"User","site_admin":false},"repo":{"id":152653347,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI2NTMzNDc=","name":"azure-powershell","full_name":"haitch/azure-powershell","private":false,"owner":{"login":"haitch","id":1167635,"node_id":"MDQ6VXNlcjExNjc2MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/1167635?v=4","gravatar_id":"","url":"https://api.github.com/users/haitch","html_url":"https://github.com/haitch","followers_url":"https://api.github.com/users/haitch/followers","following_url":"https://api.github.com/users/haitch/following{/other_user}","gists_url":"https://api.github.com/users/haitch/gists{/gist_id}","starred_url":"https://api.github.com/users/haitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haitch/subscriptions","organizations_url":"https://api.github.com/users/haitch/orgs","repos_url":"https://api.github.com/users/haitch/repos","events_url":"https://api.github.com/users/haitch/events{/privacy}","received_events_url":"https://api.github.com/users/haitch/received_events","type":"User","site_admin":false},"html_url":"https://github.com/haitch/azure-powershell","description":"Microsoft Azure PowerShell","fork":true,"url":"https://api.github.com/repos/haitch/azure-powershell","forks_url":"https://api.github.com/repos/haitch/azure-powershell/forks","keys_url":"https://api.github.com/repos/haitch/azure-powershell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haitch/azure-powershell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haitch/azure-powershell/teams","hooks_url":"https://api.github.com/repos/haitch/azure-powershell/hooks","issue_events_url":"https://api.github.com/repos/haitch/azure-powershell/issues/events{/number}","events_url":"https://api.github.com/repos/haitch/azure-powershell/events","assignees_url":"https://api.github.com/repos/haitch/azure-powershell/assignees{/user}","branches_url":"https://api.github.com/repos/haitch/azure-powershell/branches{/branch}","tags_url":"https://api.github.com/repos/haitch/azure-powershell/tags","blobs_url":"https://api.github.com/repos/haitch/azure-powershell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haitch/azure-powershell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haitch/azure-powershell/git/refs{/sha}","trees_url":"https://api.github.com/repos/haitch/azure-powershell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haitch/azure-powershell/statuses/{sha}","languages_url":"https://api.github.com/repos/haitch/azure-powershell/languages","stargazers_url":"https://api.github.com/repos/haitch/azure-powershell/stargazers","contributors_url":"https://api.github.com/repos/haitch/azure-powershell/contributors","subscribers_url":"https://api.github.com/repos/haitch/azure-powershell/subscribers","subscription_url":"https://api.github.com/repos/haitch/azure-powershell/subscription","commits_url":"https://api.github.com/repos/haitch/azure-powershell/commits{/sha}","git_commits_url":"https://api.github.com/repos/haitch/azure-powershell/git/commits{/sha}","comments_url":"https://api.github.com/repos/haitch/azure-powershell/comments{/number}","issue_comment_url":"https://api.github.com/repos/haitch/azure-powershell/issues/comments{/number}","contents_url":"https://api.github.com/repos/haitch/azure-powershell/contents/{+path}","compare_url":"https://api.github.com/repos/haitch/azure-powershell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haitch/azure-powershell/merges","archive_url":"https://api.github.com/repos/haitch/azure-powershell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haitch/azure-powershell/downloads","issues_url":"https://api.github.com/repos/haitch/azure-powershell/issues{/number}","pulls_url":"https://api.github.com/repos/haitch/azure-powershell/pulls{/number}","milestones_url":"https://api.github.com/repos/haitch/azure-powershell/milestones{/number}","notifications_url":"https://api.github.com/repos/haitch/azure-powershell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haitch/azure-powershell/labels{/name}","releases_url":"https://api.github.com/repos/haitch/azure-powershell/releases{/id}","deployments_url":"https://api.github.com/repos/haitch/azure-powershell/deployments","created_at":"2018-10-11T20:42:53Z","updated_at":"2018-10-11T20:44:24Z","pushed_at":"2018-10-18T19:43:43Z","git_url":"git://github.com/haitch/azure-powershell.git","ssh_url":"git@github.com:haitch/azure-powershell.git","clone_url":"https://github.com/haitch/azure-powershell.git","svn_url":"https://github.com/haitch/azure-powershell","homepage":null,"size":625279,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"preview"}},"_links":{"self":{"href":"https://api.github.com/repos/haitch/azure-powershell/pulls/1"},"html":{"href":"https://github.com/haitch/azure-powershell/pull/1"},"issue":{"href":"https://api.github.com/repos/haitch/azure-powershell/issues/1"},"comments":{"href":"https://api.github.com/repos/haitch/azure-powershell/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/haitch/azure-powershell/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/haitch/azure-powershell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/haitch/azure-powershell/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/haitch/azure-powershell/statuses/4000b405142f8fe4ab2c5f74d34169127faf574f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"haitch"}}