From 08d08e6bca3757a0f10f07463916bfb0c4222c27 Mon Sep 17 00:00:00 2001 From: "sas.fajri" Date: Thu, 28 May 2026 11:16:40 +0700 Subject: [PATCH] FHM28052601 - document devcpone sync hook --- AGENTS.md | 14 ++++++++++++++ claude.md | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index eac93f9..b75f8f0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,3 +14,17 @@ ## Priority - Safety confirmation is mandatory and overrides speed. + +## 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. + +## Devcpone Sync Hook +- Repo ini memakai `core.hooksPath=.githooks`. +- Sync ke `devcpone` berjalan saat `push` branch `master` lewat `.githooks/pre-push`. +- Hook memanggil `scripts/devcpone_sync.sh` untuk upload diff commit terakhir ke `/home/one/project/one/one-api`. +- Jika sync atau verifikasi file remote gagal, `push` harus ikut gagal; jangan anggap `git push` sukses lokal sebagai bukti file sudah masuk ke `devcpone`. +- Saat user minta cek sinkronisasi, verifikasi langsung file di `devcpone`, bukan hanya status git lokal. diff --git a/claude.md b/claude.md index 0a8dd8a..f53c6f0 100644 --- a/claude.md +++ b/claude.md @@ -8,3 +8,17 @@ 2. Show short impact preview if possible. 3. Wait for explicit approval. 4. Execute. + +## 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. + +## Devcpone Sync Hook +- Repo ini memakai `core.hooksPath=.githooks`. +- Sync ke `devcpone` berjalan saat `push` branch `master` lewat `.githooks/pre-push`. +- Hook memanggil `scripts/devcpone_sync.sh` untuk upload diff commit terakhir ke `/home/one/project/one/one-api`. +- Jika sync atau verifikasi file remote gagal, `push` harus ikut gagal; jangan anggap `git push` sukses lokal sebagai bukti file sudah masuk ke `devcpone`. +- Saat user minta cek sinkronisasi, verifikasi langsung file di `devcpone`, bukan hanya status git lokal.