From 1783995c4383588e0019a2f8dbab6857547dd534 Mon Sep 17 00:00:00 2001 From: MinhTri Date: Fri, 28 Jun 2024 16:25:06 +0700 Subject: [PATCH] Add commit rule --- .github/commit_message.txt | 30 ++++++++++++++++++++++++++++++ .gitignore | 1 + README.md | 7 ++++++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/commit_message.txt diff --git a/.github/commit_message.txt b/.github/commit_message.txt new file mode 100644 index 0000000..1a6a09d --- /dev/null +++ b/.github/commit_message.txt @@ -0,0 +1,30 @@ +# ==== Commit Messages ==== + +# ==== Commit Messages(Template) ==== +# : +# fix: Fixed a bug in the code +# hotfix: Fixed a critical bug in the code +# feat: Added new feature +# docs: Added documentation +# style: Updated code style +# refactor(clean,improve): Cleaned up code, improved code quality +# test: Added tests +# chore: Updated build tasks, package manager configs, etc +# +# ==== Emojis ==== +# 🐛 :bug: Bug fix +# 👍 :+1: Functionality improvement +# ✨ :sparkles: Partial feature addition +# 🎨 :art: Design change only +# 💢 :anger: Conflict +# 🚧 :construction: WIP +# 📝 :memo: Wording correction +# ♻️ :recycle: Refactoring +# 🔥 :fire: Removal of unnecessary and unused features +# 💚 :green_heart: Test and CI corrections and improvements +# 👕 :shirt: Lint error corrections and code style corrections +# 🚀 :rocket: Performance improvement +# 🆙 :up: Update of dependent packages, etc. +# 👮 :cop: Security-related improvements +# ⚙ :gear: Config change +# 📚 :books: Documentation \ No newline at end of file diff --git a/.gitignore b/.gitignore index 297959a..2e9c4f6 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ public_html/hot storage/*.key .env +.idea/ Homestead.yaml Homestead.json /.vagrant diff --git a/README.md b/README.md index acc7ca1..b32e4db 100644 --- a/README.md +++ b/README.md @@ -1 +1,6 @@ -# blog-api-package \ No newline at end of file +# blog-api-package + +## commit template +```bash +git config --local commit.template .github/commit_message.txt +``` \ No newline at end of file