34 lines
1.7 KiB
Markdown
34 lines
1.7 KiB
Markdown
Ini adalah BE untuk IBL
|
|
|
|
## Auto sync ke devone
|
|
|
|
Jalankan `./scripts/install_devone_sync_hooks.sh` sekali untuk mengaktifkan hook Git lokal.
|
|
Setelah itu, commit atau merge ke `main` akan otomatis sync file yang berubah ke `devone.aplikasi.web.id:/home/one/project/one/one-api-lab/` memakai `scripts/sync_devone_changed_files.sh`.
|
|
Sync ini hanya mengirim file baru atau file yang berubah.
|
|
Perubahan rename, move, atau delete sengaja di-skip supaya file dan folder di devone tidak ikut terhapus atau berpindah.
|
|
|
|
## Code Review Graph
|
|
|
|
Repo ini sudah disetup untuk `code-review-graph` agar eksplorasi struktur kode dan review perubahan lebih hemat context dibanding baca repo secara buta.
|
|
|
|
Status setup:
|
|
- CLI global sudah terpasang di laptop: `code-review-graph`
|
|
- MCP Codex sudah diregister lewat `~/.codex/config.toml`
|
|
- Graph repo disimpan di `.code-review-graph/graph.db`
|
|
|
|
Perintah yang biasa dipakai:
|
|
- Build awal graph: `code-review-graph build`
|
|
- Update incremental setelah ada perubahan kode: `code-review-graph update`
|
|
- Lihat statistik graph: `code-review-graph status`
|
|
- Watch mode: `./scripts/code_review_graph_watch.sh`
|
|
|
|
Otomasi Git:
|
|
- Saat `commit`, `merge`, atau `rewrite` di branch `main`, hook lokal akan menjalankan `code-review-graph update`
|
|
- Setelah itu hook tetap lanjut ke auto sync devone yang sudah ada
|
|
- Kalau update graph gagal, proses Git tidak dibatalkan; hook hanya log lalu lanjut
|
|
|
|
Catatan penggunaan:
|
|
- `code-review-graph` paling berguna untuk mencari area modul, file, class, dan function yang spesifik
|
|
- Tetap verifikasi ke file asli saat debug atau revisi logika detail
|
|
- Untuk repo ini, `code-review-graph` terasa lebih stabil daripada `graphify` saat menelusuri modul seperti `ibl_registration`
|