-
Notifications
You must be signed in to change notification settings - Fork 123
feat: Support custom templates for commits + PRs #1048
base: master
Are you sure you want to change the base?
feat: Support custom templates for commits + PRs #1048
Conversation
31d9b10
to
9166b54
Compare
will this feature be merged? |
I am very interested in the ability to set custom templates for commit messages and PR titles. We have a requirement to put a JIRA ticket number in both of these places. |
I'm also interested in this; seems like a relatively small change too! |
This commit introduces mustache templates for commit messages, and pull request titles and bodies. The design consists of templates with predefined properties. A custom template can be provided. Stubble has been chosen as the template renderer. It is possible to define additional context for the templates, this also includes delegates. These can be provided as the value of a "_delegates" key in the context.
9166b54
to
1dd5f23
Compare
Rebased to incorporate new changes on master and fix conflicts. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Heya, what needs done to get this functionality added? This still remains a dealbreaker of using this tool for us. |
We are very interested in having custom commit messages, as we are using conventional commits to automatically set our version. We are able to invest time into this feature. How to go on with this PR? What's missing? How can we help? |
Any news? Still ready to help, if necessary. cc org members: @slang25 @shep1987 @MarcBruins @AnthonySteele |
For those which are looking for the corresponding issue (closed because of inactivity): #897 |
@CrispyDrone can you please rebase the branch on the latest master? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)
Feature.
All commit messages, and pull request title and body templates are hardcoded.
🆕 What is the new behavior (if this is a feature change)?
This commit introduces mustache templates for commit messages, and pull
request titles and bodies.
The design consists of templates with predefined properties. A custom
template can be provided.
Stubble has been chosen as the template renderer.
It is possible to define additional context for the templates, this also
includes delegates. These can be provided as the value of a "_delegates"
key in the context.
💥 Does this PR introduce a breaking change?
No.
🐛 Recommendations for testing
Creation of pull requests and commits.
📝 Links to relevant issues/docs
N/A
🤔 Checklist before submitting