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 flag for custom prompts to increase user flexibility and language support #103

Closed
atikahe opened this issue Feb 22, 2023 · 4 comments

Comments

@atikahe
Copy link

atikahe commented Feb 22, 2023

Advantages of having a flag to allow additional custom prompt:

  1. More flexibility for the user in configuring how they want the commit message to look like. Sometimes we want to use the full Conventional style, sometimes only parts of it (e.g. having "Refactor" or "Feature" prefix, etc).
  2. Support for other languages without any changes on the program.
  3. Save the custom prompt so user don't have to re-type each time.
@atikahe
Copy link
Author

atikahe commented Feb 22, 2023

Will be happy to submit a PR if this is useful 🔥

@atikahe atikahe changed the title Customization: Support for additional custom prompt Feature: Add flag for custom prompts to increase user flexibility and language support Feb 22, 2023
@privatenumber
Copy link
Collaborator

Language request is a duplicate of #30

Not sure what you mean by custom prompt.

@law-chain-hot
Copy link

Language request is a duplicate of #30

Not sure what you mean by custom prompt.

I think that @atikahe means having a flag like --custom='<custom prompt>', in order to customize the output

which will be append to promptTemplate as following, like

const newPromptTemplate = promptTemplate + `<custom prompt>`

Relative Code👇🏻

const promptTemplate = 'Write an insightful but concise Git commit message in a complete sentence in present tense for the following diff without prefacing it with anything:';

@privatenumber
Copy link
Collaborator

Closing as language support was added here: #96

I'm not sure about the custom prompt one but feel free to open a separate issue for that with more details.

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