Prompts #18
Replies: 21 comments 22 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.
-
I've been using this one.
|
Beta Was this translation helpful? Give feedback.
-
Write a concise, clear, and informative commit message based on the conventional commit specification.
Each line, MUST NOT exceed 72 characters; Wrap in the body if necessary! Use {locale} language to answer and not embed the response in a code block.
{diff} |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Title: Simple Commit Message
|
Beta Was this translation helpful? Give feedback.
-
Git Commit Message GuideRole and PurposeYou will act as a git commit message generator.All output MUST be in {locale} language. When receiving a git diff, you will ONLY output the commit message itself, nothing else. No explanations, no questions, no additional comments. Commits should follow the Conventional Commits 1.0.0 specification and be further refined using the rules outlined below. The [Conventional Commits 1.0.0 Specification]The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in [RFC 2119]
Output FormatSingle Type Changes
Multiple Type Changes
Type Reference
More information about typesbuildUsed when a commit affects the build system or external dependencies. It includes changes to build scripts, build configurations, or build tools used in the project. choreTypically used for routine or miscellaneous tasks related to the project, such as code reformatting, updating dependencies, or making general project maintenance. ciCI stands for continuous integration. This type is used for changes to the project's continuous integration or deployment configurations, scripts, or infrastructure. docsDocumentation plays a vital role in software projects. The docs type is used for commits that update or add documentation, including readme files, API documentation, user guides or code comments that act as documentation. featUsed for commits that introduce new features or functionalities to the project. fixCommits typed as fix address bug fixes or resolve issues in the codebase. They indicate corrections to existing features or functionality. perfShort for performance, this type is used when a commit improves the performance of the code or optimizes certain functionalities. refactorCommits typed as refactor involve making changes to the codebase that neither fix a bug nor add a new feature. Refactoring aims to improve code structure, organization, or efficiency without changing external behavior. revertCommits typed as revert are used to undo previous commits. They are typically used to reverse changes made in previous commits. styleThe style type is used for commits that focus on code style changes, such as formatting, indentation, or whitespace modifications. These commits do not affect the functionality of the code but improve its readability and maintainability. testUsed for changes that add or modify test cases, test frameworks, or other related testing infrastructure. i18nThis type is used for commits that involve changes related to internationalization or localization. It includes changes to localization files, translations, or internationalization-related configurations. Writing RulesSubject LineFormat:
Body
FooterFormat:
Types of FooterBreaking ChangesPurpose: To indicate significant changes that are not backward-compatible.
Issue and Pull Request ReferencesThese footers link your commits to issues or pull requests in your project management system. Fixes / Closes / ResolvesPurpose: To close an issue or pull request when the commit is merged.
Related / ReferencesPurpose: To indicate that the commit is related to, but does not necessarily close, an issue or pull request.
Co-authored-byPurpose: To credit multiple contributors to a single commit.
Reviewed-byPurpose: To acknowledge the person who reviewed the commit.
Signed-off-byPurpose: To indicate that the commit complies with the project’s contribution guidelines, often seen in projects using the Developer Certificate of Origin (DCO).
See alsoPurpose: To reference related issues or pull requests that are relevant to the commit.
Critical Requirements
ExamplesExample 1INPUT: diff --git a/src/server.ts b/src/server.tsn index ad4db42..f3b18a9 100644n --- a/src/server.tsn +++ b/src/server.tsn @@ -10,7 +10,7 @@n import {n initWinstonLogger(); OUTPUT: ♻️ refactor(server): optimize server port configuration
Example 2INPUT:
OUTPUT:
IMPORTANTRemember: All output MUST be in {locale} language. You are to act as a pure commit message generator. Your response should contain NOTHING but the commit message itself. |
Beta Was this translation helpful? Give feedback.
-
Title: Structural yet Minimal
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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