發佈 jsc-git 0.0.4:PR base 優先採用呼叫端指定值 #7
2 Participants
Notifications
Due Date
No due date set.
Blocks
#15 發佈 jsc-sdlc 0.1.0:一包一 PR、回合來源分支
plugins/sdlc
Reference: plugins/git#7
Reference in New Issue
Block a user
變更摘要
pr的 base 分支改為優先採用呼叫端指定值。原本第 2 步固定自行判定:「remote 有
develop就用develop,否則main,否則master」,完全不理會呼叫端傳進來的目標分支。jsc-sdlc:implement內文寫著「沿用確認的目標分支」,實際上從來沒有生效——每個工作包的 PR 都會直接開到develop,越過它所屬的功能分支。改為:
develop、main、master。git fetch --prune origin再用git branch -r驗證存在於遠端;不存在就回報並停止,不靜默退回其他分支。影響範圍
jsc-sdlc:implement會傳入分析頁的來源分支作為 base(該 repo 另有 PR,依賴本 PR)。驗證
STE100 lint 通過;description 維持在 5 句內。