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

Support gitmoji #20

Open
MarcusOtter opened this issue Feb 14, 2023 · 7 comments · May be fixed by #76
Open

Support gitmoji #20

MarcusOtter opened this issue Feb 14, 2023 · 7 comments · May be fixed by #76
Labels
feature New feature or request

Comments

@MarcusOtter
Copy link

It would be cool if it could optionally automatically pick a nice emoji, for example following https://gitmoji.dev

@AntoineKM
Copy link

ahah I was going to make the same suggestion

@Nutlope
Copy link
Owner

Nutlope commented Feb 16, 2023

Agreed! Added this feature suggestion to the README and will plan to implement it under a feature flag so only those who want it can use it

@privatenumber
Copy link
Collaborator

Would be helpful if someone can engineer a prompt for this and suggest it here. You can experiment for free on https://chat.openai.com.

@kcoderhtml
Copy link
Contributor

A variation of this might work.

I will give you a commit message for git, and you will classify the commit category and pick a suitable gitmoji for the category. Respond with only the emoji and then the category you classified the commit as, don't give any commentary. Here is your first commit: {{commitMessage}}

@kcoderhtml
Copy link
Contributor

Example output:
feat: show multiple options (#64) > ✨ feat (feature)
chore: add commit hooks (#56) > 🔧 chore (maintenance)
Merge pull request #63 from Nutlope/bundle-deps > 🔄 merge (merge)

@kcoderhtml
Copy link
Contributor

v2 that only gives the text code:

I will give you a commit message for git, and you will classify the commit category and pick a suitable gitmoji for the category.
Respond with only the gitmoji text code and not an emoji or commit catagory, don't give any commentary.
Response should be formated like this without the quotes: ':sparkles:'
Here is your commit:  {{commitMessage}}

@Th3Kr4t3 Th3Kr4t3 linked a pull request Feb 18, 2023 that will close this issue
@Th3Kr4t3
Copy link

I sent a PR on how to implement this, I added a prompt to the end like this:
preface with the suitable Gitmoji markup between colons:
to use it:

Write an insightful but concise Git commit message in a complete sentence in present tense for the following diff preface with the suitable Gitmoji markup between colons:\n${diff}

@privatenumber privatenumber added the feature New feature or request label Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants