From 131c8e3d716feb3cbda8282902a98e1261353b52 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sat, 30 Sep 2023 01:04:31 +0300 Subject: [PATCH] update Signed-off-by: Vasiliy Tolstov --- cmd/pkgdashcli/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/pkgdashcli/main.go b/cmd/pkgdashcli/main.go index 5e06327..7e57223 100644 --- a/cmd/pkgdashcli/main.go +++ b/cmd/pkgdashcli/main.go @@ -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' \