diff --git a/cmd/pkgdashcli/main.go b/cmd/pkgdashcli/main.go index ee5ce97..d77be39 100644 --- a/cmd/pkgdashcli/main.go +++ b/cmd/pkgdashcli/main.go @@ -223,12 +223,12 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules. } type giteaPull struct { - ID int64 `json:"id"` URL string `json:"url"` Title string `json:"title"` Base struct { Ref string `json:"ref"` } `json:"base"` + ID int64 `json:"id"` } var pulls []*giteaPull @@ -247,7 +247,7 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules. buf, _ = io.ReadAll(rsp.Body) return fmt.Errorf("unknown error: %s", buf) } - + fmt.Printf("%#+v\n", rsp) if err = json.Unmarshal(buf, &pulls); err != nil { logger.Fatalf(ctx, "failed to decode response %s err: %v", buf, err) } @@ -320,9 +320,9 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules. logger.Infof(ctx, "worktree commit") commit, err := wtree.Commit(wTitle.String(), &git.CommitOptions{ Author: &object.Signature{ - Name: "gitea-actions ", - Email: "info@unistack.org", - When: time.Now(), + Name: "gitea-actions", + // Email: "info@unistack.org", + When: time.Now(), }, }) if err != nil {