{"action":"opened","number":355,"pull_request":{"url":"https://api.github.com/repos/danielbrodin/atom-project-manager/pulls/355","id":133122740,"html_url":"https://github.com/danielbrodin/atom-project-manager/pull/355","diff_url":"https://github.com/danielbrodin/atom-project-manager/pull/355.diff","patch_url":"https://github.com/danielbrodin/atom-project-manager/pull/355.patch","issue_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/issues/355","number":355,"state":"open","locked":false,"title":"alias Project","user":{"login":"gpgkd906","id":869103,"avatar_url":"https://avatars2.githubusercontent.com/u/869103?v=4","gravatar_id":"","url":"https://api.github.com/users/gpgkd906","html_url":"https://github.com/gpgkd906","followers_url":"https://api.github.com/users/gpgkd906/followers","following_url":"https://api.github.com/users/gpgkd906/following{/other_user}","gists_url":"https://api.github.com/users/gpgkd906/gists{/gist_id}","starred_url":"https://api.github.com/users/gpgkd906/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpgkd906/subscriptions","organizations_url":"https://api.github.com/users/gpgkd906/orgs","repos_url":"https://api.github.com/users/gpgkd906/repos","events_url":"https://api.github.com/users/gpgkd906/events{/privacy}","received_events_url":"https://api.github.com/users/gpgkd906/received_events","type":"User","site_admin":false},"body":"a solution for #99.\r\n\r\nProject-alias is also good, but it get problem for me.\r\nProject-alias not working when we have 2 project with the same name.\r\nfor example: there is two [src] folder, and one is alias to [customer-src] and another one is alias to [user-src], then we just get the first one work, the second one is not work.\r\nand also, project-alias has some small bug when we have the same folder in two different projects...\r\n\r\nso, here is my solution.\r\nI add an alias object for every Project, when Project opened, atom will rename the project-name with the alias object。\r\nand then, we can alias the project from context-menu.\r\n\r\nfor some details, I did next things:\r\n1, add alias property to models/Project\r\n2, add 2 method to Manager,\r\nManager.renameProject is for atom to rename the project label.\r\nManager. mergeProjectAlias is for atom to save the alias.\r\n3, add a [Rename View] to let user define the alias. just a textedit View.\r\nand the view source is from https://www.npmjs.com/package/@aki77/atom-input-dialog\r\n4, add a commad [Project Manager: alias Project] to show the [Rename View]\r\n\r\nThank you for your awesome work, The Project Manager is help me a lot.\r\n","created_at":"2017-07-30T09:48:31Z","updated_at":"2017-07-30T09:48:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/pulls/355/commits","review_comments_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/pulls/355/comments","review_comment_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/issues/355/comments","statuses_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/statuses/7043aa6e8a6841b9c62512c72bbc509c641ffb96","head":{"label":"gpgkd906:rename_project","ref":"rename_project","sha":"7043aa6e8a6841b9c62512c72bbc509c641ffb96","user":{"login":"gpgkd906","id":869103,"avatar_url":"https://avatars2.githubusercontent.com/u/869103?v=4","gravatar_id":"","url":"https://api.github.com/users/gpgkd906","html_url":"https://github.com/gpgkd906","followers_url":"https://api.github.com/users/gpgkd906/followers","following_url":"https://api.github.com/users/gpgkd906/following{/other_user}","gists_url":"https://api.github.com/users/gpgkd906/gists{/gist_id}","starred_url":"https://api.github.com/users/gpgkd906/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpgkd906/subscriptions","organizations_url":"https://api.github.com/users/gpgkd906/orgs","repos_url":"https://api.github.com/users/gpgkd906/repos","events_url":"https://api.github.com/users/gpgkd906/events{/privacy}","received_events_url":"https://api.github.com/users/gpgkd906/received_events","type":"User","site_admin":false},"repo":{"id":98396497,"name":"atom-project-manager","full_name":"gpgkd906/atom-project-manager","owner":{"login":"gpgkd906","id":869103,"avatar_url":"https://avatars2.githubusercontent.com/u/869103?v=4","gravatar_id":"","url":"https://api.github.com/users/gpgkd906","html_url":"https://github.com/gpgkd906","followers_url":"https://api.github.com/users/gpgkd906/followers","following_url":"https://api.github.com/users/gpgkd906/following{/other_user}","gists_url":"https://api.github.com/users/gpgkd906/gists{/gist_id}","starred_url":"https://api.github.com/users/gpgkd906/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpgkd906/subscriptions","organizations_url":"https://api.github.com/users/gpgkd906/orgs","repos_url":"https://api.github.com/users/gpgkd906/repos","events_url":"https://api.github.com/users/gpgkd906/events{/privacy}","received_events_url":"https://api.github.com/users/gpgkd906/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gpgkd906/atom-project-manager","description":"Project manager for the Atom editor","fork":true,"url":"https://api.github.com/repos/gpgkd906/atom-project-manager","forks_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/forks","keys_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/teams","hooks_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/hooks","issue_events_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/issues/events{/number}","events_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/events","assignees_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/assignees{/user}","branches_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/branches{/branch}","tags_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/tags","blobs_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/languages","stargazers_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/stargazers","contributors_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/contributors","subscribers_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/subscribers","subscription_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/subscription","commits_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/contents/{+path}","compare_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/merges","archive_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/downloads","issues_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/issues{/number}","pulls_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/labels{/name}","releases_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/releases{/id}","deployments_url":"https://api.github.com/repos/gpgkd906/atom-project-manager/deployments","created_at":"2017-07-26T08:03:26Z","updated_at":"2017-07-26T08:03:27Z","pushed_at":"2017-07-30T09:25:24Z","git_url":"git://github.com/gpgkd906/atom-project-manager.git","ssh_url":"git@github.com:gpgkd906/atom-project-manager.git","clone_url":"https://github.com/gpgkd906/atom-project-manager.git","svn_url":"https://github.com/gpgkd906/atom-project-manager","homepage":null,"size":440,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"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":"danielbrodin:master","ref":"master","sha":"bad64fdc092ea758556a1847c0dd9c0a3e36d27e","user":{"login":"danielbrodin","id":696872,"avatar_url":"https://avatars3.githubusercontent.com/u/696872?v=4","gravatar_id":"","url":"https://api.github.com/users/danielbrodin","html_url":"https://github.com/danielbrodin","followers_url":"https://api.github.com/users/danielbrodin/followers","following_url":"https://api.github.com/users/danielbrodin/following{/other_user}","gists_url":"https://api.github.com/users/danielbrodin/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbrodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbrodin/subscriptions","organizations_url":"https://api.github.com/users/danielbrodin/orgs","repos_url":"https://api.github.com/users/danielbrodin/repos","events_url":"https://api.github.com/users/danielbrodin/events{/privacy}","received_events_url":"https://api.github.com/users/danielbrodin/received_events","type":"User","site_admin":false},"repo":{"id":17912038,"name":"atom-project-manager","full_name":"danielbrodin/atom-project-manager","owner":{"login":"danielbrodin","id":696872,"avatar_url":"https://avatars3.githubusercontent.com/u/696872?v=4","gravatar_id":"","url":"https://api.github.com/users/danielbrodin","html_url":"https://github.com/danielbrodin","followers_url":"https://api.github.com/users/danielbrodin/followers","following_url":"https://api.github.com/users/danielbrodin/following{/other_user}","gists_url":"https://api.github.com/users/danielbrodin/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbrodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbrodin/subscriptions","organizations_url":"https://api.github.com/users/danielbrodin/orgs","repos_url":"https://api.github.com/users/danielbrodin/repos","events_url":"https://api.github.com/users/danielbrodin/events{/privacy}","received_events_url":"https://api.github.com/users/danielbrodin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danielbrodin/atom-project-manager","description":"Project manager for the Atom editor","fork":false,"url":"https://api.github.com/repos/danielbrodin/atom-project-manager","forks_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/forks","keys_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/teams","hooks_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/hooks","issue_events_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/issues/events{/number}","events_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/events","assignees_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/assignees{/user}","branches_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/branches{/branch}","tags_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/tags","blobs_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/languages","stargazers_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/stargazers","contributors_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/contributors","subscribers_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/subscribers","subscription_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/subscription","commits_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/contents/{+path}","compare_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/merges","archive_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/downloads","issues_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/issues{/number}","pulls_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/labels{/name}","releases_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/releases{/id}","deployments_url":"https://api.github.com/repos/danielbrodin/atom-project-manager/deployments","created_at":"2014-03-19T16:37:49Z","updated_at":"2017-07-25T14:10:07Z","pushed_at":"2017-07-21T21:19:31Z","git_url":"git://github.com/danielbrodin/atom-project-manager.git","ssh_url":"git@github.com:danielbrodin/atom-project-manager.git","clone_url":"https://github.com/danielbrodin/atom-project-manager.git","svn_url":"https://github.com/danielbrodin/atom-project-manager","homepage":null,"size":440,"stargazers_count":441,"watchers_count":441,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":97,"forks":61,"open_issues":97,"watchers":441,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danielbrodin/atom-project-manager/pulls/355"},"html":{"href":"https://github.com/danielbrodin/atom-project-manager/pull/355"},"issue":{"href":"https://api.github.com/repos/danielbrodin/atom-project-manager/issues/355"},"comments":{"href":"https://api.github.com/repos/danielbrodin/atom-project-manager/issues/355/comments"},"review_comments":{"href":"https://api.github.com/repos/danielbrodin/atom-project-manager/pulls/355/comments"},"review_comment":{"href":"https://api.github.com/repos/danielbrodin/atom-project-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danielbrodin/atom-project-manager/pulls/355/commits"},"statuses":{"href":"https://api.github.com/repos/danielbrodin/atom-project-manager/statuses/7043aa6e8a6841b9c62512c72bbc509c641ffb96"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":176,"deletions":2,"changed_files":5}}
{"actor":{"display_login":"gpgkd906"}}