Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SamErde/71b931d473cc5a0a74b157a5ca823a27 to your computer and use it in GitHub Desktop.
Save SamErde/71b931d473cc5a0a74b157a5ca823a27 to your computer and use it in GitHub Desktop.
Copilot commit messages instructions for vscode

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."
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment