{"action":"created","comment":{"url":"https://api.github.com/repos/teambition/teambition-sdk/pulls/comments/220424504","pull_request_review_id":158828689,"id":220424504,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDQyNDUwNA==","diff_hunk":"@@ -1,123 +1,99 @@\n+import { SchemaDef, RDBType } from 'reactivedb/interface'\n+import { schemaColl } from './schemas'\n import { ExecutorOrCreator, ProjectId, UserId } from 'teambition-types'\n+import {\n+  MemberSchema, TaskSchema, EventSchema, FileSchema, CollectionSchema,\n+  TasklistSchema, TagSchema, ProjectSchema, OrganizationSchema, TeamSchema,\n+} from '.'\n+import { EntryData } from './Entry'\n+import { ApplicationSchema } from './Application'\n+\n+export type HomeActivityType =\n+  | 'user' | 'users' | 'userNames' | 'source'\n+  | 'task' | 'post' | 'event' | 'work' | 'works'\n+  | 'entry' | 'collection' | 'tasklist' | 'tag'\n+  | 'project' | 'application' | 'organization' | 'team'\n+\n+export interface HomeActivityContent {\n+  // 成员\n+  user?: Pick<MemberSchema, '_id' | 'name' | 'email' | 'avatarUrl'>\n+\n+  // 项目成员邀请\n+  users?: Pick<MemberSchema, '_id' | 'name' | 'email' | 'avatarUrl'>[]","path":"src/schemas/HomeActivity.ts","position":null,"original_position":22,"commit_id":"8ca910bdb53ec7ec0042008bea329b2b0b20fc06","original_commit_id":"77f3ccca322d2266670a0078237d73990e82df42","user":{"login":"aicest","id":4016742,"node_id":"MDQ6VXNlcjQwMTY3NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/4016742?v=4","gravatar_id":"","url":"https://api.github.com/users/aicest","html_url":"https://github.com/aicest","followers_url":"https://api.github.com/users/aicest/followers","following_url":"https://api.github.com/users/aicest/following{/other_user}","gists_url":"https://api.github.com/users/aicest/gists{/gist_id}","starred_url":"https://api.github.com/users/aicest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aicest/subscriptions","organizations_url":"https://api.github.com/users/aicest/orgs","repos_url":"https://api.github.com/users/aicest/repos","events_url":"https://api.github.com/users/aicest/events{/privacy}","received_events_url":"https://api.github.com/users/aicest/received_events","type":"User","site_admin":false},"body":"同上。","created_at":"2018-09-26T04:37:22Z","updated_at":"2018-09-26T04:37:23Z","html_url":"https://github.com/teambition/teambition-sdk/pull/545#discussion_r220424504","pull_request_url":"https://api.github.com/repos/teambition/teambition-sdk/pulls/545","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/teambition/teambition-sdk/pulls/comments/220424504"},"html":{"href":"https://github.com/teambition/teambition-sdk/pull/545#discussion_r220424504"},"pull_request":{"href":"https://api.github.com/repos/teambition/teambition-sdk/pulls/545"}},"in_reply_to_id":220414877},"pull_request":{"url":"https://api.github.com/repos/teambition/teambition-sdk/pulls/545","id":217908520,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3OTA4NTIw","html_url":"https://github.com/teambition/teambition-sdk/pull/545","diff_url":"https://github.com/teambition/teambition-sdk/pull/545.diff","patch_url":"https://github.com/teambition/teambition-sdk/pull/545.patch","issue_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/545","number":545,"state":"open","locked":false,"title":"feat(schemas): 添加 HomeActivity 定义","user":{"login":"aicest","id":4016742,"node_id":"MDQ6VXNlcjQwMTY3NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/4016742?v=4","gravatar_id":"","url":"https://api.github.com/users/aicest","html_url":"https://github.com/aicest","followers_url":"https://api.github.com/users/aicest/followers","following_url":"https://api.github.com/users/aicest/following{/other_user}","gists_url":"https://api.github.com/users/aicest/gists{/gist_id}","starred_url":"https://api.github.com/users/aicest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aicest/subscriptions","organizations_url":"https://api.github.com/users/aicest/orgs","repos_url":"https://api.github.com/users/aicest/repos","events_url":"https://api.github.com/users/aicest/events{/privacy}","received_events_url":"https://api.github.com/users/aicest/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-25T09:17:10Z","updated_at":"2018-09-26T04:37:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abb381346e3ae33ad3c90f322f143c4b4cff9717","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/teambition/teambition-sdk/pulls/545/commits","review_comments_url":"https://api.github.com/repos/teambition/teambition-sdk/pulls/545/comments","review_comment_url":"https://api.github.com/repos/teambition/teambition-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/545/comments","statuses_url":"https://api.github.com/repos/teambition/teambition-sdk/statuses/8ca910bdb53ec7ec0042008bea329b2b0b20fc06","head":{"label":"teambition:feature/home_activity","ref":"feature/home_activity","sha":"8ca910bdb53ec7ec0042008bea329b2b0b20fc06","user":{"login":"teambition","id":1983116,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODMxMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1983116?v=4","gravatar_id":"","url":"https://api.github.com/users/teambition","html_url":"https://github.com/teambition","followers_url":"https://api.github.com/users/teambition/followers","following_url":"https://api.github.com/users/teambition/following{/other_user}","gists_url":"https://api.github.com/users/teambition/gists{/gist_id}","starred_url":"https://api.github.com/users/teambition/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambition/subscriptions","organizations_url":"https://api.github.com/users/teambition/orgs","repos_url":"https://api.github.com/users/teambition/repos","events_url":"https://api.github.com/users/teambition/events{/privacy}","received_events_url":"https://api.github.com/users/teambition/received_events","type":"Organization","site_admin":false},"repo":{"id":48221935,"node_id":"MDEwOlJlcG9zaXRvcnk0ODIyMTkzNQ==","name":"teambition-sdk","full_name":"teambition/teambition-sdk","private":false,"owner":{"login":"teambition","id":1983116,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODMxMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1983116?v=4","gravatar_id":"","url":"https://api.github.com/users/teambition","html_url":"https://github.com/teambition","followers_url":"https://api.github.com/users/teambition/followers","following_url":"https://api.github.com/users/teambition/following{/other_user}","gists_url":"https://api.github.com/users/teambition/gists{/gist_id}","starred_url":"https://api.github.com/users/teambition/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambition/subscriptions","organizations_url":"https://api.github.com/users/teambition/orgs","repos_url":"https://api.github.com/users/teambition/repos","events_url":"https://api.github.com/users/teambition/events{/privacy}","received_events_url":"https://api.github.com/users/teambition/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/teambition/teambition-sdk","description":"Isomorphic JavaScript SDK for Teambition APIs","fork":false,"url":"https://api.github.com/repos/teambition/teambition-sdk","forks_url":"https://api.github.com/repos/teambition/teambition-sdk/forks","keys_url":"https://api.github.com/repos/teambition/teambition-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teambition/teambition-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teambition/teambition-sdk/teams","hooks_url":"https://api.github.com/repos/teambition/teambition-sdk/hooks","issue_events_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/teambition/teambition-sdk/events","assignees_url":"https://api.github.com/repos/teambition/teambition-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/teambition/teambition-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/teambition/teambition-sdk/tags","blobs_url":"https://api.github.com/repos/teambition/teambition-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teambition/teambition-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teambition/teambition-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/teambition/teambition-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teambition/teambition-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/teambition/teambition-sdk/languages","stargazers_url":"https://api.github.com/repos/teambition/teambition-sdk/stargazers","contributors_url":"https://api.github.com/repos/teambition/teambition-sdk/contributors","subscribers_url":"https://api.github.com/repos/teambition/teambition-sdk/subscribers","subscription_url":"https://api.github.com/repos/teambition/teambition-sdk/subscription","commits_url":"https://api.github.com/repos/teambition/teambition-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/teambition/teambition-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/teambition/teambition-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/teambition/teambition-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/teambition/teambition-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teambition/teambition-sdk/merges","archive_url":"https://api.github.com/repos/teambition/teambition-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teambition/teambition-sdk/downloads","issues_url":"https://api.github.com/repos/teambition/teambition-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/teambition/teambition-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/teambition/teambition-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/teambition/teambition-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teambition/teambition-sdk/labels{/name}","releases_url":"https://api.github.com/repos/teambition/teambition-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/teambition/teambition-sdk/deployments","created_at":"2015-12-18T07:52:09Z","updated_at":"2018-09-18T03:32:34Z","pushed_at":"2018-09-26T04:36:56Z","git_url":"git://github.com/teambition/teambition-sdk.git","ssh_url":"git@github.com:teambition/teambition-sdk.git","clone_url":"https://github.com/teambition/teambition-sdk.git","svn_url":"https://github.com/teambition/teambition-sdk","homepage":"","size":2331,"stargazers_count":298,"watchers_count":298,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"archived":false,"open_issues_count":34,"license":null,"forks":41,"open_issues":34,"watchers":298,"default_branch":"release"}},"base":{"label":"teambition:release","ref":"release","sha":"a2f66514906ff4da96e4f953c59517c6bbdfa7e6","user":{"login":"teambition","id":1983116,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODMxMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1983116?v=4","gravatar_id":"","url":"https://api.github.com/users/teambition","html_url":"https://github.com/teambition","followers_url":"https://api.github.com/users/teambition/followers","following_url":"https://api.github.com/users/teambition/following{/other_user}","gists_url":"https://api.github.com/users/teambition/gists{/gist_id}","starred_url":"https://api.github.com/users/teambition/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambition/subscriptions","organizations_url":"https://api.github.com/users/teambition/orgs","repos_url":"https://api.github.com/users/teambition/repos","events_url":"https://api.github.com/users/teambition/events{/privacy}","received_events_url":"https://api.github.com/users/teambition/received_events","type":"Organization","site_admin":false},"repo":{"id":48221935,"node_id":"MDEwOlJlcG9zaXRvcnk0ODIyMTkzNQ==","name":"teambition-sdk","full_name":"teambition/teambition-sdk","private":false,"owner":{"login":"teambition","id":1983116,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODMxMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1983116?v=4","gravatar_id":"","url":"https://api.github.com/users/teambition","html_url":"https://github.com/teambition","followers_url":"https://api.github.com/users/teambition/followers","following_url":"https://api.github.com/users/teambition/following{/other_user}","gists_url":"https://api.github.com/users/teambition/gists{/gist_id}","starred_url":"https://api.github.com/users/teambition/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambition/subscriptions","organizations_url":"https://api.github.com/users/teambition/orgs","repos_url":"https://api.github.com/users/teambition/repos","events_url":"https://api.github.com/users/teambition/events{/privacy}","received_events_url":"https://api.github.com/users/teambition/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/teambition/teambition-sdk","description":"Isomorphic JavaScript SDK for Teambition APIs","fork":false,"url":"https://api.github.com/repos/teambition/teambition-sdk","forks_url":"https://api.github.com/repos/teambition/teambition-sdk/forks","keys_url":"https://api.github.com/repos/teambition/teambition-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teambition/teambition-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teambition/teambition-sdk/teams","hooks_url":"https://api.github.com/repos/teambition/teambition-sdk/hooks","issue_events_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/teambition/teambition-sdk/events","assignees_url":"https://api.github.com/repos/teambition/teambition-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/teambition/teambition-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/teambition/teambition-sdk/tags","blobs_url":"https://api.github.com/repos/teambition/teambition-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teambition/teambition-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teambition/teambition-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/teambition/teambition-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teambition/teambition-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/teambition/teambition-sdk/languages","stargazers_url":"https://api.github.com/repos/teambition/teambition-sdk/stargazers","contributors_url":"https://api.github.com/repos/teambition/teambition-sdk/contributors","subscribers_url":"https://api.github.com/repos/teambition/teambition-sdk/subscribers","subscription_url":"https://api.github.com/repos/teambition/teambition-sdk/subscription","commits_url":"https://api.github.com/repos/teambition/teambition-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/teambition/teambition-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/teambition/teambition-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/teambition/teambition-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/teambition/teambition-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teambition/teambition-sdk/merges","archive_url":"https://api.github.com/repos/teambition/teambition-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teambition/teambition-sdk/downloads","issues_url":"https://api.github.com/repos/teambition/teambition-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/teambition/teambition-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/teambition/teambition-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/teambition/teambition-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teambition/teambition-sdk/labels{/name}","releases_url":"https://api.github.com/repos/teambition/teambition-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/teambition/teambition-sdk/deployments","created_at":"2015-12-18T07:52:09Z","updated_at":"2018-09-18T03:32:34Z","pushed_at":"2018-09-26T04:36:56Z","git_url":"git://github.com/teambition/teambition-sdk.git","ssh_url":"git@github.com:teambition/teambition-sdk.git","clone_url":"https://github.com/teambition/teambition-sdk.git","svn_url":"https://github.com/teambition/teambition-sdk","homepage":"","size":2331,"stargazers_count":298,"watchers_count":298,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"archived":false,"open_issues_count":34,"license":null,"forks":41,"open_issues":34,"watchers":298,"default_branch":"release"}},"_links":{"self":{"href":"https://api.github.com/repos/teambition/teambition-sdk/pulls/545"},"html":{"href":"https://github.com/teambition/teambition-sdk/pull/545"},"issue":{"href":"https://api.github.com/repos/teambition/teambition-sdk/issues/545"},"comments":{"href":"https://api.github.com/repos/teambition/teambition-sdk/issues/545/comments"},"review_comments":{"href":"https://api.github.com/repos/teambition/teambition-sdk/pulls/545/comments"},"review_comment":{"href":"https://api.github.com/repos/teambition/teambition-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teambition/teambition-sdk/pulls/545/commits"},"statuses":{"href":"https://api.github.com/repos/teambition/teambition-sdk/statuses/8ca910bdb53ec7ec0042008bea329b2b0b20fc06"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"aicest"}}