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

klesh pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v1.0 by this push:
     new 6903d5171 fix: git extractor commit rawdataorigin is empty (#7658) 
(#7659)
6903d5171 is described below

commit 6903d51718e0f49a792bee2c3a30e913162ff8cb
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Jun 25 10:58:10 2024 +0800

    fix: git extractor commit rawdataorigin is empty (#7658) (#7659)
    
    * fix: git extractor commit rawdataorigin is empty
    
    * fix: remove debugging print
    
    Co-authored-by: Klesh Wong <[email protected]>
---
 backend/plugins/gitextractor/store/database.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/backend/plugins/gitextractor/store/database.go 
b/backend/plugins/gitextractor/store/database.go
index 63ec7e2de..5e03359f8 100644
--- a/backend/plugins/gitextractor/store/database.go
+++ b/backend/plugins/gitextractor/store/database.go
@@ -18,6 +18,8 @@ limitations under the License.
 package store
 
 import (
+       "reflect"
+
        "github.com/apache/incubator-devlake/core/context"
        "github.com/apache/incubator-devlake/core/errors"
        "github.com/apache/incubator-devlake/core/models/common"
@@ -25,7 +27,6 @@ import (
        "github.com/apache/incubator-devlake/core/models/domainlayer/code"
        
"github.com/apache/incubator-devlake/core/models/domainlayer/crossdomain"
        helper "github.com/apache/incubator-devlake/helpers/pluginhelper/api"
-       "reflect"
 )
 
 const BathSize = 100
@@ -87,7 +88,7 @@ func (d *Database) Commits(commit *code.Commit) errors.Error {
        if err != nil {
                return err
        }
-       d.updateRawDataFields(&account.RawDataOrigin)
+       d.updateRawDataFields(&commit.RawDataOrigin)
        return commitBatch.Add(commit)
 }
 

Reply via email to