fixup deps
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
083517ace3
commit
770f837c11
@ -223,12 +223,12 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules.
|
|||||||
}
|
}
|
||||||
|
|
||||||
type giteaPull struct {
|
type giteaPull struct {
|
||||||
ID int64 `json:"id"`
|
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Base struct {
|
Base struct {
|
||||||
Ref string `json:"ref"`
|
Ref string `json:"ref"`
|
||||||
} `json:"base"`
|
} `json:"base"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var pulls []*giteaPull
|
var pulls []*giteaPull
|
||||||
@ -247,7 +247,7 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules.
|
|||||||
buf, _ = io.ReadAll(rsp.Body)
|
buf, _ = io.ReadAll(rsp.Body)
|
||||||
return fmt.Errorf("unknown error: %s", buf)
|
return fmt.Errorf("unknown error: %s", buf)
|
||||||
}
|
}
|
||||||
|
fmt.Printf("%#+v\n", rsp)
|
||||||
if err = json.Unmarshal(buf, &pulls); err != nil {
|
if err = json.Unmarshal(buf, &pulls); err != nil {
|
||||||
logger.Fatalf(ctx, "failed to decode response %s err: %v", buf, err)
|
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")
|
logger.Infof(ctx, "worktree commit")
|
||||||
commit, err := wtree.Commit(wTitle.String(), &git.CommitOptions{
|
commit, err := wtree.Commit(wTitle.String(), &git.CommitOptions{
|
||||||
Author: &object.Signature{
|
Author: &object.Signature{
|
||||||
Name: "gitea-actions ",
|
Name: "gitea-actions",
|
||||||
Email: "info@unistack.org",
|
// Email: "info@unistack.org",
|
||||||
When: time.Now(),
|
When: time.Now(),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user