Prompts #18
Replies: 15 comments 20 replies
-
Title: Enhanced-Conventional Write a meaningful commit message in the conventional commit convention by trying to understand what was the benefits the code author wanted to add by his changes to codebase with this commit. I'll send you an output of 'git diff --staged' command, and you convert it into a commit message. Lines must not be longer than 74 characters. Use {locale} language to answer. End commit title with issue number if you can get it from the branch name: {branch} in parenthesis. |
Beta Was this translation helpful? Give feedback.
-
To write better prompts, it would help to be able to see the values of the variables, especially |
Beta Was this translation helpful? Give feedback.
-
Hey, this is my prompt, been working pretty well!
|
Beta Was this translation helpful? Give feedback.
-
Given the diff below, create a concise commit message following the Conventional Commits format (e.g., fix: correct minor typos in code). The primary change description should be prioritized. Avoid verbosity: {diff} |
Beta Was this translation helpful? Give feedback.
-
Title: Format Task
|
Beta Was this translation helpful? Give feedback.
-
I am wondering what would be the most concise way to ask ChatGPT since each char/space is considered a token. |
Beta Was this translation helpful? Give feedback.
-
I've been using this as we have a convention that git commit titles should be prefixed with the JIRA issue number where possible. I've been using the latest GPT-4-1106-preview which has a significantly lower per-token cost.
|
Beta Was this translation helpful? Give feedback.
-
For Korean Users. Name: Enhanced-Conventional
More token, more accurate below.
|
Beta Was this translation helpful? Give feedback.
-
With emojis. Name: Conventional with emojis
You can put your terminology in the instruction if needed, or just delete this section |
Beta Was this translation helpful? Give feedback.
-
Another more detailed and complex :)
|
Beta Was this translation helpful? Give feedback.
-
Edit: I have refactored a lot in the meantime to get a good result. Here is my new prompt:
You still have to edit or extend the scopes accordingly. |
Beta Was this translation helpful? Give feedback.
-
Title: Layue13's Enhanced Conventional
|
Beta Was this translation helpful? Give feedback.
-
Here's the one I use... Temperature = 1.2 Write a sharp and concise commit message in the conventional form of commits. Do not write more than two sentences. I will provide you with the output of the 'git diff --staged' command, and you must convert it into the commit message. Focus particularly on the use of the GitMoji convention. Use the present tense for the commit message. The lines must not exceed 120 characters. Use {locale} as the language to respond.
Here are **some** examples of emoji usage (there are more in the GitMoji convention):
| Emoji | Emoji Name | Type | Category | Use case |
|-------|-------------------------|-----------|-----------------------------|-------------------------------------------------|
| ✨ | :sparkles: | feat | Creating features | Development of a new feature / New feature |
| 🔖 | :bookmark: | chore | Managing delivery | Release / Version tags. |
| 🚧 | :construction: | feat | Creating features | Work in progress / Code progress |
| 🧱 | :bricks: | feat | | Changes in infrastructure |
| 🏰 | :european_castle: | feat | Managing infrastructure | Adding changes to the launch plan |
| 🔱 | :trident: | feat | Managing infrastructure | Add or remove permissions in infrastructure |
| 🏗️ | :building_construction: | refactor | Creating changes | Making architectural changes |
| 🌱 | :seedling: | feat | | Add seeds |
| 💚 | :green_heart: | chore | Managing integration | Continuous Integration / CI |
| 👷 | :construction_worker: | chore | Managing integration | New continuous integration build |
| ⬇️ | :arrow_down: | refactor | Creating reliability | Downgrade dependencies |
| ⬆️ | :arrow_up: | refactor | Creating reliability | Upgrade dependencies |
| 📌 | :pushpin: | feat | Creating reliability | Pin dependency to a specific version |
| ➕ | :heavy_plus_sign: | refactor | Creating reliability | New dependency(ies) |
| ➖ | :heavy_minus_sign: | refactor | Creating reliability | Remove dependency(ies) |
| 📦️ | :package: | chore | Refining quality | New packages |
| ♻️ | :recycle: | refactor | Refining quality | Code refactoring |
| 🎨 | :art: | style | Refining quality | Improve structure and format of the code |
| 🚚 | :truck: | refactor | Creating changes | Move or rename files |
| 🍱 | :bento: | feat | Creating changes | Add assets |
| 🔥 | :fire: | refactor | Creating changes | Delete code or files |
| 🚨 | :rotating_light: | style | Refining defects | Fix compiler or linter warnings |
| ✏️ | :pencil2: | fix | Refining defects | Fix typos |
| ⚰️ | :coffin: | chore | | Clean code / remove dead code |
| 🐋 | :whale: | chore | Refining platform | Related to docker |
| 🗃 | :card_file_box: | | | Related to databases |
| 🐛 | :bug: | fix | Refining defects | Bug fixes |
| 🚑️ | :ambulance: | fix | Refining stability | Critical Hot-Fix |
| 💥 | :boom: | feat | Creating features | Breaking changes / Critical changes |
| 🩹 | :adhesive_bandage: | | | Non-critical fix |
| 🙈 | :see_no_evil: | feat | Managing infrastructure | gitignore |
| ✋ | :hand: | feat | | Explore alternative implementation |
| 🔇 | :mute: | docs | Refining defects | Remove prints or logs |
| 🔊 | :loud_sound: | docs | Refining defects | Include logs or prints |
| 💬 | :speech_balloon: | feat | Managing value | Update literals, text, and "magic numbers" |
| 📝 | :memo: | docs | Managing delivery | Documentation |
| ✏️ | :pencil: | docs | Managing delivery | Documentation |
| 📄 | :page_facing_up: | chore | Managing delivery | Changes to the build process. |
| 🦺 | :safety_vest: | | | Model and database validations |
| 🩺 | :stethoscope: | | | Add Healthcheck |
| 🧪 | :test_tube: | | | Add tests conditioned to fail |
| ✅ | :white_check_mark: | test | Refining defects | Add tests conditioned to succeed |
| ⚗️ | :alembic: | feat | Creating ideas | Experiments |
| ⚡️ | :zap: | feat | Refining quality | Performance improvement |
| 🚀 | :rocket: | chore | Managing delivery | Deployment |
| 💄 | :lipstick: | feat | Creating changes | Related to UI |
| 🚸 | :children_crossing: | feat | Managing value | Related to UX |
| 🌐 | :globe_with_meridians: | feat | Managing value | Internationalization and localization |
| 📱 | :iphone: | refactor | Creating changes | Responsive design / for mobile devices |
| 👮 | :cop: | chore | Managing integration | Add things related to security |
| 🔒️ | :lock: | fix | Refining stability | Security issues |
| 🔐 | :closed_lock_with_key: | | | Secrets and keys |
| 🌳 | :deciduous_tree: | | | .env files / environment variables |
| 🔧 | :wrench: | feat | Creating reliability | Modify configuration files |
| 💩 | :poop: | refactor | Creating ideas | Poorly written code / FIXME |
| 🍻 | :beers: | feat | Creating ideas | Writing code while intoxicated |
| 🥚 | :egg: | refactor | Creating changes | Add an Easter Egg |
**NEVER use emojis as text; e.g., ":sparkles:", but ALWAYS use their graphic version; e.g., "✨"**
Here is the structure I expect:
`[EMOJI] [TYPE]([MODIFIED FILE OR TOPIC]): [CONCISE AND SHARP DESCRIPTION OF THE CHANGES WRITTEN IN "{locale}" AS LANGUAGE]`
Here are some examples of what I expect (in {locale}) as commit messages:
1. ✨ feat(`workers`): Update environment variables.
2. ⚡️ feat(`components/Hash`): Performance improvement in hashes.
3. 🐋 chore(`Dockerfile`): Dockerize the project.
4. 🌱 feat(`seeds/users.js`): Add seeders for the User entity.
5. ♻️ refactor(`App/index.js`): Change `CamelCase` variables to `snake_case`.
6. 🚨 style(`App`): Correct eslint errors.
7. 🚧 feat(`models/index.js`): Progress in the development of models.
8. 👮 chore(`auth0`): Connect the project with auth0 for login.
9. 🚚 refactor(`config.js`): Move the `config.js` file to `config/index.js`.
10. 🌳 env(`template.env`): Make a `.env` file as a guide without secrets.
Below is the output of 'git diff --staged':
---
{diff}
Added as many emojis as possible for variaty, but at the same time it limits the output to specific use cases. |
Beta Was this translation helpful? Give feedback.
-
@ljgonzalez1 What LLM Model do you use ?
Because if it's OpenAI
|
Beta Was this translation helpful? Give feedback.
-
I had a crack at creating a prompt in the style of https://grugbrain.dev/. Title: The Grug Brained Developer
Sample: feat(CCP-13582): add getBranchDemoSites function to fetch demo sites for branch Works well on OpenAI GPT-4o. |
Beta Was this translation helpful? Give feedback.
-
Share your custom prompts that you use to generate your commit messages.
Title: Donald Trump
Description: Prompt that generates commit messages in Donald Trump style.
Content:
Beta Was this translation helpful? Give feedback.
All reactions