diff --git a/AGENTS.md b/AGENTS.md index 6ba8762..d34c45c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -16,5 +16,15 @@ ## Git Flow (Saat Diminta Commit/Push) - Inspeksi minimal: jalankan `git status` dan `git diff --stat` dulu. -- Buat commit message singkat dan jelas. +- **Sebelum membuat commit, selalu tanya kode task kepada user.** +- Format commit message wajib: `TASKCODE - deskripsi singkat` + - Contoh: `6D9QD6 - buat api baru` +- Jangan buat commit tanpa kode task dari user. +- Kode task digunakan untuk sinkronisasi timesheet Odoo. - Lalu `git push` tanpa kerja tambahan yang tidak diperlukan. + +## Auto Sync ke Devcpone +- Repo ini punya **post-commit hook** di `.githooks/post-commit` yang otomatis menjalankan `scripts/devcpone_sync.sh`. +- Setiap `git commit` di branch `master` akan langsung rsync file yang berubah ke `devcpone.aplikasi.web.id:/home/one/project/one/one-ui/`. +- Hook sudah aktif (`core.hooksPath = .githooks`), tidak perlu jalankan script deploy manual. +- Jangan bilang tidak ada hook/sync sebelum mengecek `.githooks/` dan `scripts/` terlebih dahulu. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..a45abe8 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,12 @@ +# Commit Message Format +- Sebelum membuat commit, **selalu tanya kode task** kepada user. +- Format commit message wajib: `TASKCODE - deskripsi singkat` + - Contoh: `6D9QD6 - buat api baru` +- Jangan buat commit tanpa kode task dari user. +- Kode task digunakan untuk sinkronisasi timesheet Odoo. + +# Auto Sync ke Devcpone +- Repo ini punya **post-commit hook** di `.githooks/post-commit` yang otomatis menjalankan `scripts/devcpone_sync.sh`. +- Setiap `git commit` di branch `master` akan langsung rsync file yang berubah ke `devcpone.aplikasi.web.id:/home/one/project/one/one-ui/`. +- Hook sudah aktif (`core.hooksPath = .githooks`), tidak perlu jalankan script deploy manual. +- Jangan bilang tidak ada hook/sync sebelum mengecek `.githooks/` dan `scripts/` terlebih dahulu.