Branch Strategy & Github Working Process - Mrsmithz/Project-SW-Dev-and-Env GitHub Wiki

Github Working Process

  1. สมาชิกในกลุ่มทำการ clone หรือ pull จาก Remote Repository มายัง Local Repository
  2. สมาชิกทำงานและแก้ไขภายใน Local Repository ของตัวเอง
  3. ทำการแตก branch feature ตามที่ได้รับมอบหมาย
  4. ทำการ push branch ที่แตกเข้า Remote Repository
  5. เปิด pull request เพื่อ merge branch feature ที่แตกมากลับเข้า branch dev
  6. ทำการรีวิว 2 คนขึ้นไปแล้วจึง merge

Branch Strategy

  1. main : branch หลัก
  2. dev: branch สำหรับทำการ develop และ test
  3. feature: branch สำหรับแต่ละ feature
  4. component: branch สำหรับสร้าง component

การตั้งชื่อ Branch

นำชื่อที่ feature มาตั้งเป็นชื่อ เช่น "createpost"

ข้อกำหนดการเปิด Pull request

:heavy_check_mark:  feature > dev / dev > main :heavy_check_mark:  reviewer 1 คน :heavy_check_mark:  ระบุหัวข้อ title ให้เข้าใจง่าย :heavy_check_mark:  รับผิดชอบ feature ละคน หรือถ้าต้องการเปลี่ยนผู้รับผิดชอบต้องปรึกษาเพื่อนร่วมทีมด้วย :heavy_check_mark:  ผู้ที่จะเปิด pull request ของ branch ไหน ต้องเป็นผู้รับผิดชอบเกี่ยวกับ branch ด้วย :x:  ห้าม feature > main :x:  ห้ามปิด pull request โดยไม่บอกให้ผู้อื่นทราบ :x:  ห้าม merge ถ้า reviewer ยังไม่ได้ review