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 3512d7e8ee3af3f73c1e82e4e06f19efda560a68
Author: abeizn <[email protected]>
AuthorDate: Fri May 27 20:45:25 2022 +0800

    fix: log level and remove fmt println
---
 plugins/gitextractor/parser/libgit2.go                  | 2 +-
 plugins/refdiff/tasks/refs_pr_cherry_pick_calculator.go | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/plugins/gitextractor/parser/libgit2.go 
b/plugins/gitextractor/parser/libgit2.go
index 218135d8..29f726a1 100644
--- a/plugins/gitextractor/parser/libgit2.go
+++ b/plugins/gitextractor/parser/libgit2.go
@@ -167,7 +167,7 @@ func (l *LibGit2) run(repo *git.Repository, repoId string) 
error {
                        return nil
                }
                commitSha := commit.Id().String()
-               l.logger.Info("process commit: %s", commitSha)
+               l.logger.Debug("process commit: %s", commitSha)
                c := &code.Commit{
                        Sha:     commitSha,
                        Message: commit.Message(),
diff --git a/plugins/refdiff/tasks/refs_pr_cherry_pick_calculator.go 
b/plugins/refdiff/tasks/refs_pr_cherry_pick_calculator.go
index ed257b9c..602063d8 100644
--- a/plugins/refdiff/tasks/refs_pr_cherry_pick_calculator.go
+++ b/plugins/refdiff/tasks/refs_pr_cherry_pick_calculator.go
@@ -18,7 +18,6 @@ limitations under the License.
 package tasks
 
 import (
-       "fmt"
        "regexp"
        "strconv"
        "strings"
@@ -45,10 +44,9 @@ func CalculatePrCherryPick(taskCtx core.SubTaskContext) 
error {
        ctx := taskCtx.GetContext()
        db := taskCtx.GetDb()
        var prTitleRegex *regexp.Regexp
+       
        prTitlePattern := taskCtx.GetConfig("GITHUB_PR_TITLE_PATTERN")
-
        if len(prTitlePattern) > 0 {
-               fmt.Println(prTitlePattern)
                prTitleRegex = regexp.MustCompile(prTitlePattern)
        }
 

Reply via email to