Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support appending template text to existing commit message #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mkempster
Copy link

I need the ability to help committers add crucible smart-commit tags to their commit messages. The original implementation of this plugin replaces the commit message with an external file or text. I adjusted that to provide an 'append to the existing message' option that preserves the existing commit message and adds the template.

In our case, the commit message associated with a vcs changelist normally is the bug number and its brief description on one line. The template would look something like this "+review PROJ @dev1 @Dev2". So the combined line is like

BUG-123 Fix the thing +review PROJ @dev1 @Dev2

This implementation is incomplete (see the commented out block in CommitMessageTemplateAction.java) but should be enough to share the idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant