From 770f837c11fc4eb0059e23a622ba5a9bf2ca8793 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 2 Oct 2023 19:53:29 +0300 Subject: [PATCH] fixup deps Signed-off-by: Vasiliy Tolstov --- cmd/pkgdashcli/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 {