Learn to write informative comments on GIT commits using common semantics





( git), , . .. - , ยซยป .





, , , , , . , (commit message) ( ).





, , (conventional commits - , ) .





git , . :





commit e71fcf2022b6135e18777bdc58c2ac3180202ec7
Author: mvalentino
Date: Tue Apr 24 01:25:48 2015 +1000
    

commit d1952883b05b685f2d22e4c41b4fbc4362fd6bd0
Author: mvalentino
Date: Mon Apr 23 22:16:50 2015 +1000
[WIP]  

commit 74b8920d96e3e09d5cd958ffa369a0e3c86a6851
Author: mvalentino
Date: Mon Apr 23 21:09:11 2015 +1000
   


commit b02255b25eed57c7595504c66233d5ee3024190c
Author: mvalentino
Date: Mon Apr 23 18:32:40 2015 +1000
[WIP]    
      
      







. git commit -m <commit message>



. , , . . , , , , , .





, . ยซ ยป. 7 , git- ( , ):









  1. 50

















  2. 72





  3. ,









- , , , , . , , - , . , , , , ยซยป.





, , [conventional commits] ( - https://www.conventionalcommits.org/ru/v1.0.0-beta.2/), . , , .





16 , , . , , .





,





<type>(< >): < >
< >
[ ]
< >
[  ]
      
      



:





feat:   
^ โ€” ^ ^ โ€” โ€” โ€” โ€” โ€” โ€” ^
| |
| +->    .
|
+ - - - -> Type: chore, docs, feat, fix, refactor, style  test.
      
      







<type>



:





  • feat:



    ( , , , )





  • fix:



    ( , )





  • docs:



    ( )





  • style:



    (, . .; )





  • refactor:



    ( , , )





  • test:



    ( , ; )





  • chore:



    ( . .; ).





, . ( ), . , git, , , diff.





, .





  • .





  • ( ).





  • , .





  • .





  • , .





Jira, Github. , Jira , Jira , Jira. , Jira <optional scope>



. , , Jira,





<type>(< jira>):







,





refactor(FOW-1327):   
    `userRepo`    api  `/api/v1/users/me`               api,    
      
      



Jira .





Git commits as reflected in Jira.
Git-, Jira.





, , - Kaizen, ( fix



feat



) .





, git-, , . , git-, , , , .





  • conventionalcommits





  • Git-,





  • ,






- " Git", .













All Articles