Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

remove message hook#13

Open
balanza wants to merge 1 commit into
masterfrom
remove-commit-name-formatting
Open

remove message hook#13
balanza wants to merge 1 commit into
masterfrom
remove-commit-name-formatting

Conversation

@balanza

@balanza balanza commented Nov 7, 2022

Copy link
Copy Markdown
Contributor

This PR is to remove two commit message behaviors:

  1. Infer Jira issue id from branch, and prepend it to the commit message
  2. Limit commit message length to 72 characters

I find both more annoying than useful. We can improve them for sure, but IMHO it's not worth the effort.


Why remove Infer Jira issue id from branch, and prepend it to the commit message
IMHO this hook brings no value because:

  • the ticket id is in the branch name
  • We don't commit straight to master, but we rather squash&commit a PR - hence the issue id is tracked by the PR title

Furthermore, it is really annoying as the script keeps prepending the id to the commit on every history rewrite (amend, rebase, etc).


Why remove Limit commit message length to 72 characters
While this may work for human-written messages, it often breaks for auto-generated commit messages (like merge commits)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants