From 3ef2a5d7cef128af88f11a01cd99eda16c2bd7ea Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sat, 30 Sep 2023 01:05:02 +0300 Subject: [PATCH] update Signed-off-by: Vasiliy Tolstov --- cmd/pkgdashcli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pkgdashcli/main.go b/cmd/pkgdashcli/main.go index 7e57223..50df397 100644 --- a/cmd/pkgdashcli/main.go +++ b/cmd/pkgdashcli/main.go @@ -260,7 +260,7 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules. if err != nil { return err } - if rsp.StatusCode != http.StatusOK { + if rsp.StatusCode != http.StatusCreated { buf, _ = io.ReadAll(rsp.Body) return fmt.Errorf("unknown error: %s", buf) }