@@ -107,17 +107,8 @@ type MinimalBranch struct {
107107 Protected bool `json:"protected"`
108108}
109109
110- // MinimalCreateResponse represents a minimal response for resource creation operations.
111- type MinimalCreateResponse struct {
112- URL string `json:"url"`
113- ID int64 `json:"id,omitempty"`
114- Number int `json:"number,omitempty"`
115- Name string `json:"name,omitempty"`
116- State string `json:"state,omitempty"`
117- }
118-
119- // MinimalPullRequestResponse represents a minimal response for pull request operations.
120- type MinimalPullRequestResponse struct {
110+ // MinimalResourceResponse represents a minimal response for numbered resource operations (issues, pull requests).
111+ type MinimalResourceResponse struct {
121112 URL string `json:"url"`
122113 Number int `json:"number"`
123114 State string `json:"state"`
@@ -132,19 +123,10 @@ type MinimalRepositoryResponse struct {
132123 FullName string `json:"full_name"`
133124}
134125
135- // MinimalIssueResponse represents a minimal response for issue operations.
136- type MinimalIssueResponse struct {
137- URL string `json:"url"`
138- Number int `json:"number"`
139- State string `json:"state"`
140- Title string `json:"title,omitempty"`
141- }
142-
143126// MinimalUpdateResponse represents a minimal response for update operations.
144127type MinimalUpdateResponse struct {
145128 URL string `json:"url"`
146129 Updated bool `json:"updated"`
147- Message string `json:"message,omitempty"`
148130}
149131
150132// MinimalGistResponse represents a minimal response for gist operations.
0 commit comments