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

[Feature]: Customizable Subject templates #205

Open
seho-dev opened this issue Jun 15, 2023 · 2 comments
Open

[Feature]: Customizable Subject templates #205

seho-dev opened this issue Jun 15, 2023 · 2 comments

Comments

@seho-dev
Copy link
Contributor

Description

Maybe I can add a subject template to opencommit, so that the user can add any message at the beginning or end of the subject

In a git commit:

feat: add test

It is common to treat add test as a subject

So, I want to provide a mechanism to allow the user to define the content of the subject, let's say by adding the issue association to the end of it

feat: add test #1

I will explore a better way to implement this feature

Suggested Solution

none

Alternatives

No response

Additional Context

No response

@seho-dev
Copy link
Contributor Author

seho-dev commented Jun 15, 2023

oco --no-verify '$msg project#27'

It might be nice to provide a string template similar to the one used in ES6 to implement this functionality?

@di-sukharev

seho-dev added a commit to seho-dev/opencommit that referenced this issue Jun 18, 2023
…tem to allow users to customize the message template placeholder

feat(commit.ts): add check for message templates in extraArgs and replace OCO_MESSAGE_TEMPLATE_PLACEHOLDER with generated commit message if found
docs(README.md): add documentation for OCO_MESSAGE_TEMPLATE_PLACEHOLDER configuration item and how to use it in the command line (di-sukharev#205)
di-sukharev pushed a commit that referenced this issue Jul 5, 2023
…tem to allow users to customize the message template placeholder (#208)

feat(commit.ts): add check for message templates in extraArgs and replace OCO_MESSAGE_TEMPLATE_PLACEHOLDER with generated commit message if found
docs(README.md): add documentation for OCO_MESSAGE_TEMPLATE_PLACEHOLDER configuration item and how to use it in the command line (#205)
@github-actions
Copy link

Stale issue message

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

No branches or pull requests

2 participants