This is an automated email from the ASF dual-hosted git repository. abeizn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit f9d707de52b01beb179c83c30922b3f576d6e4dc Author: abeizn <[email protected]> AuthorDate: Fri Aug 5 19:15:27 2022 +0800 feat: github cicd convertor --- plugins/github/tasks/cicd_run_enricher.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/github/tasks/cicd_run_enricher.go b/plugins/github/tasks/cicd_run_enricher.go index 21054aaa..a266adb5 100644 --- a/plugins/github/tasks/cicd_run_enricher.go +++ b/plugins/github/tasks/cicd_run_enricher.go @@ -47,6 +47,7 @@ func EnrichPipelines(taskCtx core.SubTaskContext) (err error) { return err } defer cursor.Close() + taskCtx.SetProgress(0, -1) apiParamsJson, err := json.Marshal(GithubApiParams{ ConnectionId: data.Options.ConnectionId, @@ -102,6 +103,7 @@ func EnrichPipelines(taskCtx core.SubTaskContext) (err error) { if err != nil { return err } + taskCtx.IncProgress(1) } return err
