From ee703b08e4ab17ec196ee11dbc4a9bd781f5aedf Mon Sep 17 00:00:00 2001 From: Matthew Knight Date: Wed, 18 Feb 2026 15:38:49 -0800 Subject: [PATCH] Handle 201 when ensuring ticket is open --- internal/forgejo/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/forgejo/client.go b/internal/forgejo/client.go index eaa4f3d..a0b5fd4 100644 --- a/internal/forgejo/client.go +++ b/internal/forgejo/client.go @@ -636,7 +636,7 @@ func (c *Client) EditIssue(owner, repo string, number int64, req EditIssueReques } defer resp.Body.Close() - if resp.StatusCode != http.StatusOK { + if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusCreated { respBody, _ := io.ReadAll(resp.Body) return fmt.Errorf("forgejo API returned %d: %s", resp.StatusCode, string(respBody)) }