{"action":"created","comment":{"url":"https://api.github.com/repos/dotCMS/core-web/pulls/comments/315339905","pull_request_review_id":276723207,"id":315339905,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxNTMzOTkwNQ==","diff_hunk":"@@ -0,0 +1,27 @@\n+import { Injectable } from '@angular/core';\n+import { CoreWebService } from 'dotcms-js';\n+import { Observable } from 'rxjs';\n+import { RequestMethod } from '@angular/http';\n+import { pluck, take } from 'rxjs/operators';\n+\n+@Injectable({\n+    providedIn: 'root'\n+})\n+export class DotContentService {\n+    constructor(private coreWebService: CoreWebService) {}\n+\n+    /**\n+     * Create Content, of the specified Content Type.\n+     * @param content data\n+     * @returns Content\n+     */\n+    create(data: any): Observable<any> {\n+        return this.coreWebService\n+            .requestView({\n+                method: RequestMethod.Put,\n+                url: `v1/workflow/actions/default/fire/NEW`,\n+                body: { contentlet: { ...data } }","path":"src/app/api/services/dot-content/dot-content.service.ts","position":23,"original_position":23,"commit_id":"27d9293f96d241e2cbe4b71fbaaba3dd9bb32631","original_commit_id":"27d9293f96d241e2cbe4b71fbaaba3dd9bb32631","user":{"login":"fmontes","id":751424,"node_id":"MDQ6VXNlcjc1MTQyNA==","avatar_url":"https://avatars3.githubusercontent.com/u/751424?v=4","gravatar_id":"","url":"https://api.github.com/users/fmontes","html_url":"https://github.com/fmontes","followers_url":"https://api.github.com/users/fmontes/followers","following_url":"https://api.github.com/users/fmontes/following{/other_user}","gists_url":"https://api.github.com/users/fmontes/gists{/gist_id}","starred_url":"https://api.github.com/users/fmontes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmontes/subscriptions","organizations_url":"https://api.github.com/users/fmontes/orgs","repos_url":"https://api.github.com/users/fmontes/repos","events_url":"https://api.github.com/users/fmontes/events{/privacy}","received_events_url":"https://api.github.com/users/fmontes/received_events","type":"User","site_admin":false},"body":"why spread?","created_at":"2019-08-19T18:03:29Z","updated_at":"2019-08-19T18:06:51Z","html_url":"https://github.com/dotCMS/core-web/pull/1124#discussion_r315339905","pull_request_url":"https://api.github.com/repos/dotCMS/core-web/pulls/1124","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/dotCMS/core-web/pulls/comments/315339905"},"html":{"href":"https://github.com/dotCMS/core-web/pull/1124#discussion_r315339905"},"pull_request":{"href":"https://api.github.com/repos/dotCMS/core-web/pulls/1124"}}},"pull_request":{"url":"https://api.github.com/repos/dotCMS/core-web/pulls/1124","id":308706549,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA4NzA2NTQ5","html_url":"https://github.com/dotCMS/core-web/pull/1124","diff_url":"https://github.com/dotCMS/core-web/pull/1124.diff","patch_url":"https://github.com/dotCMS/core-web/pull/1124.patch","issue_url":"https://api.github.com/repos/dotCMS/core-web/issues/1124","number":1124,"state":"open","locked":false,"title":"dotCMS/core#16981 Create add Persona dialog/form","user":{"login":"hmoreras","id":31667212,"node_id":"MDQ6VXNlcjMxNjY3MjEy","avatar_url":"https://avatars0.githubusercontent.com/u/31667212?v=4","gravatar_id":"","url":"https://api.github.com/users/hmoreras","html_url":"https://github.com/hmoreras","followers_url":"https://api.github.com/users/hmoreras/followers","following_url":"https://api.github.com/users/hmoreras/following{/other_user}","gists_url":"https://api.github.com/users/hmoreras/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoreras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoreras/subscriptions","organizations_url":"https://api.github.com/users/hmoreras/orgs","repos_url":"https://api.github.com/users/hmoreras/repos","events_url":"https://api.github.com/users/hmoreras/events{/privacy}","received_events_url":"https://api.github.com/users/hmoreras/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-08-19T17:20:27Z","updated_at":"2019-08-19T18:06:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e528e59d48f22f1b32a3f85b994712817b00f5b4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotCMS/core-web/pulls/1124/commits","review_comments_url":"https://api.github.com/repos/dotCMS/core-web/pulls/1124/comments","review_comment_url":"https://api.github.com/repos/dotCMS/core-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotCMS/core-web/issues/1124/comments","statuses_url":"https://api.github.com/repos/dotCMS/core-web/statuses/27d9293f96d241e2cbe4b71fbaaba3dd9bb32631","head":{"label":"dotCMS:issue-16981-persona-dialog","ref":"issue-16981-persona-dialog","sha":"27d9293f96d241e2cbe4b71fbaaba3dd9bb32631","user":{"login":"dotCMS","id":1005263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":36376350,"node_id":"MDEwOlJlcG9zaXRvcnkzNjM3NjM1MA==","name":"core-web","full_name":"dotCMS/core-web","private":false,"owner":{"login":"dotCMS","id":1005263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dotCMS/core-web","description":"dotCMS UI","fork":false,"url":"https://api.github.com/repos/dotCMS/core-web","forks_url":"https://api.github.com/repos/dotCMS/core-web/forks","keys_url":"https://api.github.com/repos/dotCMS/core-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotCMS/core-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotCMS/core-web/teams","hooks_url":"https://api.github.com/repos/dotCMS/core-web/hooks","issue_events_url":"https://api.github.com/repos/dotCMS/core-web/issues/events{/number}","events_url":"https://api.github.com/repos/dotCMS/core-web/events","assignees_url":"https://api.github.com/repos/dotCMS/core-web/assignees{/user}","branches_url":"https://api.github.com/repos/dotCMS/core-web/branches{/branch}","tags_url":"https://api.github.com/repos/dotCMS/core-web/tags","blobs_url":"https://api.github.com/repos/dotCMS/core-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotCMS/core-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotCMS/core-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotCMS/core-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotCMS/core-web/statuses/{sha}","languages_url":"https://api.github.com/repos/dotCMS/core-web/languages","stargazers_url":"https://api.github.com/repos/dotCMS/core-web/stargazers","contributors_url":"https://api.github.com/repos/dotCMS/core-web/contributors","subscribers_url":"https://api.github.com/repos/dotCMS/core-web/subscribers","subscription_url":"https://api.github.com/repos/dotCMS/core-web/subscription","commits_url":"https://api.github.com/repos/dotCMS/core-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotCMS/core-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotCMS/core-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotCMS/core-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotCMS/core-web/contents/{+path}","compare_url":"https://api.github.com/repos/dotCMS/core-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotCMS/core-web/merges","archive_url":"https://api.github.com/repos/dotCMS/core-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotCMS/core-web/downloads","issues_url":"https://api.github.com/repos/dotCMS/core-web/issues{/number}","pulls_url":"https://api.github.com/repos/dotCMS/core-web/pulls{/number}","milestones_url":"https://api.github.com/repos/dotCMS/core-web/milestones{/number}","notifications_url":"https://api.github.com/repos/dotCMS/core-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotCMS/core-web/labels{/name}","releases_url":"https://api.github.com/repos/dotCMS/core-web/releases{/id}","deployments_url":"https://api.github.com/repos/dotCMS/core-web/deployments","created_at":"2015-05-27T15:26:16Z","updated_at":"2019-08-14T22:12:51Z","pushed_at":"2019-08-19T17:20:28Z","git_url":"git://github.com/dotCMS/core-web.git","ssh_url":"git@github.com:dotCMS/core-web.git","clone_url":"https://github.com/dotCMS/core-web.git","svn_url":"https://github.com/dotCMS/core-web","homepage":"https://dotcms.com","size":15852,"stargazers_count":17,"watchers_count":17,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":5,"license":null,"forks":11,"open_issues":5,"watchers":17,"default_branch":"master"}},"base":{"label":"dotCMS:master","ref":"master","sha":"ffaa0c181a89f599eeb2f0b0d1b01ce354681d4a","user":{"login":"dotCMS","id":1005263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":36376350,"node_id":"MDEwOlJlcG9zaXRvcnkzNjM3NjM1MA==","name":"core-web","full_name":"dotCMS/core-web","private":false,"owner":{"login":"dotCMS","id":1005263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dotCMS/core-web","description":"dotCMS UI","fork":false,"url":"https://api.github.com/repos/dotCMS/core-web","forks_url":"https://api.github.com/repos/dotCMS/core-web/forks","keys_url":"https://api.github.com/repos/dotCMS/core-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotCMS/core-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotCMS/core-web/teams","hooks_url":"https://api.github.com/repos/dotCMS/core-web/hooks","issue_events_url":"https://api.github.com/repos/dotCMS/core-web/issues/events{/number}","events_url":"https://api.github.com/repos/dotCMS/core-web/events","assignees_url":"https://api.github.com/repos/dotCMS/core-web/assignees{/user}","branches_url":"https://api.github.com/repos/dotCMS/core-web/branches{/branch}","tags_url":"https://api.github.com/repos/dotCMS/core-web/tags","blobs_url":"https://api.github.com/repos/dotCMS/core-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotCMS/core-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotCMS/core-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotCMS/core-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotCMS/core-web/statuses/{sha}","languages_url":"https://api.github.com/repos/dotCMS/core-web/languages","stargazers_url":"https://api.github.com/repos/dotCMS/core-web/stargazers","contributors_url":"https://api.github.com/repos/dotCMS/core-web/contributors","subscribers_url":"https://api.github.com/repos/dotCMS/core-web/subscribers","subscription_url":"https://api.github.com/repos/dotCMS/core-web/subscription","commits_url":"https://api.github.com/repos/dotCMS/core-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotCMS/core-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotCMS/core-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotCMS/core-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotCMS/core-web/contents/{+path}","compare_url":"https://api.github.com/repos/dotCMS/core-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotCMS/core-web/merges","archive_url":"https://api.github.com/repos/dotCMS/core-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotCMS/core-web/downloads","issues_url":"https://api.github.com/repos/dotCMS/core-web/issues{/number}","pulls_url":"https://api.github.com/repos/dotCMS/core-web/pulls{/number}","milestones_url":"https://api.github.com/repos/dotCMS/core-web/milestones{/number}","notifications_url":"https://api.github.com/repos/dotCMS/core-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotCMS/core-web/labels{/name}","releases_url":"https://api.github.com/repos/dotCMS/core-web/releases{/id}","deployments_url":"https://api.github.com/repos/dotCMS/core-web/deployments","created_at":"2015-05-27T15:26:16Z","updated_at":"2019-08-14T22:12:51Z","pushed_at":"2019-08-19T17:20:28Z","git_url":"git://github.com/dotCMS/core-web.git","ssh_url":"git@github.com:dotCMS/core-web.git","clone_url":"https://github.com/dotCMS/core-web.git","svn_url":"https://github.com/dotCMS/core-web","homepage":"https://dotcms.com","size":15852,"stargazers_count":17,"watchers_count":17,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":5,"license":null,"forks":11,"open_issues":5,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotCMS/core-web/pulls/1124"},"html":{"href":"https://github.com/dotCMS/core-web/pull/1124"},"issue":{"href":"https://api.github.com/repos/dotCMS/core-web/issues/1124"},"comments":{"href":"https://api.github.com/repos/dotCMS/core-web/issues/1124/comments"},"review_comments":{"href":"https://api.github.com/repos/dotCMS/core-web/pulls/1124/comments"},"review_comment":{"href":"https://api.github.com/repos/dotCMS/core-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotCMS/core-web/pulls/1124/commits"},"statuses":{"href":"https://api.github.com/repos/dotCMS/core-web/statuses/27d9293f96d241e2cbe4b71fbaaba3dd9bb32631"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"fmontes"}}