From 66ea1b172ec002467a180aa7a8c4a5b573e9b1a1 Mon Sep 17 00:00:00 2001 From: Pokpong Limpaphan <235639172+pokpong-dev@users.noreply.github.com> Date: Sat, 14 Feb 2026 22:21:48 +0700 Subject: [PATCH 1/2] Update README with branch management instructions Added guidelines for branch management and collaboration. --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index a8f554c..1c9288c 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,31 @@ #### `com.pomodoro.model.Category.java` * ตอนนี้มีแค่ field พื้นฐาน (`id`, `name`, `colorCode`) + * ถ้า Database มีตาราง `categories` แยกต่างหากก็ต้องมาเพิ่ม Logic ตรงนี้ด้วย --- +### 1. **Branch หลัก ** +* `main`: **ห้ามใครแก้ตรงๆ** ต้อง Merge เข้ามาเท่านั้น + +### 2. **Branch ของแต่ละคน (Feature Branches)** +ให้ทุกคนแตก Branch จาก `main` ไปทำงานของตัวเอง: + +* **คนที่ 1 (Database)**: สร้าง branch ชื่อ `feature/database` + * ทำงานเกี่ยวกับ SQL +* **คนที่ 2 (PDF)**: สร้าง branch ชื่อ `feature/pdf-export` + * ทำงานเกี่ยวกับ PDF +* **คนที่ 3 (Repeating)**: สร้าง branch ชื่อ `feature/repeating-task` + * สร้างไฟล์ RepeatingTask.java +* **คนที่ 4 (Deadline)**: สร้าง branch ชื่อ `feature/deadline-task` + * สร้างไฟล์ DeadlineTask.java, Timer Logic บลาๆ + +### 3. **วิธีทำงาน** +1. **Clone** โปรเจกต์ลงเครื่อง ใช้ git หรือกดโหลดเอาก็ได้ +2. **Checkout** ไปที่ Branch ตัวเอง: `git checkout -b feature/ชื่อฟีเจอร์` +3. **เขียนโค้ด** จนเสร็จ +4. **Commit & Push** ขึ้น GitHub +5. **Pull Request (PR)** กลับมาที่ `main` ช่วยกันหา error + From 5f812cdb83ce2fe2659c2990096de4195380458b Mon Sep 17 00:00:00 2001 From: Pokpong Limpaphan <235639172+pokpong-dev@users.noreply.github.com> Date: Sat, 14 Feb 2026 22:26:43 +0700 Subject: [PATCH 2/2] Add CODEOWNERS file for repository ownership --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..83fd8b3 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @pokpong-dev