diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4305b47..a7eda35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,6 +80,15 @@ jobs: cd .. cat ./java.json + - name: Third Party Test (Kotlin) + run: | + git clone https://github.com/square/kotlinpoet --depth=6 + cd kotlinpoet + ../scip-java index -- clean build + ../srctx diff --before HEAD~5 --scip ./index.scip --outputHtml ../kotlin.html --outputJson ../kotlin.json + cd .. + cat ./kotlin.json + - name: Thrid Party Test (Node) run: | git clone https://github.com/microsoft/lsif-node.git --depth=6 @@ -97,3 +106,12 @@ jobs: ../srctx diff --before HEAD~5 --scip ./index.scip --outputHtml ../python.html --outputJson ../python.json cd .. cat ./python.json + + - name: diffctx + uses: williamfzc/diffctx@v0.3.4 + with: + lang: "golang" + +# for creating comments +permissions: + pull-requests: write diff --git a/cmd/srctx/main.go b/cmd/srctx/main.go index ade6e67..0d51260 100644 --- a/cmd/srctx/main.go +++ b/cmd/srctx/main.go @@ -15,8 +15,9 @@ func main() { func mainFunc(args []string) { app := cli.NewApp() - app.Name = "srctx" - app.Usage = "source context tool" + // random edit + app.Name = "srctx1" + app.Usage = "source context tool2" diff.AddDiffCmd(app) diff.AddConfigCmd(app) diff --git a/diff/git.go b/diff/git.go index f4e7cec..7a23609 100644 --- a/diff/git.go +++ b/diff/git.go @@ -19,7 +19,7 @@ func GitDiff(rootDir string, before string, after string) (ImpactLineMap, error) gitDiffCmd.Dir = rootDir data, err := gitDiffCmd.CombinedOutput() if err != nil { - log.Errorf("git cmd error: %s", data) + log.Errorf("git cmd eafdsfrror: %s", data) return nil, err } diff --git a/graph/function/api_draw_dot.go b/graph/function/api_draw_dot.go index da421bb..edbe805 100644 --- a/graph/function/api_draw_dot.go +++ b/graph/function/api_draw_dot.go @@ -12,6 +12,7 @@ func (fg *Graph) setProperty(vertexHash string, propertyK string, propertyV stri return err } properties.Attributes[propertyK] = propertyV + // fake edit 2 return nil } diff --git a/parser/lsif/code_hover.go b/parser/lsif/code_hover.go index 2f0ed91..fd9f760 100644 --- a/parser/lsif/code_hover.go +++ b/parser/lsif/code_hover.go @@ -2,6 +2,7 @@ package lsif import ( "encoding/json" + log "github.com/sirupsen/logrus" "strings" "unicode/utf8" @@ -64,7 +65,9 @@ func newCodeHovers(contents json.RawMessage) ([]*codeHover, error) { var rawContents []json.RawMessage if err := json.Unmarshal(contents, &rawContents); err != nil { rawContents = []json.RawMessage{contents} + // fake edge 1 } + log.Debug("abc") codeHovers := []*codeHover{} for _, rawContent := range rawContents {