{"id":304,"date":"2024-01-14T21:05:42","date_gmt":"2024-01-14T21:05:42","guid":{"rendered":"https:\/\/kurtgrung.com\/blog\/?p=304"},"modified":"2024-01-14T21:10:13","modified_gmt":"2024-01-14T21:10:13","slug":"commit","status":"publish","type":"post","link":"https:\/\/kurtgrung.com\/blog\/commit\/","title":{"rendered":"commit"},"content":{"rendered":"\n<p><strong>GitHub commit messages,&nbsp;<\/strong><\/p>\n\n\n\n<p>It&#8217;s common practice to use conventional commit messages to convey the nature of the changes.<strong>&nbsp;<\/strong><\/p>\n\n\n\n<p>The general format is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;type&gt;: &lt;description&gt;&nbsp;<\/code><\/pre>\n\n\n\n<p><br><\/p>\n\n\n\n<p>Here are some common conventional commit types and their abbreviations,<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>feat<\/strong>: A new feature for the user or a particular improvement to existing features.<\/li>\n\n\n\n<li><strong>fix<\/strong>: A bug fix.<\/li>\n\n\n\n<li><strong>chore<\/strong>: Routine tasks, maintenance, and other miscellaneous tasks.<\/li>\n\n\n\n<li><strong>docs<\/strong>: Documentation changes.<\/li>\n\n\n\n<li><strong>style<\/strong>: Code style changes (e.g., formatting).<\/li>\n\n\n\n<li><strong>refactor<\/strong>: Code refactoring, without any functional changes.<\/li>\n\n\n\n<li><strong>test<\/strong>: Adding or modifying tests.<\/li>\n\n\n\n<li><strong>perf<\/strong>: Performance improvements.<\/li>\n\n\n\n<li><strong>build<\/strong>: Changes that affect the build system or external dependencies.<br><br><\/li>\n<\/ul>\n\n\n\n<p><strong>For example<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>feat: Add user authentication\nfix: Resolve issue with login button\nchore: Update dependencies\ndocs: Update README\nstyle: Format code according to style guide\nrefactor: Simplify logic in the user service\ntest: Add unit tests for the login endpoint\nperf: Optimise database queries\nbuild: Update build configuration<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Using these conventional commit messages can make it easier to understand the history of your project and automate processes like generating a change log.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub commit messages,&nbsp; It&#8217;s common practice to use conventional commit messages to convey the nature of the changes.&nbsp; The general format is: Here are some common conventional commit types and their abbreviations, For example Using these conventional commit messages can make it easier to understand the history of your project and automate processes like generating [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[114,8],"tags":[73,112,111,110,113],"class_list":["post-304","post","type-post","status-publish","format-standard","hentry","category-best-practice","category-code","tag-best-practices","tag-commit","tag-github","tag-github-commit-messages","tag-messages"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/kurtgrung.com\/blog\/wp-json\/wp\/v2\/posts\/304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kurtgrung.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kurtgrung.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kurtgrung.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kurtgrung.com\/blog\/wp-json\/wp\/v2\/comments?post=304"}],"version-history":[{"count":6,"href":"https:\/\/kurtgrung.com\/blog\/wp-json\/wp\/v2\/posts\/304\/revisions"}],"predecessor-version":[{"id":311,"href":"https:\/\/kurtgrung.com\/blog\/wp-json\/wp\/v2\/posts\/304\/revisions\/311"}],"wp:attachment":[{"href":"https:\/\/kurtgrung.com\/blog\/wp-json\/wp\/v2\/media?parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kurtgrung.com\/blog\/wp-json\/wp\/v2\/categories?post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kurtgrung.com\/blog\/wp-json\/wp\/v2\/tags?post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}