From 69c2306a3b380e9a1462209086dc20ca704b6756 Mon Sep 17 00:00:00 2001 From: "sas.fajri" Date: Thu, 28 May 2026 11:17:27 +0700 Subject: [PATCH] FHM28052601 - tambah dokumentasi auto sync devcpone di AGENTS.md dan CLAUDE.md Co-Authored-By: Claude Sonnet 4.6 --- AGENTS.md | 12 +++++++++++- CLAUDE.md | 12 ++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 CLAUDE.md 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.