Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-09-30 01:04:31 +03:00
parent 78ee2d8432
commit 131c8e3d71

View File

@ -230,10 +230,14 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules.
"head": fmt.Sprintf("pkgdash/go_modules/%s-%s", path, mod.Version),
"title": wTitle.String(),
}
logger.Infof(ctx, "raw body: %#+v", body)
buf, err = json.Marshal(body)
if err != nil {
return err
}
logger.Infof(ctx, "marshal body: %s", buf)
/*
'https://try.gitea.io/api/v1/repos/org/repo/pulls?token=myaccesstoken' \
-H 'accept: application/json' \