Coder Social home page Coder Social logo

pretty-nice-semantic-commit-messages's Introduction

The Pretty Nice Semantic Commit Messages Style Guide

Inspired by https://seesparkbox.com/foundry/semantic_commit_messages here's a style guide for your git log. A good software project has style, so why not extend this to git logs as well?

In this style guide the commit message always starts with a type that is four characters long followed by a colon and a space. Then an action verb is inserted followed by the rest of the message. Togeather the verb + rest constitutes the summary. Max length for the summary is 60 characters. This ensures that the commit message will look nice on github as well. Further explanations and info about the commit can be entered on new lines.

Structure of the message

feat: add email send functionality for admin 
^--^  ^------------^
|     |
|     +-> Summary in present tense (verb + rest) - max length 60 chars.
|
+-------> Type: docs, feat, bfix, rfac, dvop, deps, test, deps, styl, misc

Examples usage

docs: explain how to setup dev env (explain|update|add|remove|rewrite|fix project documentation)
feat: add email send functionality for admin (add a feature to the program)
bfix: fix nullpointer exception in FooService (fix|workaround|resolve|improve a bug or issue with the program)
rfac: rewrite email sending to non-blocking (share|rewrite|improve some code, wow it's a lot smoother now)
dvop: add travis & beanstalk ci/cd pipeline (add|update something to do with your ci/cd pipeline)
deps: update to play 2.5.18 (update|add a project dependancy/libarary)
test: add it-tests for login flow (ensure|add|rewrite| a test or improve the test infrastructure)
styl: convert tabs to spaces (you added/updated some styling related stuff)
misc: other random stuff here that doesn't fit anywhere else

That's all folks

Include a link to these guidelines in your project and then enforce the style guide rules. You're git log will be cool and clean!

pretty-nice-semantic-commit-messages's People

Contributors

lapidus79 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.