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]: Add prefix option for commit messages #152

Open
codebydant opened this issue Apr 30, 2023 · 6 comments
Open

[Feature]: Add prefix option for commit messages #152

codebydant opened this issue Apr 30, 2023 · 6 comments

Comments

@codebydant
Copy link

codebydant commented Apr 30, 2023

Description

Hi @di-sukharev,

Thanks for this wonderful tool.

It would be great to have the option to define a custom prefix message for the commits.

Suggested Solution

Something like:

custom-message: JIRA#
custom-message: AB#
custom-message: GI#

Alternatives

Additional Context

This will allow us to pass the commit message validator in our CI pipelines. For e.g. in our team, we use Azure Board for defining commit messages.

AB#0 feat(back): add new backend module

Since this tool is already using the conventional commits standard, would be great to have an option to include our specific project prefix in the tool.

@di-sukharev
Copy link
Owner

that's smart, would you like to make a PR?

@amitayk
Copy link

amitayk commented May 4, 2023

Great idea! Perhaps allow for regex-based or static prefixes?

For example, my work follows this standard:

Branch name: DEV-12345-fix-broken-pipe, where 12345 is the Jira ticket number.
Each commit must start with the prefix DEV-12345:.

If I were to create a PR that allows for static or regex-based commit message prefixes, would this be useful to anyone? 😅
@di-sukharev

@codebydant
Copy link
Author

@amyu98 sounds really powerful.

@amitayk
Copy link

amitayk commented May 4, 2023

@dtcMLOps Ill give it a shot

@amitayk
Copy link

amitayk commented May 4, 2023

@dtcMLOps @di-sukharev

#160

First time contributing to open-source, let me know what you think 😅

@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

3 participants