{"action":"closed","number":21,"pull_request":{"url":"https://api.github.com/repos/keithamus/hashmark/pulls/21","id":66872607,"html_url":"https://github.com/keithamus/hashmark/pull/21","diff_url":"https://github.com/keithamus/hashmark/pull/21.diff","patch_url":"https://github.com/keithamus/hashmark/pull/21.patch","issue_url":"https://api.github.com/repos/keithamus/hashmark/issues/21","number":21,"state":"closed","locked":false,"title":"Fix CWD handling","user":{"login":"ArnaudRinquin","id":228886,"avatar_url":"https://avatars.githubusercontent.com/u/228886?v=3","gravatar_id":"","url":"https://api.github.com/users/ArnaudRinquin","html_url":"https://github.com/ArnaudRinquin","followers_url":"https://api.github.com/users/ArnaudRinquin/followers","following_url":"https://api.github.com/users/ArnaudRinquin/following{/other_user}","gists_url":"https://api.github.com/users/ArnaudRinquin/gists{/gist_id}","starred_url":"https://api.github.com/users/ArnaudRinquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArnaudRinquin/subscriptions","organizations_url":"https://api.github.com/users/ArnaudRinquin/orgs","repos_url":"https://api.github.com/users/ArnaudRinquin/repos","events_url":"https://api.github.com/users/ArnaudRinquin/events{/privacy}","received_events_url":"https://api.github.com/users/ArnaudRinquin/received_events","type":"User","site_admin":false},"body":"In the current version, CWD implementation has two issues:\r\n\r\n1. Target directory is not necessarilly created\r\n1. Target directory is always nested in CWD\r\n\r\nPoint 1 is an obvious problem.\r\nPoint 2 means that we can't run something like (or issue#18):\r\n\r\n```\r\nhashmark --cwd 'src' 'assets/**.*' 'dist/{dir}/{name}-{hash}{ext}'\r\n```\r\n\r\nWhere `dist/` basically contains a copy `assets` folder with hashmarked files. In current version, we'd have `dist/src/assets/...` which is wrong.\r\n\r\nFixes #18","created_at":"2016-04-18T15:26:08Z","updated_at":"2016-05-17T11:46:28Z","closed_at":"2016-05-17T11:46:28Z","merged_at":null,"merge_commit_sha":"3970bd351d79ca255a8e71497cd52d1a1409b695","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/keithamus/hashmark/pulls/21/commits","review_comments_url":"https://api.github.com/repos/keithamus/hashmark/pulls/21/comments","review_comment_url":"https://api.github.com/repos/keithamus/hashmark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/keithamus/hashmark/issues/21/comments","statuses_url":"https://api.github.com/repos/keithamus/hashmark/statuses/55d20a79015e8e9292f37d85a3156da7cd023af1","head":{"label":"ArnaudRinquin:fix/cwd-handling","ref":"fix/cwd-handling","sha":"55d20a79015e8e9292f37d85a3156da7cd023af1","user":{"login":"ArnaudRinquin","id":228886,"avatar_url":"https://avatars.githubusercontent.com/u/228886?v=3","gravatar_id":"","url":"https://api.github.com/users/ArnaudRinquin","html_url":"https://github.com/ArnaudRinquin","followers_url":"https://api.github.com/users/ArnaudRinquin/followers","following_url":"https://api.github.com/users/ArnaudRinquin/following{/other_user}","gists_url":"https://api.github.com/users/ArnaudRinquin/gists{/gist_id}","starred_url":"https://api.github.com/users/ArnaudRinquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArnaudRinquin/subscriptions","organizations_url":"https://api.github.com/users/ArnaudRinquin/orgs","repos_url":"https://api.github.com/users/ArnaudRinquin/repos","events_url":"https://api.github.com/users/ArnaudRinquin/events{/privacy}","received_events_url":"https://api.github.com/users/ArnaudRinquin/received_events","type":"User","site_admin":false},"repo":{"id":46823741,"name":"hashmark","full_name":"ArnaudRinquin/hashmark","owner":{"login":"ArnaudRinquin","id":228886,"avatar_url":"https://avatars.githubusercontent.com/u/228886?v=3","gravatar_id":"","url":"https://api.github.com/users/ArnaudRinquin","html_url":"https://github.com/ArnaudRinquin","followers_url":"https://api.github.com/users/ArnaudRinquin/followers","following_url":"https://api.github.com/users/ArnaudRinquin/following{/other_user}","gists_url":"https://api.github.com/users/ArnaudRinquin/gists{/gist_id}","starred_url":"https://api.github.com/users/ArnaudRinquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArnaudRinquin/subscriptions","organizations_url":"https://api.github.com/users/ArnaudRinquin/orgs","repos_url":"https://api.github.com/users/ArnaudRinquin/repos","events_url":"https://api.github.com/users/ArnaudRinquin/events{/privacy}","received_events_url":"https://api.github.com/users/ArnaudRinquin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArnaudRinquin/hashmark","description":"Take contents of a file (or stdin), and output as new file with a hash in the name","fork":true,"url":"https://api.github.com/repos/ArnaudRinquin/hashmark","forks_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/forks","keys_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/teams","hooks_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/hooks","issue_events_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/issues/events{/number}","events_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/events","assignees_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/assignees{/user}","branches_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/branches{/branch}","tags_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/tags","blobs_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/statuses/{sha}","languages_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/languages","stargazers_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/stargazers","contributors_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/contributors","subscribers_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/subscribers","subscription_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/subscription","commits_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/contents/{+path}","compare_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/merges","archive_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/downloads","issues_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/issues{/number}","pulls_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/pulls{/number}","milestones_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/milestones{/number}","notifications_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/labels{/name}","releases_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/releases{/id}","deployments_url":"https://api.github.com/repos/ArnaudRinquin/hashmark/deployments","created_at":"2015-11-24T22:52:22Z","updated_at":"2016-04-18T14:47:01Z","pushed_at":"2016-04-18T16:50:08Z","git_url":"git://github.com/ArnaudRinquin/hashmark.git","ssh_url":"git@github.com:ArnaudRinquin/hashmark.git","clone_url":"https://github.com/ArnaudRinquin/hashmark.git","svn_url":"https://github.com/ArnaudRinquin/hashmark","homepage":"","size":34,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"keithamus:master","ref":"master","sha":"20b2485b06376337318ee13e5351a5dd06df9e2c","user":{"login":"keithamus","id":118266,"avatar_url":"https://avatars.githubusercontent.com/u/118266?v=3","gravatar_id":"","url":"https://api.github.com/users/keithamus","html_url":"https://github.com/keithamus","followers_url":"https://api.github.com/users/keithamus/followers","following_url":"https://api.github.com/users/keithamus/following{/other_user}","gists_url":"https://api.github.com/users/keithamus/gists{/gist_id}","starred_url":"https://api.github.com/users/keithamus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithamus/subscriptions","organizations_url":"https://api.github.com/users/keithamus/orgs","repos_url":"https://api.github.com/users/keithamus/repos","events_url":"https://api.github.com/users/keithamus/events{/privacy}","received_events_url":"https://api.github.com/users/keithamus/received_events","type":"User","site_admin":false},"repo":{"id":25962131,"name":"hashmark","full_name":"keithamus/hashmark","owner":{"login":"keithamus","id":118266,"avatar_url":"https://avatars.githubusercontent.com/u/118266?v=3","gravatar_id":"","url":"https://api.github.com/users/keithamus","html_url":"https://github.com/keithamus","followers_url":"https://api.github.com/users/keithamus/followers","following_url":"https://api.github.com/users/keithamus/following{/other_user}","gists_url":"https://api.github.com/users/keithamus/gists{/gist_id}","starred_url":"https://api.github.com/users/keithamus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithamus/subscriptions","organizations_url":"https://api.github.com/users/keithamus/orgs","repos_url":"https://api.github.com/users/keithamus/repos","events_url":"https://api.github.com/users/keithamus/events{/privacy}","received_events_url":"https://api.github.com/users/keithamus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/keithamus/hashmark","description":"Take contents of a file (or stdin), and output as new file with a hash in the name","fork":false,"url":"https://api.github.com/repos/keithamus/hashmark","forks_url":"https://api.github.com/repos/keithamus/hashmark/forks","keys_url":"https://api.github.com/repos/keithamus/hashmark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keithamus/hashmark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keithamus/hashmark/teams","hooks_url":"https://api.github.com/repos/keithamus/hashmark/hooks","issue_events_url":"https://api.github.com/repos/keithamus/hashmark/issues/events{/number}","events_url":"https://api.github.com/repos/keithamus/hashmark/events","assignees_url":"https://api.github.com/repos/keithamus/hashmark/assignees{/user}","branches_url":"https://api.github.com/repos/keithamus/hashmark/branches{/branch}","tags_url":"https://api.github.com/repos/keithamus/hashmark/tags","blobs_url":"https://api.github.com/repos/keithamus/hashmark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keithamus/hashmark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keithamus/hashmark/git/refs{/sha}","trees_url":"https://api.github.com/repos/keithamus/hashmark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keithamus/hashmark/statuses/{sha}","languages_url":"https://api.github.com/repos/keithamus/hashmark/languages","stargazers_url":"https://api.github.com/repos/keithamus/hashmark/stargazers","contributors_url":"https://api.github.com/repos/keithamus/hashmark/contributors","subscribers_url":"https://api.github.com/repos/keithamus/hashmark/subscribers","subscription_url":"https://api.github.com/repos/keithamus/hashmark/subscription","commits_url":"https://api.github.com/repos/keithamus/hashmark/commits{/sha}","git_commits_url":"https://api.github.com/repos/keithamus/hashmark/git/commits{/sha}","comments_url":"https://api.github.com/repos/keithamus/hashmark/comments{/number}","issue_comment_url":"https://api.github.com/repos/keithamus/hashmark/issues/comments{/number}","contents_url":"https://api.github.com/repos/keithamus/hashmark/contents/{+path}","compare_url":"https://api.github.com/repos/keithamus/hashmark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keithamus/hashmark/merges","archive_url":"https://api.github.com/repos/keithamus/hashmark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keithamus/hashmark/downloads","issues_url":"https://api.github.com/repos/keithamus/hashmark/issues{/number}","pulls_url":"https://api.github.com/repos/keithamus/hashmark/pulls{/number}","milestones_url":"https://api.github.com/repos/keithamus/hashmark/milestones{/number}","notifications_url":"https://api.github.com/repos/keithamus/hashmark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keithamus/hashmark/labels{/name}","releases_url":"https://api.github.com/repos/keithamus/hashmark/releases{/id}","deployments_url":"https://api.github.com/repos/keithamus/hashmark/deployments","created_at":"2014-10-30T08:48:15Z","updated_at":"2016-05-07T17:50:26Z","pushed_at":"2016-05-17T08:54:43Z","git_url":"git://github.com/keithamus/hashmark.git","ssh_url":"git@github.com:keithamus/hashmark.git","clone_url":"https://github.com/keithamus/hashmark.git","svn_url":"https://github.com/keithamus/hashmark","homepage":"","size":39,"stargazers_count":122,"watchers_count":122,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":3,"forks":14,"open_issues":3,"watchers":122,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/keithamus/hashmark/pulls/21"},"html":{"href":"https://github.com/keithamus/hashmark/pull/21"},"issue":{"href":"https://api.github.com/repos/keithamus/hashmark/issues/21"},"comments":{"href":"https://api.github.com/repos/keithamus/hashmark/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/keithamus/hashmark/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/keithamus/hashmark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/keithamus/hashmark/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/keithamus/hashmark/statuses/55d20a79015e8e9292f37d85a3156da7cd023af1"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":2,"review_comments":0,"commits":2,"additions":50,"deletions":26,"changed_files":4}}