You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2022/09/22 06:06:32 UTC

[incubator-devlake] 02/02: fix: update strategy environtment

This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 1e76551496a197a0d21f6dbde373642a5e2f034b
Author: abeizn <zi...@merico.dev>
AuthorDate: Thu Sep 22 13:27:13 2022 +0800

    fix: update strategy environtment
---
 plugins/gitlab/tasks/task_data.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plugins/gitlab/tasks/task_data.go b/plugins/gitlab/tasks/task_data.go
index edd8a35d..a76a2f28 100644
--- a/plugins/gitlab/tasks/task_data.go
+++ b/plugins/gitlab/tasks/task_data.go
@@ -77,7 +77,9 @@ func DecodeAndValidateTaskOptions(options map[string]interface{}) (*GitlabOption
 	if op.IssueTypeRequirement == "" {
 		op.IssueTypeRequirement = "^(feat|feature|proposal|requirement)$"
 	}
-
+	if op.DeploymentPattern == "" {
+		op.DeploymentPattern = "(?i)deploy"
+	}
 	// find the needed GitHub now
 	if op.ConnectionId == 0 {
 		return nil, errors.BadInput.New("connectionId is invalid")