{"action":"closed","issue":{"url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/40","repository_url":"https://api.github.com/repos/gnustavo/Git-Hooks","labels_url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/40/comments","events_url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/40/events","html_url":"https://github.com/gnustavo/Git-Hooks/issues/40","id":260639628,"number":40,"title":"CheckLog - matching the first line","user":{"login":"boudekerk","id":4579410,"avatar_url":"https://avatars1.githubusercontent.com/u/4579410?v=4","gravatar_id":"","url":"https://api.github.com/users/boudekerk","html_url":"https://github.com/boudekerk","followers_url":"https://api.github.com/users/boudekerk/followers","following_url":"https://api.github.com/users/boudekerk/following{/other_user}","gists_url":"https://api.github.com/users/boudekerk/gists{/gist_id}","starred_url":"https://api.github.com/users/boudekerk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boudekerk/subscriptions","organizations_url":"https://api.github.com/users/boudekerk/orgs","repos_url":"https://api.github.com/users/boudekerk/repos","events_url":"https://api.github.com/users/boudekerk/events{/privacy}","received_events_url":"https://api.github.com/users/boudekerk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-26T14:14:19Z","updated_at":"2017-09-27T10:09:28Z","closed_at":"2017-09-27T10:09:28Z","author_association":"NONE","body":"We have a policy where we require a valid JIRA issue on the first line. Unfortunately we're currently unable to enforce this. We would like way to match against the first line of the commit message, whether this is the title or part of the body.\r\n\r\nIt's currently possible to use title-match with an optional title (githooks.checklog.title-required 0), but additionally enabling githooks.checklog.match is not possible as it:\r\n a] always match the message body, whether a title was present or not\r\n b] is applied to the whole message, not just the first line (which can't be matched by regex either AFAIK)\r\n\r\nWould it be possible to introduce something like the following:\r\n\r\ngithooks.checklog.title-strict [01]\r\nThis option, which is 1 by default, requires the title to be separated from the body by one empty line. If you set this to 0 the first line will always be treated as the title.\r\n\r\nThanks for considering."}}
{"actor":{"display_login":"boudekerk"}}