Skip to content

Instantly share code, notes, and snippets.

@okineadev
Last active April 28, 2025 10:37
Show Gist options
  • Save okineadev/8a3f392a93ae50e8d523e4ba7f9f9ac3 to your computer and use it in GitHub Desktop.
Save okineadev/8a3f392a93ae50e8d523e4ba7f9f9ac3 to your computer and use it in GitHub Desktop.
🤖 Copilot commit messages instructions for VS Code

Paste it to settings.json:

"github.copilot.chat.commitMessageGeneration.instructions": [
  {
    "text": "Follow the Conventional Commits format strictly for commit messages. Use the structure below:\n\n```\n<type>[optional scope]: <gitmoji> <description>\n\n[optional body]\n```\n\nGuidelines:\n\n1. **Type and Scope**: Choose an appropriate type (e.g., `feat`, `fix`) and optional scope to describe the affected module or feature.\n\n2. **Gitmoji**: Include a relevant `gitmoji` that best represents the nature of the change.\n\n3. **Description**: Write a concise, informative description in the header; use backticks if referencing code or specific terms.\n\n4. **Body**: For additional details, use a well-structured body section:\n   - Use bullet points (`*`) for clarity.\n   - Clearly describe the motivation, context, or technical details behind the change, if applicable.\n\nCommit messages should be clear, informative, and professional, aiding readability and project tracking."
  }
]
@mathisgauthey
Copy link

Thanks pal, just what I was looking for!

@okineadev
Copy link
Author

Who even puts stars here?

@HeyItsGilbert
Copy link

HeyItsGilbert commented Mar 17, 2025

Me! My teammate and I have used it and it's been great!

@SamErde
Copy link

SamErde commented Mar 19, 2025

Thanks for sharing, this is great!

@JamesIves
Copy link

Super useful, thank you!

@lucasolvv
Copy link

That's really good, thanks bro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment