fixup deps

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-10-02 19:53:29 +03:00
parent 083517ace3
commit 770f837c11

View File

@ -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,8 +320,8 @@ 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",
Name: "gitea-actions",
// Email: "info@unistack.org",
When: time.Now(),
},
})