{"action":"created","comment":{"url":"https://api.github.com/repos/numenta/numenta-apps/pulls/comments/36805127","id":36805127,"diff_hunk":"@@ -138,6 +138,50 @@ def getActiveBranch():\n   return branch\n \n \n+def clean(path, arguments=\"\", logger):\n+  \"\"\"\n+  Changes to path, then runs git clean -fd.\n+\n+  :param path: git directory to clean\n+\n+  :param arguments: optional extra command line arguments for git clean\n+\n+  :param logger: An initialized logger object\n+\n+  :raises CommandFailedError: if git clean fails\n+  \"\"\"\n+  assert path\n+  assert logger","path":"infrastructure/infrastructure/utilities/git.py","position":17,"original_position":17,"commit_id":"432e9a88b59db62277de3d8aa16adcaa38489ef0","original_commit_id":"432e9a88b59db62277de3d8aa16adcaa38489ef0","user":{"login":"jcasner","id":2521177,"avatar_url":"https://avatars.githubusercontent.com/u/2521177?v=3","gravatar_id":"","url":"https://api.github.com/users/jcasner","html_url":"https://github.com/jcasner","followers_url":"https://api.github.com/users/jcasner/followers","following_url":"https://api.github.com/users/jcasner/following{/other_user}","gists_url":"https://api.github.com/users/jcasner/gists{/gist_id}","starred_url":"https://api.github.com/users/jcasner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcasner/subscriptions","organizations_url":"https://api.github.com/users/jcasner/orgs","repos_url":"https://api.github.com/users/jcasner/repos","events_url":"https://api.github.com/users/jcasner/events{/privacy}","received_events_url":"https://api.github.com/users/jcasner/received_events","type":"User","site_admin":false},"body":"also need to validate the format of the `argument` field","created_at":"2015-08-11T22:03:44Z","updated_at":"2015-08-11T22:03:44Z","html_url":"https://github.com/numenta/numenta-apps/pull/197#discussion_r36805127","pull_request_url":"https://api.github.com/repos/numenta/numenta-apps/pulls/197","_links":{"self":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/comments/36805127"},"html":{"href":"https://github.com/numenta/numenta-apps/pull/197#discussion_r36805127"},"pull_request":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/197"}}},"pull_request":{"url":"https://api.github.com/repos/numenta/numenta-apps/pulls/197","id":42057931,"html_url":"https://github.com/numenta/numenta-apps/pull/197","diff_url":"https://github.com/numenta/numenta-apps/pull/197.diff","patch_url":"https://github.com/numenta/numenta-apps/pull/197.patch","issue_url":"https://api.github.com/repos/numenta/numenta-apps/issues/197","number":197,"state":"open","locked":false,"title":"TAUR-1338 Add more git helper functions","user":{"login":"unixorn","id":23920,"avatar_url":"https://avatars.githubusercontent.com/u/23920?v=3","gravatar_id":"","url":"https://api.github.com/users/unixorn","html_url":"https://github.com/unixorn","followers_url":"https://api.github.com/users/unixorn/followers","following_url":"https://api.github.com/users/unixorn/following{/other_user}","gists_url":"https://api.github.com/users/unixorn/gists{/gist_id}","starred_url":"https://api.github.com/users/unixorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unixorn/subscriptions","organizations_url":"https://api.github.com/users/unixorn/orgs","repos_url":"https://api.github.com/users/unixorn/repos","events_url":"https://api.github.com/users/unixorn/events{/privacy}","received_events_url":"https://api.github.com/users/unixorn/received_events","type":"User","site_admin":false},"body":"Added clean and setRemoteURL functions per TAUR-1338 feedback.\r\n\r\n@jcasner please CR","created_at":"2015-08-10T19:43:28Z","updated_at":"2015-08-11T22:03:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aaaee7f9094edb5c63ac73dfc1978154e5323ed3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/numenta/numenta-apps/pulls/197/commits","review_comments_url":"https://api.github.com/repos/numenta/numenta-apps/pulls/197/comments","review_comment_url":"https://api.github.com/repos/numenta/numenta-apps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/numenta/numenta-apps/issues/197/comments","statuses_url":"https://api.github.com/repos/numenta/numenta-apps/statuses/432e9a88b59db62277de3d8aa16adcaa38489ef0","head":{"label":"unixorn:TAUR-1338-add-git-clean-helper","ref":"TAUR-1338-add-git-clean-helper","sha":"432e9a88b59db62277de3d8aa16adcaa38489ef0","user":{"login":"unixorn","id":23920,"avatar_url":"https://avatars.githubusercontent.com/u/23920?v=3","gravatar_id":"","url":"https://api.github.com/users/unixorn","html_url":"https://github.com/unixorn","followers_url":"https://api.github.com/users/unixorn/followers","following_url":"https://api.github.com/users/unixorn/following{/other_user}","gists_url":"https://api.github.com/users/unixorn/gists{/gist_id}","starred_url":"https://api.github.com/users/unixorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unixorn/subscriptions","organizations_url":"https://api.github.com/users/unixorn/orgs","repos_url":"https://api.github.com/users/unixorn/repos","events_url":"https://api.github.com/users/unixorn/events{/privacy}","received_events_url":"https://api.github.com/users/unixorn/received_events","type":"User","site_admin":false},"repo":{"id":36946270,"name":"numenta-apps","full_name":"unixorn/numenta-apps","owner":{"login":"unixorn","id":23920,"avatar_url":"https://avatars.githubusercontent.com/u/23920?v=3","gravatar_id":"","url":"https://api.github.com/users/unixorn","html_url":"https://github.com/unixorn","followers_url":"https://api.github.com/users/unixorn/followers","following_url":"https://api.github.com/users/unixorn/following{/other_user}","gists_url":"https://api.github.com/users/unixorn/gists{/gist_id}","starred_url":"https://api.github.com/users/unixorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unixorn/subscriptions","organizations_url":"https://api.github.com/users/unixorn/orgs","repos_url":"https://api.github.com/users/unixorn/repos","events_url":"https://api.github.com/users/unixorn/events{/privacy}","received_events_url":"https://api.github.com/users/unixorn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/unixorn/numenta-apps","description":"","fork":true,"url":"https://api.github.com/repos/unixorn/numenta-apps","forks_url":"https://api.github.com/repos/unixorn/numenta-apps/forks","keys_url":"https://api.github.com/repos/unixorn/numenta-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unixorn/numenta-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unixorn/numenta-apps/teams","hooks_url":"https://api.github.com/repos/unixorn/numenta-apps/hooks","issue_events_url":"https://api.github.com/repos/unixorn/numenta-apps/issues/events{/number}","events_url":"https://api.github.com/repos/unixorn/numenta-apps/events","assignees_url":"https://api.github.com/repos/unixorn/numenta-apps/assignees{/user}","branches_url":"https://api.github.com/repos/unixorn/numenta-apps/branches{/branch}","tags_url":"https://api.github.com/repos/unixorn/numenta-apps/tags","blobs_url":"https://api.github.com/repos/unixorn/numenta-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unixorn/numenta-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unixorn/numenta-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/unixorn/numenta-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unixorn/numenta-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/unixorn/numenta-apps/languages","stargazers_url":"https://api.github.com/repos/unixorn/numenta-apps/stargazers","contributors_url":"https://api.github.com/repos/unixorn/numenta-apps/contributors","subscribers_url":"https://api.github.com/repos/unixorn/numenta-apps/subscribers","subscription_url":"https://api.github.com/repos/unixorn/numenta-apps/subscription","commits_url":"https://api.github.com/repos/unixorn/numenta-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/unixorn/numenta-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/unixorn/numenta-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/unixorn/numenta-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/unixorn/numenta-apps/contents/{+path}","compare_url":"https://api.github.com/repos/unixorn/numenta-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unixorn/numenta-apps/merges","archive_url":"https://api.github.com/repos/unixorn/numenta-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unixorn/numenta-apps/downloads","issues_url":"https://api.github.com/repos/unixorn/numenta-apps/issues{/number}","pulls_url":"https://api.github.com/repos/unixorn/numenta-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/unixorn/numenta-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/unixorn/numenta-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unixorn/numenta-apps/labels{/name}","releases_url":"https://api.github.com/repos/unixorn/numenta-apps/releases{/id}","created_at":"2015-06-05T17:38:14Z","updated_at":"2015-06-05T17:40:26Z","pushed_at":"2015-08-11T21:45:13Z","git_url":"git://github.com/unixorn/numenta-apps.git","ssh_url":"git@github.com:unixorn/numenta-apps.git","clone_url":"https://github.com/unixorn/numenta-apps.git","svn_url":"https://github.com/unixorn/numenta-apps","homepage":null,"size":44447,"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":"numenta:master","ref":"master","sha":"16c75dd5edf60eb0c9b4322af32104a2c7ab87a7","user":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=3","gravatar_id":"","url":"https://api.github.com/users/numenta","html_url":"https://github.com/numenta","followers_url":"https://api.github.com/users/numenta/followers","following_url":"https://api.github.com/users/numenta/following{/other_user}","gists_url":"https://api.github.com/users/numenta/gists{/gist_id}","starred_url":"https://api.github.com/users/numenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numenta/subscriptions","organizations_url":"https://api.github.com/users/numenta/orgs","repos_url":"https://api.github.com/users/numenta/repos","events_url":"https://api.github.com/users/numenta/events{/privacy}","received_events_url":"https://api.github.com/users/numenta/received_events","type":"Organization","site_admin":false},"repo":{"id":36754402,"name":"numenta-apps","full_name":"numenta/numenta-apps","owner":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=3","gravatar_id":"","url":"https://api.github.com/users/numenta","html_url":"https://github.com/numenta","followers_url":"https://api.github.com/users/numenta/followers","following_url":"https://api.github.com/users/numenta/following{/other_user}","gists_url":"https://api.github.com/users/numenta/gists{/gist_id}","starred_url":"https://api.github.com/users/numenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numenta/subscriptions","organizations_url":"https://api.github.com/users/numenta/orgs","repos_url":"https://api.github.com/users/numenta/repos","events_url":"https://api.github.com/users/numenta/events{/privacy}","received_events_url":"https://api.github.com/users/numenta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/numenta/numenta-apps","description":"HTM based applications and support libraries. Includes Grok for IT Analytics and Grok for Stocks (code name \"Taurus\").","fork":false,"url":"https://api.github.com/repos/numenta/numenta-apps","forks_url":"https://api.github.com/repos/numenta/numenta-apps/forks","keys_url":"https://api.github.com/repos/numenta/numenta-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numenta/numenta-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numenta/numenta-apps/teams","hooks_url":"https://api.github.com/repos/numenta/numenta-apps/hooks","issue_events_url":"https://api.github.com/repos/numenta/numenta-apps/issues/events{/number}","events_url":"https://api.github.com/repos/numenta/numenta-apps/events","assignees_url":"https://api.github.com/repos/numenta/numenta-apps/assignees{/user}","branches_url":"https://api.github.com/repos/numenta/numenta-apps/branches{/branch}","tags_url":"https://api.github.com/repos/numenta/numenta-apps/tags","blobs_url":"https://api.github.com/repos/numenta/numenta-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numenta/numenta-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numenta/numenta-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/numenta/numenta-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numenta/numenta-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/numenta/numenta-apps/languages","stargazers_url":"https://api.github.com/repos/numenta/numenta-apps/stargazers","contributors_url":"https://api.github.com/repos/numenta/numenta-apps/contributors","subscribers_url":"https://api.github.com/repos/numenta/numenta-apps/subscribers","subscription_url":"https://api.github.com/repos/numenta/numenta-apps/subscription","commits_url":"https://api.github.com/repos/numenta/numenta-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/numenta/numenta-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/numenta/numenta-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/numenta/numenta-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/numenta/numenta-apps/contents/{+path}","compare_url":"https://api.github.com/repos/numenta/numenta-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numenta/numenta-apps/merges","archive_url":"https://api.github.com/repos/numenta/numenta-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numenta/numenta-apps/downloads","issues_url":"https://api.github.com/repos/numenta/numenta-apps/issues{/number}","pulls_url":"https://api.github.com/repos/numenta/numenta-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/numenta/numenta-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/numenta/numenta-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numenta/numenta-apps/labels{/name}","releases_url":"https://api.github.com/repos/numenta/numenta-apps/releases{/id}","created_at":"2015-06-02T18:49:30Z","updated_at":"2015-08-10T07:48:16Z","pushed_at":"2015-08-11T21:45:13Z","git_url":"git://github.com/numenta/numenta-apps.git","ssh_url":"git@github.com:numenta/numenta-apps.git","clone_url":"https://github.com/numenta/numenta-apps.git","svn_url":"https://github.com/numenta/numenta-apps","homepage":"http://numenta.com","size":45518,"stargazers_count":48,"watchers_count":48,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":8,"forks":35,"open_issues":8,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/197"},"html":{"href":"https://github.com/numenta/numenta-apps/pull/197"},"issue":{"href":"https://api.github.com/repos/numenta/numenta-apps/issues/197"},"comments":{"href":"https://api.github.com/repos/numenta/numenta-apps/issues/197/comments"},"review_comments":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/197/comments"},"review_comment":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/197/commits"},"statuses":{"href":"https://api.github.com/repos/numenta/numenta-apps/statuses/432e9a88b59db62277de3d8aa16adcaa38489ef0"}}}}