{"action":"created","issue":{"url":"https://api.github.com/repos/github/hub/issues/888","labels_url":"https://api.github.com/repos/github/hub/issues/888/labels{/name}","comments_url":"https://api.github.com/repos/github/hub/issues/888/comments","events_url":"https://api.github.com/repos/github/hub/issues/888/events","html_url":"https://github.com/github/hub/issues/888","id":73344037,"number":888,"title":"hub am is stripping square brackets ","user":{"login":"amuraru","id":728853,"avatar_url":"https://avatars.githubusercontent.com/u/728853?v=3","gravatar_id":"","url":"https://api.github.com/users/amuraru","html_url":"https://github.com/amuraru","followers_url":"https://api.github.com/users/amuraru/followers","following_url":"https://api.github.com/users/amuraru/following{/other_user}","gists_url":"https://api.github.com/users/amuraru/gists{/gist_id}","starred_url":"https://api.github.com/users/amuraru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amuraru/subscriptions","organizations_url":"https://api.github.com/users/amuraru/orgs","repos_url":"https://api.github.com/users/amuraru/repos","events_url":"https://api.github.com/users/amuraru/events{/privacy}","received_events_url":"https://api.github.com/users/amuraru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-05T15:20:42Z","updated_at":"2015-05-08T14:08:23Z","closed_at":null,"body":"when the commit title for a PR is containing square brackets, e.g `[JIRA-NNNN] - My patch for this jira`, `hub am` will strip `[JIRA-NNNN]`.\r\nIs this intended?"},"comment":{"url":"https://api.github.com/repos/github/hub/issues/comments/100242397","html_url":"https://github.com/github/hub/issues/888#issuecomment-100242397","issue_url":"https://api.github.com/repos/github/hub/issues/888","id":100242397,"user":{"login":"jingweno","id":169064,"avatar_url":"https://avatars.githubusercontent.com/u/169064?v=3","gravatar_id":"","url":"https://api.github.com/users/jingweno","html_url":"https://github.com/jingweno","followers_url":"https://api.github.com/users/jingweno/followers","following_url":"https://api.github.com/users/jingweno/following{/other_user}","gists_url":"https://api.github.com/users/jingweno/gists{/gist_id}","starred_url":"https://api.github.com/users/jingweno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jingweno/subscriptions","organizations_url":"https://api.github.com/users/jingweno/orgs","repos_url":"https://api.github.com/users/jingweno/repos","events_url":"https://api.github.com/users/jingweno/events{/privacy}","received_events_url":"https://api.github.com/users/jingweno/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T14:08:23Z","updated_at":"2015-05-08T14:08:23Z","body":"I'm not aware of any code to trim out commit title. All `hub` does is to [download the patch to a temporary file](https://github.com/github/hub/blob/master/commands/apply.go#L62-L106) and let `git-apply` deal with the rest.\r\n\r\nAlso I think there might be some misunderstanding of how `git-apply` works. `git-apply` is from git and it shouldn't have anything to deal with the title for a PR which is a GitHub feature."}}