{"action":"created","issue":{"url":"https://api.github.com/repos/sociomantic/git-hub/issues/130","labels_url":"https://api.github.com/repos/sociomantic/git-hub/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/sociomantic/git-hub/issues/130/comments","events_url":"https://api.github.com/repos/sociomantic/git-hub/issues/130/events","html_url":"https://github.com/sociomantic/git-hub/issues/130","id":68953254,"number":130,"title":"git hub pull attach result in HTTP error 422","user":{"login":"mathias-lang-sociomantic","id":11289420,"avatar_url":"https://avatars.githubusercontent.com/u/11289420?v=3","gravatar_id":"","url":"https://api.github.com/users/mathias-lang-sociomantic","html_url":"https://github.com/mathias-lang-sociomantic","followers_url":"https://api.github.com/users/mathias-lang-sociomantic/followers","following_url":"https://api.github.com/users/mathias-lang-sociomantic/following{/other_user}","gists_url":"https://api.github.com/users/mathias-lang-sociomantic/gists{/gist_id}","starred_url":"https://api.github.com/users/mathias-lang-sociomantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathias-lang-sociomantic/subscriptions","organizations_url":"https://api.github.com/users/mathias-lang-sociomantic/orgs","repos_url":"https://api.github.com/users/mathias-lang-sociomantic/repos","events_url":"https://api.github.com/users/mathias-lang-sociomantic/events{/privacy}","received_events_url":"https://api.github.com/users/mathias-lang-sociomantic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"leandro-lucarella-sociomantic","id":2684688,"avatar_url":"https://avatars.githubusercontent.com/u/2684688?v=3","gravatar_id":"","url":"https://api.github.com/users/leandro-lucarella-sociomantic","html_url":"https://github.com/leandro-lucarella-sociomantic","followers_url":"https://api.github.com/users/leandro-lucarella-sociomantic/followers","following_url":"https://api.github.com/users/leandro-lucarella-sociomantic/following{/other_user}","gists_url":"https://api.github.com/users/leandro-lucarella-sociomantic/gists{/gist_id}","starred_url":"https://api.github.com/users/leandro-lucarella-sociomantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandro-lucarella-sociomantic/subscriptions","organizations_url":"https://api.github.com/users/leandro-lucarella-sociomantic/orgs","repos_url":"https://api.github.com/users/leandro-lucarella-sociomantic/repos","events_url":"https://api.github.com/users/leandro-lucarella-sociomantic/events{/privacy}","received_events_url":"https://api.github.com/users/leandro-lucarella-sociomantic/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/sociomantic/git-hub/milestones/10","html_url":"https://github.com/sociomantic/git-hub/milestones/v0.9","labels_url":"https://api.github.com/repos/sociomantic/git-hub/milestones/10/labels","id":866981,"number":10,"title":"v0.9","description":"","creator":{"login":"leandro-lucarella-sociomantic","id":2684688,"avatar_url":"https://avatars.githubusercontent.com/u/2684688?v=3","gravatar_id":"","url":"https://api.github.com/users/leandro-lucarella-sociomantic","html_url":"https://github.com/leandro-lucarella-sociomantic","followers_url":"https://api.github.com/users/leandro-lucarella-sociomantic/followers","following_url":"https://api.github.com/users/leandro-lucarella-sociomantic/following{/other_user}","gists_url":"https://api.github.com/users/leandro-lucarella-sociomantic/gists{/gist_id}","starred_url":"https://api.github.com/users/leandro-lucarella-sociomantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandro-lucarella-sociomantic/subscriptions","organizations_url":"https://api.github.com/users/leandro-lucarella-sociomantic/orgs","repos_url":"https://api.github.com/users/leandro-lucarella-sociomantic/repos","events_url":"https://api.github.com/users/leandro-lucarella-sociomantic/events{/privacy}","received_events_url":"https://api.github.com/users/leandro-lucarella-sociomantic/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":4,"state":"open","created_at":"2014-11-14T17:55:42Z","updated_at":"2015-04-16T16:09:24Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-04-16T15:50:31Z","updated_at":"2015-04-17T10:58:18Z","closed_at":null,"body":"That happens consistently when I try to `git hub pull attach`.\r\n\r\n````\r\nmathiaslang@ubuntu ~/projects/XXX (git)-[stats] % git hub pull attach 33             \r\nPushing stats to stats in origin\r\nAttaching commits in branch stats to issue #33 (to be merged to sociomantic/XXX:branch)\r\nError: GitHub error: Validation Failed\r\nError: HTTP Error 422: Unprocessable Entity\r\nError: https://api.github.com/repos/sociomantic/XXX/pulls\r\nError: <httplib.HTTPMessage instance at 0x2abec68>\r\nError: {\"message\":\"Validation Failed\",\"errors\":[{\"resource\":\"PullRequest\",\"field\":\"base\",\"code\":\"invalid\"}],\"documentation_url\":\"https://developer.github.com/v3/pulls/#create-a-pull-request\"}\r\n````\r\n\r\nI have push access to XXX. I used it once before, and it worked fine."},"comment":{"url":"https://api.github.com/repos/sociomantic/git-hub/issues/comments/93964727","html_url":"https://github.com/sociomantic/git-hub/issues/130#issuecomment-93964727","issue_url":"https://api.github.com/repos/sociomantic/git-hub/issues/130","id":93964727,"user":{"login":"mathias-lang-sociomantic","id":11289420,"avatar_url":"https://avatars.githubusercontent.com/u/11289420?v=3","gravatar_id":"","url":"https://api.github.com/users/mathias-lang-sociomantic","html_url":"https://github.com/mathias-lang-sociomantic","followers_url":"https://api.github.com/users/mathias-lang-sociomantic/followers","following_url":"https://api.github.com/users/mathias-lang-sociomantic/following{/other_user}","gists_url":"https://api.github.com/users/mathias-lang-sociomantic/gists{/gist_id}","starred_url":"https://api.github.com/users/mathias-lang-sociomantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathias-lang-sociomantic/subscriptions","organizations_url":"https://api.github.com/users/mathias-lang-sociomantic/orgs","repos_url":"https://api.github.com/users/mathias-lang-sociomantic/repos","events_url":"https://api.github.com/users/mathias-lang-sociomantic/events{/privacy}","received_events_url":"https://api.github.com/users/mathias-lang-sociomantic/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T10:58:18Z","updated_at":"2015-04-17T10:58:18Z","body":"````\r\ngit hub -v pull attach 33\r\n\r\ngit command: ['git', 'config', 'hub.username'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'config', 'hub.oauthtoken'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'config', 'hub.upstream'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'config', 'hub.forkrepo'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'config', 'hub.forkremote'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'config', 'hub.pullbase'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'config', 'hub.urltype'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'config', 'hub.baseurl'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'config', '--bool', 'hub.forcerebase'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'config', '--bool', 'hub.triangular'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'config', 'hub.password'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'rev-parse', 'HEAD'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'rev-parse', '--abbrev-ref', 'HEAD'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'config', 'branch.branch.merge'] {'stderr': -1, 'stdout': -1}\r\ngit command: ['git', 'rev-parse', 'branch'] {'stderr': -1, 'stdout': -1}\r\nPushing branch to branch in origin\r\ngit command: ['git', 'push', '--force', 'origin', 'branch:refs/heads/branch'] {'stderr': -1, 'stdout': -1}\r\nAttaching commits in branch branch to issue #33 (to be merged to sociomantic/project:branch)\r\nRequest: POST https://api.github.com/repos/sociomantic/project/pulls\r\n{\"head\": \"mathias-lang-sociomantic:branch\", \"base\": \"branch\", \"issue\": \"33\"}\r\nhttps://api.github.com/repos/sociomantic/project/pulls\r\nContent-length: 74\r\nContent-type: application/json\r\nAuthorization: <hidden>\r\nAccept: application/vnd.github.v3+json\r\n{\"head\": \"mathias-lang-sociomantic:branch\", \"base\": \"branch\", \"issue\": \"33\"}\r\nError: GitHub error: Validation Failed\r\nError: HTTP Error 422: Unprocessable Entity\r\nError: https://api.github.com/repos/sociomantic/project/pulls\r\nError: <httplib.HTTPMessage instance at 0x16c9cf8>\r\nError: {\"message\":\"Validation Failed\",\"errors\":[{\"resource\":\"PullRequest\",\"field\":\"base\",\"code\":\"invalid\"}],\"documentation_url\":\"https://developer.github.com/v3/pulls/#create-a-pull-request\"}\r\n"}}