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)) }