{"action":"opened","number":1862,"pull_request":{"url":"https://api.github.com/repos/xonsh/xonsh/pulls/1862","id":89686797,"html_url":"https://github.com/xonsh/xonsh/pull/1862","diff_url":"https://github.com/xonsh/xonsh/pull/1862.diff","patch_url":"https://github.com/xonsh/xonsh/pull/1862.patch","issue_url":"https://api.github.com/repos/xonsh/xonsh/issues/1862","number":1862,"state":"open","locked":false,"title":"First class path objects","user":{"login":"chronitis","id":6874993,"avatar_url":"https://avatars.githubusercontent.com/u/6874993?v=3","gravatar_id":"","url":"https://api.github.com/users/chronitis","html_url":"https://github.com/chronitis","followers_url":"https://api.github.com/users/chronitis/followers","following_url":"https://api.github.com/users/chronitis/following{/other_user}","gists_url":"https://api.github.com/users/chronitis/gists{/gist_id}","starred_url":"https://api.github.com/users/chronitis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chronitis/subscriptions","organizations_url":"https://api.github.com/users/chronitis/orgs","repos_url":"https://api.github.com/users/chronitis/repos","events_url":"https://api.github.com/users/chronitis/events{/privacy}","received_events_url":"https://api.github.com/users/chronitis/received_events","type":"User","site_admin":false},"body":"This changeset provides syntactic sugar for using `pathlib.Path` objects in xonsh directly, enabling them to be written as literals and generated by backtick searches.\r\n\r\n```\r\n>>> p\"foo/bar\"\r\nPosixPath(\"foo/bar\")\r\n>>> p`foo/.*`\r\n[PosixPath(\"foo/bar\")]\r\n```\r\n\r\nThe rationale being that a great deal of shell scripting involves performing some sort of manipulation on paths, and being able to get path objects directly means you can benefit from manipulation methods directly rather than needing to deal with parsing and reforming the string representation manually.","created_at":"2016-10-17T19:30:24Z","updated_at":"2016-10-17T19:30:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/xonsh/xonsh/pulls/1862/commits","review_comments_url":"https://api.github.com/repos/xonsh/xonsh/pulls/1862/comments","review_comment_url":"https://api.github.com/repos/xonsh/xonsh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xonsh/xonsh/issues/1862/comments","statuses_url":"https://api.github.com/repos/xonsh/xonsh/statuses/728cbacde63b3e3ba7a1a768f9d7defba9ad4745","head":{"label":"chronitis:first-class-paths","ref":"first-class-paths","sha":"728cbacde63b3e3ba7a1a768f9d7defba9ad4745","user":{"login":"chronitis","id":6874993,"avatar_url":"https://avatars.githubusercontent.com/u/6874993?v=3","gravatar_id":"","url":"https://api.github.com/users/chronitis","html_url":"https://github.com/chronitis","followers_url":"https://api.github.com/users/chronitis/followers","following_url":"https://api.github.com/users/chronitis/following{/other_user}","gists_url":"https://api.github.com/users/chronitis/gists{/gist_id}","starred_url":"https://api.github.com/users/chronitis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chronitis/subscriptions","organizations_url":"https://api.github.com/users/chronitis/orgs","repos_url":"https://api.github.com/users/chronitis/repos","events_url":"https://api.github.com/users/chronitis/events{/privacy}","received_events_url":"https://api.github.com/users/chronitis/received_events","type":"User","site_admin":false},"repo":{"id":67221599,"name":"xonsh","full_name":"chronitis/xonsh","owner":{"login":"chronitis","id":6874993,"avatar_url":"https://avatars.githubusercontent.com/u/6874993?v=3","gravatar_id":"","url":"https://api.github.com/users/chronitis","html_url":"https://github.com/chronitis","followers_url":"https://api.github.com/users/chronitis/followers","following_url":"https://api.github.com/users/chronitis/following{/other_user}","gists_url":"https://api.github.com/users/chronitis/gists{/gist_id}","starred_url":"https://api.github.com/users/chronitis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chronitis/subscriptions","organizations_url":"https://api.github.com/users/chronitis/orgs","repos_url":"https://api.github.com/users/chronitis/repos","events_url":"https://api.github.com/users/chronitis/events{/privacy}","received_events_url":"https://api.github.com/users/chronitis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chronitis/xonsh","description":"xonsh is a Python-ish, BASHwards-facing shell.","fork":true,"url":"https://api.github.com/repos/chronitis/xonsh","forks_url":"https://api.github.com/repos/chronitis/xonsh/forks","keys_url":"https://api.github.com/repos/chronitis/xonsh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chronitis/xonsh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chronitis/xonsh/teams","hooks_url":"https://api.github.com/repos/chronitis/xonsh/hooks","issue_events_url":"https://api.github.com/repos/chronitis/xonsh/issues/events{/number}","events_url":"https://api.github.com/repos/chronitis/xonsh/events","assignees_url":"https://api.github.com/repos/chronitis/xonsh/assignees{/user}","branches_url":"https://api.github.com/repos/chronitis/xonsh/branches{/branch}","tags_url":"https://api.github.com/repos/chronitis/xonsh/tags","blobs_url":"https://api.github.com/repos/chronitis/xonsh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chronitis/xonsh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chronitis/xonsh/git/refs{/sha}","trees_url":"https://api.github.com/repos/chronitis/xonsh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chronitis/xonsh/statuses/{sha}","languages_url":"https://api.github.com/repos/chronitis/xonsh/languages","stargazers_url":"https://api.github.com/repos/chronitis/xonsh/stargazers","contributors_url":"https://api.github.com/repos/chronitis/xonsh/contributors","subscribers_url":"https://api.github.com/repos/chronitis/xonsh/subscribers","subscription_url":"https://api.github.com/repos/chronitis/xonsh/subscription","commits_url":"https://api.github.com/repos/chronitis/xonsh/commits{/sha}","git_commits_url":"https://api.github.com/repos/chronitis/xonsh/git/commits{/sha}","comments_url":"https://api.github.com/repos/chronitis/xonsh/comments{/number}","issue_comment_url":"https://api.github.com/repos/chronitis/xonsh/issues/comments{/number}","contents_url":"https://api.github.com/repos/chronitis/xonsh/contents/{+path}","compare_url":"https://api.github.com/repos/chronitis/xonsh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chronitis/xonsh/merges","archive_url":"https://api.github.com/repos/chronitis/xonsh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chronitis/xonsh/downloads","issues_url":"https://api.github.com/repos/chronitis/xonsh/issues{/number}","pulls_url":"https://api.github.com/repos/chronitis/xonsh/pulls{/number}","milestones_url":"https://api.github.com/repos/chronitis/xonsh/milestones{/number}","notifications_url":"https://api.github.com/repos/chronitis/xonsh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chronitis/xonsh/labels{/name}","releases_url":"https://api.github.com/repos/chronitis/xonsh/releases{/id}","deployments_url":"https://api.github.com/repos/chronitis/xonsh/deployments","created_at":"2016-09-02T12:41:47Z","updated_at":"2016-09-02T12:41:49Z","pushed_at":"2016-10-17T19:21:10Z","git_url":"git://github.com/chronitis/xonsh.git","ssh_url":"git@github.com:chronitis/xonsh.git","clone_url":"https://github.com/chronitis/xonsh.git","svn_url":"https://github.com/chronitis/xonsh","homepage":"http://xon.sh","size":8130,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"xonsh:master","ref":"master","sha":"5fedb677ca076e39b7a351f7cf5d7ed1c4b9d304","user":{"login":"xonsh","id":17418188,"avatar_url":"https://avatars.githubusercontent.com/u/17418188?v=3","gravatar_id":"","url":"https://api.github.com/users/xonsh","html_url":"https://github.com/xonsh","followers_url":"https://api.github.com/users/xonsh/followers","following_url":"https://api.github.com/users/xonsh/following{/other_user}","gists_url":"https://api.github.com/users/xonsh/gists{/gist_id}","starred_url":"https://api.github.com/users/xonsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xonsh/subscriptions","organizations_url":"https://api.github.com/users/xonsh/orgs","repos_url":"https://api.github.com/users/xonsh/repos","events_url":"https://api.github.com/users/xonsh/events{/privacy}","received_events_url":"https://api.github.com/users/xonsh/received_events","type":"Organization","site_admin":false},"repo":{"id":29620400,"name":"xonsh","full_name":"xonsh/xonsh","owner":{"login":"xonsh","id":17418188,"avatar_url":"https://avatars.githubusercontent.com/u/17418188?v=3","gravatar_id":"","url":"https://api.github.com/users/xonsh","html_url":"https://github.com/xonsh","followers_url":"https://api.github.com/users/xonsh/followers","following_url":"https://api.github.com/users/xonsh/following{/other_user}","gists_url":"https://api.github.com/users/xonsh/gists{/gist_id}","starred_url":"https://api.github.com/users/xonsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xonsh/subscriptions","organizations_url":"https://api.github.com/users/xonsh/orgs","repos_url":"https://api.github.com/users/xonsh/repos","events_url":"https://api.github.com/users/xonsh/events{/privacy}","received_events_url":"https://api.github.com/users/xonsh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xonsh/xonsh","description":"xonsh is a Python-ish, BASHwards-facing shell.","fork":false,"url":"https://api.github.com/repos/xonsh/xonsh","forks_url":"https://api.github.com/repos/xonsh/xonsh/forks","keys_url":"https://api.github.com/repos/xonsh/xonsh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xonsh/xonsh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xonsh/xonsh/teams","hooks_url":"https://api.github.com/repos/xonsh/xonsh/hooks","issue_events_url":"https://api.github.com/repos/xonsh/xonsh/issues/events{/number}","events_url":"https://api.github.com/repos/xonsh/xonsh/events","assignees_url":"https://api.github.com/repos/xonsh/xonsh/assignees{/user}","branches_url":"https://api.github.com/repos/xonsh/xonsh/branches{/branch}","tags_url":"https://api.github.com/repos/xonsh/xonsh/tags","blobs_url":"https://api.github.com/repos/xonsh/xonsh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xonsh/xonsh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xonsh/xonsh/git/refs{/sha}","trees_url":"https://api.github.com/repos/xonsh/xonsh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xonsh/xonsh/statuses/{sha}","languages_url":"https://api.github.com/repos/xonsh/xonsh/languages","stargazers_url":"https://api.github.com/repos/xonsh/xonsh/stargazers","contributors_url":"https://api.github.com/repos/xonsh/xonsh/contributors","subscribers_url":"https://api.github.com/repos/xonsh/xonsh/subscribers","subscription_url":"https://api.github.com/repos/xonsh/xonsh/subscription","commits_url":"https://api.github.com/repos/xonsh/xonsh/commits{/sha}","git_commits_url":"https://api.github.com/repos/xonsh/xonsh/git/commits{/sha}","comments_url":"https://api.github.com/repos/xonsh/xonsh/comments{/number}","issue_comment_url":"https://api.github.com/repos/xonsh/xonsh/issues/comments{/number}","contents_url":"https://api.github.com/repos/xonsh/xonsh/contents/{+path}","compare_url":"https://api.github.com/repos/xonsh/xonsh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xonsh/xonsh/merges","archive_url":"https://api.github.com/repos/xonsh/xonsh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xonsh/xonsh/downloads","issues_url":"https://api.github.com/repos/xonsh/xonsh/issues{/number}","pulls_url":"https://api.github.com/repos/xonsh/xonsh/pulls{/number}","milestones_url":"https://api.github.com/repos/xonsh/xonsh/milestones{/number}","notifications_url":"https://api.github.com/repos/xonsh/xonsh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xonsh/xonsh/labels{/name}","releases_url":"https://api.github.com/repos/xonsh/xonsh/releases{/id}","deployments_url":"https://api.github.com/repos/xonsh/xonsh/deployments","created_at":"2015-01-21T22:05:27Z","updated_at":"2016-10-17T17:36:24Z","pushed_at":"2016-10-17T19:30:24Z","git_url":"git://github.com/xonsh/xonsh.git","ssh_url":"git@github.com:xonsh/xonsh.git","clone_url":"https://github.com/xonsh/xonsh.git","svn_url":"https://github.com/xonsh/xonsh","homepage":"http://xon.sh","size":9121,"stargazers_count":1730,"watchers_count":1730,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":186,"mirror_url":null,"open_issues_count":259,"forks":186,"open_issues":259,"watchers":1730,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xonsh/xonsh/pulls/1862"},"html":{"href":"https://github.com/xonsh/xonsh/pull/1862"},"issue":{"href":"https://api.github.com/repos/xonsh/xonsh/issues/1862"},"comments":{"href":"https://api.github.com/repos/xonsh/xonsh/issues/1862/comments"},"review_comments":{"href":"https://api.github.com/repos/xonsh/xonsh/pulls/1862/comments"},"review_comment":{"href":"https://api.github.com/repos/xonsh/xonsh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xonsh/xonsh/pulls/1862/commits"},"statuses":{"href":"https://api.github.com/repos/xonsh/xonsh/statuses/728cbacde63b3e3ba7a1a768f9d7defba9ad4745"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":8,"additions":109,"deletions":14,"changed_files":7}}
{"actor":{"display_login":"chronitis"}}