{"action":"opened","number":1354,"pull_request":{"url":"https://api.github.com/repos/heroku/heroku/pulls/1354","id":27204061,"html_url":"https://github.com/heroku/heroku/pull/1354","diff_url":"https://github.com/heroku/heroku/pull/1354.diff","patch_url":"https://github.com/heroku/heroku/pull/1354.patch","issue_url":"https://api.github.com/repos/heroku/heroku/issues/1354","number":1354,"state":"open","locked":false,"title":"Fix bug in extract_app_in_dir when getting remote","user":{"login":"deeperx","id":621232,"avatar_url":"https://avatars.githubusercontent.com/u/621232?v=3","gravatar_id":"","url":"https://api.github.com/users/deeperx","html_url":"https://github.com/deeperx","followers_url":"https://api.github.com/users/deeperx/followers","following_url":"https://api.github.com/users/deeperx/following{/other_user}","gists_url":"https://api.github.com/users/deeperx/gists{/gist_id}","starred_url":"https://api.github.com/users/deeperx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deeperx/subscriptions","organizations_url":"https://api.github.com/users/deeperx/orgs","repos_url":"https://api.github.com/users/deeperx/repos","events_url":"https://api.github.com/users/deeperx/events{/privacy}","received_events_url":"https://api.github.com/users/deeperx/received_events","type":"User","site_admin":false},"body":"Sometimes, heroku client cannot find the remote app even when it's been added to git config. This fixes it.\r\n\r\n**Case:**\r\n\r\n```bash\r\ngit remote add heroku git@heroku.com:yourapp.git\r\n\r\n# OR\r\nheroku git:remote -a yourapp\r\n```\r\n\r\n```bash\r\n# .git/config\r\n[remote \"heroku\"]\r\n\turl = https://git.heroku.com/yourapp.git\r\n\tfetch = +refs/heads/*:refs/remotes/heroku/*\r\n```\r\n\r\n```bash\r\n$ heroku logs\r\n!    No app specified.\r\n!    Run this command from an app folder or specify which app to use with --app APP.\r\n```\r\n","created_at":"2015-01-12T16:01:23Z","updated_at":"2015-01-12T16:01:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/heroku/heroku/pulls/1354/commits","review_comments_url":"https://api.github.com/repos/heroku/heroku/pulls/1354/comments","review_comment_url":"https://api.github.com/repos/heroku/heroku/pulls/comments/{number}","comments_url":"https://api.github.com/repos/heroku/heroku/issues/1354/comments","statuses_url":"https://api.github.com/repos/heroku/heroku/statuses/9b672a51f04d8301482b0f62025a676f2b5759bd","head":{"label":"deeperx:master","ref":"master","sha":"9b672a51f04d8301482b0f62025a676f2b5759bd","user":{"login":"deeperx","id":621232,"avatar_url":"https://avatars.githubusercontent.com/u/621232?v=3","gravatar_id":"","url":"https://api.github.com/users/deeperx","html_url":"https://github.com/deeperx","followers_url":"https://api.github.com/users/deeperx/followers","following_url":"https://api.github.com/users/deeperx/following{/other_user}","gists_url":"https://api.github.com/users/deeperx/gists{/gist_id}","starred_url":"https://api.github.com/users/deeperx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deeperx/subscriptions","organizations_url":"https://api.github.com/users/deeperx/orgs","repos_url":"https://api.github.com/users/deeperx/repos","events_url":"https://api.github.com/users/deeperx/events{/privacy}","received_events_url":"https://api.github.com/users/deeperx/received_events","type":"User","site_admin":false},"repo":{"id":29143231,"name":"heroku","full_name":"deeperx/heroku","owner":{"login":"deeperx","id":621232,"avatar_url":"https://avatars.githubusercontent.com/u/621232?v=3","gravatar_id":"","url":"https://api.github.com/users/deeperx","html_url":"https://github.com/deeperx","followers_url":"https://api.github.com/users/deeperx/followers","following_url":"https://api.github.com/users/deeperx/following{/other_user}","gists_url":"https://api.github.com/users/deeperx/gists{/gist_id}","starred_url":"https://api.github.com/users/deeperx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deeperx/subscriptions","organizations_url":"https://api.github.com/users/deeperx/orgs","repos_url":"https://api.github.com/users/deeperx/repos","events_url":"https://api.github.com/users/deeperx/events{/privacy}","received_events_url":"https://api.github.com/users/deeperx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deeperx/heroku","description":"Heroku CLI","fork":true,"url":"https://api.github.com/repos/deeperx/heroku","forks_url":"https://api.github.com/repos/deeperx/heroku/forks","keys_url":"https://api.github.com/repos/deeperx/heroku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deeperx/heroku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deeperx/heroku/teams","hooks_url":"https://api.github.com/repos/deeperx/heroku/hooks","issue_events_url":"https://api.github.com/repos/deeperx/heroku/issues/events{/number}","events_url":"https://api.github.com/repos/deeperx/heroku/events","assignees_url":"https://api.github.com/repos/deeperx/heroku/assignees{/user}","branches_url":"https://api.github.com/repos/deeperx/heroku/branches{/branch}","tags_url":"https://api.github.com/repos/deeperx/heroku/tags","blobs_url":"https://api.github.com/repos/deeperx/heroku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deeperx/heroku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deeperx/heroku/git/refs{/sha}","trees_url":"https://api.github.com/repos/deeperx/heroku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deeperx/heroku/statuses/{sha}","languages_url":"https://api.github.com/repos/deeperx/heroku/languages","stargazers_url":"https://api.github.com/repos/deeperx/heroku/stargazers","contributors_url":"https://api.github.com/repos/deeperx/heroku/contributors","subscribers_url":"https://api.github.com/repos/deeperx/heroku/subscribers","subscription_url":"https://api.github.com/repos/deeperx/heroku/subscription","commits_url":"https://api.github.com/repos/deeperx/heroku/commits{/sha}","git_commits_url":"https://api.github.com/repos/deeperx/heroku/git/commits{/sha}","comments_url":"https://api.github.com/repos/deeperx/heroku/comments{/number}","issue_comment_url":"https://api.github.com/repos/deeperx/heroku/issues/comments/{number}","contents_url":"https://api.github.com/repos/deeperx/heroku/contents/{+path}","compare_url":"https://api.github.com/repos/deeperx/heroku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deeperx/heroku/merges","archive_url":"https://api.github.com/repos/deeperx/heroku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deeperx/heroku/downloads","issues_url":"https://api.github.com/repos/deeperx/heroku/issues{/number}","pulls_url":"https://api.github.com/repos/deeperx/heroku/pulls{/number}","milestones_url":"https://api.github.com/repos/deeperx/heroku/milestones{/number}","notifications_url":"https://api.github.com/repos/deeperx/heroku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deeperx/heroku/labels{/name}","releases_url":"https://api.github.com/repos/deeperx/heroku/releases{/id}","created_at":"2015-01-12T15:57:09Z","updated_at":"2015-01-12T15:57:31Z","pushed_at":"2015-01-12T15:57:31Z","git_url":"git://github.com/deeperx/heroku.git","ssh_url":"git@github.com:deeperx/heroku.git","clone_url":"https://github.com/deeperx/heroku.git","svn_url":"https://github.com/deeperx/heroku","homepage":"https://devcenter.heroku.com/articles/heroku-command","size":12345,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"heroku:master","ref":"master","sha":"f9b02578981136fa6d4c445d91c9adc828e1ff02","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":153204,"name":"heroku","full_name":"heroku/heroku","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/heroku","description":"Heroku CLI","fork":false,"url":"https://api.github.com/repos/heroku/heroku","forks_url":"https://api.github.com/repos/heroku/heroku/forks","keys_url":"https://api.github.com/repos/heroku/heroku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/heroku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/heroku/teams","hooks_url":"https://api.github.com/repos/heroku/heroku/hooks","issue_events_url":"https://api.github.com/repos/heroku/heroku/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/heroku/events","assignees_url":"https://api.github.com/repos/heroku/heroku/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/heroku/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/heroku/tags","blobs_url":"https://api.github.com/repos/heroku/heroku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/heroku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/heroku/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/heroku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/heroku/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/heroku/languages","stargazers_url":"https://api.github.com/repos/heroku/heroku/stargazers","contributors_url":"https://api.github.com/repos/heroku/heroku/contributors","subscribers_url":"https://api.github.com/repos/heroku/heroku/subscribers","subscription_url":"https://api.github.com/repos/heroku/heroku/subscription","commits_url":"https://api.github.com/repos/heroku/heroku/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/heroku/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/heroku/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/heroku/issues/comments/{number}","contents_url":"https://api.github.com/repos/heroku/heroku/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/heroku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/heroku/merges","archive_url":"https://api.github.com/repos/heroku/heroku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/heroku/downloads","issues_url":"https://api.github.com/repos/heroku/heroku/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/heroku/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/heroku/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/heroku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/heroku/labels{/name}","releases_url":"https://api.github.com/repos/heroku/heroku/releases{/id}","created_at":"2009-03-18T01:21:53Z","updated_at":"2015-01-11T20:54:17Z","pushed_at":"2015-01-12T00:22:06Z","git_url":"git://github.com/heroku/heroku.git","ssh_url":"git@github.com:heroku/heroku.git","clone_url":"https://github.com/heroku/heroku.git","svn_url":"https://github.com/heroku/heroku","homepage":"https://devcenter.heroku.com/articles/heroku-command","size":12345,"stargazers_count":1079,"watchers_count":1079,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":300,"mirror_url":null,"open_issues_count":240,"forks":300,"open_issues":240,"watchers":1079,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/heroku/heroku/pulls/1354"},"html":{"href":"https://github.com/heroku/heroku/pull/1354"},"issue":{"href":"https://api.github.com/repos/heroku/heroku/issues/1354"},"comments":{"href":"https://api.github.com/repos/heroku/heroku/issues/1354/comments"},"review_comments":{"href":"https://api.github.com/repos/heroku/heroku/pulls/1354/comments"},"review_comment":{"href":"https://api.github.com/repos/heroku/heroku/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/heroku/heroku/pulls/1354/commits"},"statuses":{"href":"https://api.github.com/repos/heroku/heroku/statuses/9b672a51f04d8301482b0f62025a676f2b5759bd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":1,"changed_files":2}}