Using Bitbucket Server with Jira, is it possible to restrict commit message scanning to the first line only for Jira keys? For example:
PROJ-5678: Revise integration script
Further details here are ignored for linking.
Using Bitbucket Server with Jira, is it possible to restrict commit message scanning to the first line only for Jira keys? For example:
PROJ-5678: Revise integration script
Further details here are ignored for linking.
hey, i dont think its possible out of the box. bitbucket scans the entire commit message for jira keys. you possbly could hack a workaround with a custum hook or regex filtering, but there’s no built in flag to limit it to the first line only. good luck!
Based on my experience, the scanning process in Bitbucket thoroughly processes the entire commit message without a built-in option to restrict it to the first line. The system is designed to search across the whole message for potential Jira keys, meaning that any valid key, regardless of its position, is detected. To address this, one can either enforce strict commit message guidelines to ensure the key is always on top or implement custom hooks to filter the message content prior to processing. Both methods have their pros and cons.