From f4e0a03314ce62a155c825792a8fe2ad645abaed Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Sun, 10 May 2026 22:29:36 -0500 Subject: [PATCH] fix(api): rename CommitStatus state json tag from 'status' to 'state' Aligns CommitStatus with CombinedStatus which already uses 'state'. Fixes API inconsistency where individual statuses returned 'status' but the combined endpoint returned 'state', causing client-side null reads when accessing .state on individual CommitStatus objects. --- modules/structs/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/structs/status.go b/modules/structs/status.go index 923a245c46..472840c2c9 100644 --- a/modules/structs/status.go +++ b/modules/structs/status.go @@ -14,7 +14,7 @@ type CommitStatus struct { // ID is the unique identifier for the commit status ID int64 `json:"id"` // State represents the status state (pending, success, error, failure) - State commitstatus.CommitStatusState `json:"status"` + State commitstatus.CommitStatusState `json:"state"` // TargetURL is the URL to link to for more details TargetURL string `json:"target_url"` // Description provides a brief description of the status