ข้อกำหนด
- จะต้องใช้ภาษาอังกฤษทั้งหมด
- ห้ามรวบทุกอย่างที่ทำอยู่ใน commit เดียว
- ควร commit สิ่งที่ทำภายในวันนั้นๆ
- Reference
รูปแบบ Format
- ตัวอย่าง (จะต้องใช้ภาษาอังกฤษทั้งหมด)
feat: create login pagefeat(login): form validationfix: loading indicator not disappearfix(profile): incorrect data displayrefactor(utils): make variables in numeric-formatter to be more descriptiveperf: simplify/adjust the process flowdocs: update README.mdbuild: add antd package depschore: update package.json scriptops: add Dockerfileci: setup github action config
ประเภท Type
fix: เป็นการ Commit ที่แก้ไข bugs/issuesfeat: เป็นการ Commit ที่เป็นการ เพิ่ม/ลด feature หรือ เปลี่ยนแปลงผลลัพธ์refactor: เป็นการ Commit ที่ แก้ไข code ให้ดีขึ้น โดย ไม่ เปลี่ยนแปลงผลลัพธ์perf: เป็นการ Commit ที่เป็นส่วนหนึ่งของrefactorแต่เจาะจงไปในส่วนที่เกี่ยวกับ performancestyle: เป็นการ Commit ที่เกี่ยวกับการจัดโค้ด เช่น การเว้นวรรค, ใส่ semi-colons, หรือ อื่นๆ
test: เป็นการ Commit ที่เกี่ยวกับการ เพิ่ม/แก้ไข/ลบ test scriptdocs: เป็นการ Commit ที่เกี่ยวกับการเขียน documentation เท่านั้นbuild: เป็นการ Commit ที่เกี่ยวกับ build tool, ci pipeline, dependencies, หรือ project versionops: เป็นการ Commit ที่เกี่ยวกับ deployment, backup, หรือ recoveryci: เป็นการ Commit ที่เกี่ยวกับ CI config
chore: เป็นการ Commit ในเรื่องทั่วไป ที่ส่งผลเฉพาะภายใน project เช่นการแก้.gitignore
ขอบเขต Scope
- ระบุขอบเขตของ commit ว่าเป็นส่วนไหน
รายละเอียด Subject
- ระบุสิ่งที่ทำใน commit นั้นๆ โดยสรุป ไม่สั้นจนเกินไป