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

abeizn pushed a commit to branch feat#5841-4
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/feat#5841-4 by this push:
     new 7919e1737 fix: some ci issues
7919e1737 is described below

commit 7919e17377a4f85ffbb26a984ebc6329d1d94061
Author: abeizn <[email protected]>
AuthorDate: Tue Sep 12 18:57:35 2023 +0800

    fix: some ci issues
---
 backend/plugins/ae/ae.go           | 3 ++-
 backend/plugins/dbt/dbt.go         | 2 +-
 backend/plugins/refdiff/refdiff.go | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/backend/plugins/ae/ae.go b/backend/plugins/ae/ae.go
index 59fa374c3..e25713da3 100644
--- a/backend/plugins/ae/ae.go
+++ b/backend/plugins/ae/ae.go
@@ -30,12 +30,13 @@ func main() {
        aeCmd := &cobra.Command{Use: "ae"}
        connectionId := aeCmd.Flags().Uint64P("Connection-id", "c", 0, "ae 
connection id")
        projectId := aeCmd.Flags().IntP("project-id", "p", 0, "ae project id")
+       timeAfter := aeCmd.Flags().StringP("timeAfter", "a", "", "collect data 
that are created after specified time, ie 2006-01-02T15:04:05Z")
        _ = aeCmd.MarkFlagRequired("project-id")
        aeCmd.Run = func(cmd *cobra.Command, args []string) {
                runner.DirectRun(cmd, args, PluginEntry, map[string]interface{}{
                        "connectionId": *connectionId,
                        "projectId":    *projectId,
-               })
+               }, *timeAfter)
        }
        runner.RunCmd(aeCmd)
 }
diff --git a/backend/plugins/dbt/dbt.go b/backend/plugins/dbt/dbt.go
index 5c875a528..ffb435ddc 100644
--- a/backend/plugins/dbt/dbt.go
+++ b/backend/plugins/dbt/dbt.go
@@ -51,7 +51,7 @@ func main() {
        projectVars["event_min_id"] = "7581"
        projectVars["event_max_id"] = "7582"
        dbtCmd.Flags().StringToStringVarP(&projectVars, "projectVars", "v", 
projectVars, "dbt provides variables to provide data to models for 
compilation.")
-       timeAfter := cmd.Flags().StringP("timeAfter", "a", "", "collect data 
that are created after specified time, ie 2006-01-02T15:04:05Z")
+       timeAfter := dbtCmd.Flags().StringP("timeAfter", "a", "", "collect data 
that are created after specified time, ie 2006-01-02T15:04:05Z")
 
        dbtCmd.Run = func(cmd *cobra.Command, args []string) {
                projectVarsConvert := make(map[string]interface{}, 
len(projectVars))
diff --git a/backend/plugins/refdiff/refdiff.go 
b/backend/plugins/refdiff/refdiff.go
index 5891e8aae..67eb1a28b 100644
--- a/backend/plugins/refdiff/refdiff.go
+++ b/backend/plugins/refdiff/refdiff.go
@@ -38,7 +38,7 @@ func main() {
        tagsOrder := refdiffCmd.Flags().StringP("tags-order", "d", "", "tags 
order")
 
        projectName := refdiffCmd.Flags().StringP("project-name", "P", "", 
"project name")
-       timeAfter := cmd.Flags().StringP("timeAfter", "a", "", "collect data 
that are created after specified time, ie 2006-01-02T15:04:05Z")
+       timeAfter := refdiffCmd.Flags().StringP("timeAfter", "a", "", "collect 
data that are created after specified time, ie 2006-01-02T15:04:05Z")
 
        // _ = refdiffCmd.MarkFlagRequired("repo-id")
        //_ = refdiffCmd.MarkFlagRequired("new-ref")

Reply via email to