Skip to content

Instantly share code, notes, and snippets.

@godrix
Last active May 27, 2021 16:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godrix/35354828050d9aed23508736296bf2e2 to your computer and use it in GitHub Desktop.
Save godrix/35354828050d9aed23508736296bf2e2 to your computer and use it in GitHub Desktop.
Padrão e boas praticas para mensagens de commit

Styleguide para mensagens de commit

  • Escreva na forma imperativa. ("Adicionado feature X" ou "Corrigido bug Y")
  • Separar o assunto do corpo de texto com uma linha
  • Capitalizar a linha de assunto
  • Não termine a linha de assunto com ponto final
  • Primeira linha deve ter no maximo 72 caracteres
  • Considere usar um emoji no inicio da mensagem de commit
  • Envolver o path da alteração no commit tambem é uma boa ideia
  • Use o corpo para explicar o commit
Emoji Code Prefix Commit Type
🌈 :rainbow: -- Commit Inicial
🚀 :rocket: feat Nova feature
🪲 :beetle: fix Correção de bug
📖 :book: docs Relativo a documentação
📜 :scroll: cli Relativo a CLI
🐎 :racehorse: perf Relatiovo a performace
♻️ :recycle: refactor Refatorando Codigo
🎨 :art: style Estrutura/formato do código
🔬 :microscope: test Relativo a teste
🔨 :hammer: chore Processo de construção
🎁 :gift: release Nova versão
🔒 :lock: security Relativo Segurança
💩 :poop: deprecated Descontinuado
⬆️ :arrow_up: upgrade Upgrade em uma dependência
⬇️ :arrow_down: downgrade Downgrade em dependência

Exemplo

git commit  "[feat](containers/profile): Added ThumbnailImage"

> getThumbnailImage used to receive XPTO type arguments.
> You now get the correct argument of type FOO.

> Solve problem # 132
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment