Skip to content

Commit 31cea19

Browse files
authored
fix git address at task start in workflow notify (#4469)
Signed-off-by: Patrick Zhao <zhaoyu@koderover.com>
1 parent 89dfc9a commit 31cea19

File tree

2 files changed

+5
-0
lines changed
  • pkg/microservice/aslan/core

2 files changed

+5
-0
lines changed

pkg/microservice/aslan/core/common/service/instantmessage/workflow_task.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ func (w *Service) getNotificationContent(notify *models.NotifyCtl, task *models.
719719
repos = stepSpec.Repos
720720
}
721721
}
722+
722723
branchTag, commitID, gitCommitURL := "", "", ""
723724
commitMsgs := []string{}
724725
var prInfoList []string

pkg/microservice/aslan/core/workflow/service/workflow/controller/job/utils.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ func applyRepos(base, input []*types.Repository) []*types.Repository {
173173
item.CommitMessage = cv.CommitMessage
174174
item.SSHKey = cv.SSHKey
175175
item.PrivateAccessToken = cv.PrivateAccessToken
176+
177+
if item.Address == "" {
178+
item.Address = cv.Address
179+
}
176180
}
177181

178182
resp = append(resp, item)

0 commit comments

Comments
 (0)