Phabricator 工作流程
13 Apr 2019 |最近工作上的需要, 存放代碼的平台從 Azure DevOps 轉換成 Phabricator
第一次接觸覺得最大的差別就是 Code Review
, 工作上需要指定Reviewer
, Reviewer看完 approval 之後才能上 Phabricator
Configuration
首先在Phabricator官網註冊試用版的
選擇試用版(只有7天有效期限, 到期後會自動刪除專案)
驗證完後, 會導入到主畫面
主畫面左邊點選Diffusion
點選 + create repository
選擇Git
命名後 並啟動repo
記得再設置檔添加SSH Key, 不然待會clone會有問題
回到Diffusion畫面, 點選剛剛所創建的repo, 接著點擊旁邊的clone 複製代碼
移置clone後的專案路徑, 並新增README
cd ~/SideProject/phabricator-test
echo "Hello, phabricator test">> README.md
git add .
git status (確認 REAMDME 是否有加入)
git commit -m 'init commit'
接著下 arc diff
會有所需要填寫的資料
- Reviewers 改的code要請誰幫你做code review
- Subscribers 改的code要讓專案中的哪些人知道
畫面中可以看到增加或修改什麼檔案
另外配置Phabricator的URI
arc set-config default https://test-tppr25itewwg.phacility.com/
再要push到Phabricator的專案中 加入.arcconfig
{
"phabricator.uri": "https://test-tppr25itewwg.phacility.com/"
}
下達git
git add .
git status (確認 .arcconfig 是否有加入)
git commit -m 'add arcconfig'
arc diff (reviewers approval後就可以往下執行)
arc land
參考資料:
Comments