https://github.com/hisasann/git-staging-flow
https://github.com/hisasann/git-staging-flow
git github
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hisasann/git-staging-flow
- Owner: hisasann
- Created: 2020-05-26T01:36:25.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2023-12-15T14:33:42.000Z (over 2 years ago)
- Last Synced: 2025-04-04T11:01:59.422Z (about 1 year ago)
- Topics: git, github
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ฅญ git-staging-flow
## ใใใญใคๅ
ใฎๅๆ
`ใกใคใณใจใชใใใฉใณใใใก` ใฏใใใใไธใคใใคใใใญใคใใๅ
๏ผใใจใใฐใตใผใใผ๏ผใใใใจใใพใ
## ๐ ใกใคใณใจใชใใใฉใณใใใก
### develop ใใฉใณใ
้็บ็จ
็ถๆณใซใใฃใฆใฏ่คๆฐๅไฝใใใๅ ดๅใใใ
### staging ใใฉใณใ
QA ใใใๅฎขใใ็ขบ่ชใชใฉใ้็บ่
ไปฅๅคใฎๆน็จ
็ถๆณใซใใฃใฆใฏ่คๆฐๅไฝใใใๅ ดๅใใใ
### production ใใฉใณใ
ๆฌ็ช็จ
ๅบๆฌ็ใซไธใคใใใชใ
## ๐ ไฝใฃใฆใฏๅ้คใใใใใฉใณใใใก
### feature/* ใใฉใณใ
ๆฐๆฉ่ฝใฎๅฎ่ฃ
ใง `develop` ใใฉใณใใใไฝๆใใใพใ
### fix/* ใใฉใณใ
QA ใงใใฐใใใฃใๅ ดๅใง `develop` ใใฉใณใใใไฝๆใใใพใ
### hotfix/* ใใฉใณใ
ๆฌ็ชใงใใฐใใใฃใๅ ดๅใซ `production` ใใฉใณใใใไฝๆใใใพใ
## ๐ฅ ้็บใใใใจใใฎใใญใผ
develop ใใฉใณใ -> feature ใใฉใณใ -> develop ใใฉใณใ
1. `develop` ใใฉใณใใใ `feature/first` ใใฉใณใใไฝๆใใ
1. `feature/first` ใงไฝๆฅญใใ **commit** ใใ
1. ไฝๆฅญใๅฎไบใใใใญใผใซใซใฎ `feature/first` ใใฉใณใใใใชใขใผใใซ **push** ใใ
1. github.com ใฎใชใใธใใชใใผใธใซ่กใใใซใชใฏใจในใใไฝๆใใ
* into `develop` from `feature/first`
1. ใใซใชใฏใจในใใฎใฌใใฅใผใ **Reviewers** ใใๅใใ
1. **Reviewers** ใ **approved** ใใ
1. ใใซใชใฏใจในใใใใผใธใใ
1. ใใใง `develop` ใใฉใณใใ **ใใใญใค** ใใใใคใกใผใธ
1. `feature/first` ใใฉใณใใ delete ใใ
```
* d87f0c9 (origin/develop) Merge pull request #1 from hisasann/feature/first
|\
| * 361dd3f (origin/feature/first, feature/first) first commit to feature/first
|/
* a34f262 (origin/staging, origin/production, staging, production) first commit
```
## ๐ฅง QA ใใๅฎขใใ็ขบ่ชใฎใใใฎใใญใผ
develop ใใฉใณใ -> staging ใใฉใณใ
1. github ไธใง **New pull request** ใใฏใชใใฏใใ
1. base: `staging` ใใฉใณใ <- `develop` ใใฉใณใใ้ธๆใใ
1. ใฟใคใใซใใณใกใณใใๆธใ
1. **Create pull request** ใใฏใชใใฏใใ
* into `staging` from `develop`
1. **Merge pull request** ใใฏใชใใฏใใ
1. **Confirm merge** ใใฏใชใใฏใใ
1. ใใใง `staging` ใใฉใณใใ **ใใใญใค** ใใใใคใกใผใธ
1. [Branches](https://github.com/hisasann/git-staging-flow/settings/branches) ใง `develop`, `staging` ใใฉใณใใไฟ่ญทใใฆใใใฎใงใใฉใณใใฎๅ้คใฏใงใใพใใ
## ๐ ๆฌ็ชใธใฎใใใญใคใใญใผ
staging ใใฉใณใ -> production ใใฉใณใ
1. github ไธใง **New pull request** ใใฏใชใใฏใใ
1. base: `production` ใใฉใณใ <- `staging` ใใฉใณใใ้ธๆใใ
1. ใฟใคใใซใใณใกใณใใๆธใ
1. **Create pull request** ใใฏใชใใฏใใ
* into `production` from `staging`
1. **Merge pull request** ใใฏใชใใฏใใ
1. **Confirm merge** ใใฏใชใใฏใใ
1. [Branches](https://github.com/hisasann/git-staging-flow/settings/branches) ใง `develop`, `staging` ใใฉใณใใไฟ่ญทใใฆใใใฎใงใใฉใณใใฎๅ้คใฏใงใใพใใ
1. ใใใง `production` ใใฉใณใใ **ใใใญใค** ใใใใคใกใผใธ
1. ใชใชใผในใใใใใผใธใงใณใ github ไธใงใชใชใผในไฝๆฅญใ่กใ
* [Release ไธ็ชๆๅใฎใชใชใผใน ยท hisasann/git-staging-flow](https://github.com/hisasann/git-staging-flow/releases/tag/v0.0.1)
## ๐ซ QA ใงใใฐใ็บ็ใใใฎใง็ดใ
QA ใฏ `staging` ใใฉใณใใง่กใฃใฆใใๅๆใงใ
develop ใใฉใณใ -> fix ใใฉใณใ -> develop ใใฉใณใ -> staging ใใฉใณใ
1. github ใง **issue** ใไฝๆใใ
* [stagingใงใปใใตใ็ป้ขใ่กจ็คบใใใชใ ยท Issue #5 ยท hisasann/git-staging-flow](https://github.com/hisasann/git-staging-flow/issues/5)
1. `develop` ใใฉใณใใใ `fix/first` ใใฉใณใใไฝๆใใ
1. `fix/first` ใงไฝๆฅญใใ **commit** ใใ
1. ไฝๆฅญใๅฎไบใใใใญใผใซใซใฎ `fix/first` ใใฉใณใใใใชใขใผใใซ **push** ใใ
1. github.com ใฎใชใใธใใชใใผใธใซ่กใใใซใชใฏใจในใใไฝๆใใ
* into `develop` from `fix/first`
1. ใใซใชใฏใจในใใฎใฌใใฅใผใ **Reviewers** ใใๅใใ
1. **Reviewers** ใ **approved** ใใ
1. ใใซใชใฏใจในใใใใผใธใใ
1. ใใใง `develop` ใใฉใณใใ **ใใใญใค** ใใใใคใกใผใธ
1. `fix/first` ใใฉใณใใ delete ใใ
1. ใใใใๅ
ใฏ [QA ใใๅฎขใใ็ขบ่ชใฎใใใฎใใญใผ](https://github.com/hisasann/git-staging-flow#-qa-%E3%82%84%E3%81%8A%E5%AE%A2%E3%81%95%E3%82%93%E7%A2%BA%E8%AA%8D%E3%81%AE%E3%81%9F%E3%82%81%E3%81%AE%E3%83%95%E3%83%AD%E3%83%BC) ใๅ็
ง
## ๐ ๆฌ็ชใงใใฐใ็บ็ใใใฎใง็ดใ
production ใใฉใณใ -> develop-* ใใฉใณใ -> hotfix ใใฉใณใ -> develop-* ใใฉใณใ -> staging-* ใใฉใณใ -> production ใใฉใณใ
1. github ใง **issue** ใไฝๆใใ
1. `production` ใใฉใณใใใ `develop-hotfix-XXX` ใใฉใณใใไฝๆใใ
1. ใญใผใซใซใฎ `develop-hotfix-XXX` ใใฉใณใใใใชใขใผใใซ **push** ใใ
1. ใใใง `develop-hotfix-XXX` ใใฉใณใใ **ใใใญใค** ใใใใคใกใผใธ
`develop-hotfix-XXX` ใใฉใณใใจใใฆใใฎใฏใ `develop` ใใฉใณใใใใงใซๆฐ่ฆ้็บใง **commit** ใ้ฒใใงใใใจๆณๅฎใใๅ ดๅใฎๅฝๅใงใ
ไธๆ็ใซ `develop` ใตใผใใผใฏใ `develop-hotfix-XXX` ใใฉใณใใใใใญใคใใใๆณๅฎใงใ
1. `develop` ใตใผใใผใงๆฌ็ชใฎใใฐใ็บ็ใใใใ็ขบ่ชใใ
1. ๅ็พใใๅ ดๅใ `develop-hotfix-XXX` ใใฉใณใใใ `hotfix/first` ใใฉใณใใไฝๆใใ
1. `hotfix/first` ใงไฝๆฅญใใ **commit** ใใ
1. ไฝๆฅญใๅฎไบใใใใญใผใซใซใฎ `hotfix/first` ใใฉใณใใใใชใขใผใใซ **push** ใใ
1. github.com ใฎใชใใธใใชใใผใธใซ่กใใใซใชใฏใจในใใไฝๆใใ
* into `develop-hotfix-XXX` from `hotfix/first`
1. ใใซใชใฏใจในใใฎใฌใใฅใผใ **Reviewers** ใใๅใใ
1. **Reviewers** ใ **approved** ใใ
1. ใใซใชใฏใจในใใใใผใธใใ
1. ใใใง `develop-hotfix-XXX` ใใฉใณใใ **ๅๅบฆใใใญใค** ใใใใคใกใผใธ
1. `hotfix/first` ใใฉใณใใ delete ใใ
1. ใใใพใงใใใ QA ใใ [QA ใใๅฎขใใ็ขบ่ชใฎใใใฎใใญใผ](https://github.com/hisasann/git-staging-flow#-qa-%E3%82%84%E3%81%8A%E5%AE%A2%E3%81%95%E3%82%93%E7%A2%BA%E8%AA%8D%E3%81%AE%E3%81%9F%E3%82%81%E3%81%AE%E3%83%95%E3%83%AD%E3%83%BC) ใๅ็
ง
1. QA ใ้ใฃใใๆฌ็ชใธ [ๆฌ็ชใธใฎใใใญใคใใญใผ](https://github.com/hisasann/git-staging-flow#-%E6%9C%AC%E7%95%AA%E3%81%B8%E3%81%AE%E3%83%87%E3%83%97%E3%83%AD%E3%82%A4%E3%83%95%E3%83%AD%E3%83%BC)