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

Suggestion: Allow you to define prefix #63

Open
glassesUSA opened this issue Aug 30, 2021 · 4 comments · May be fixed by #64
Open

Suggestion: Allow you to define prefix #63

glassesUSA opened this issue Aug 30, 2021 · 4 comments · May be fixed by #64
Labels
enhancement New feature or request

Comments

@glassesUSA
Copy link

Can there be a way to define a custom prefix before each message? For example

ThisIsARequest - update 4 files delete 1 file

@MichaelCurrin
Copy link
Owner

Thanks, good idea!

I'm after this myself.

I've being using git commit message template, but it doesn't give full functionality i need.

@MichaelCurrin
Copy link
Owner

MichaelCurrin commented Aug 30, 2021

Do you think the extension should create from configured commit.template value? And read ThisIsARequest from _COMMIT_MSG or whatever txt file on disc.

Then it is a natural flow.

I like _COMMIT_MSG as a file in the repo and then ignore the file globally and put my content in there. It fills the commit msg whether using the CLI or the Git pane, so works without my extension.

The tricky bit is that the template message should appear at the start of end of the final generated message.

@MichaelCurrin
Copy link
Owner

MichaelCurrin commented Aug 30, 2021

A hack for the short term, based on current implementation of the extension

So far if you do this with a colon

ThisIsARequest docs:

and run the extension, you'll get your file changes listed. But docs won't change.

so it will be generated as

ThisIsARequest docs: update 4 files delete 1 file

While

ThisIsARequest

will result in unfortunately.

feat: update 4 files delete 1 file ThisIsARequest 

@MichaelCurrin MichaelCurrin linked a pull request Sep 22, 2021 that will close this issue
6 tasks
@MichaelCurrin MichaelCurrin added the enhancement New feature or request label Sep 22, 2021
@MichaelCurrin
Copy link
Owner

I have work in progress in #64. I'll update here when I get further with it.

@MichaelCurrin MichaelCurrin pinned this issue Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants