()
| 379 | } |
| 380 | |
| 381 | func (repo Repository) MarshalJSON() ([]byte, error) { |
| 382 | return json.Marshal(map[string]any{ |
| 383 | "id": repo.ID, |
| 384 | "nameWithOwner": repo.FullName, |
| 385 | "url": repo.URL, |
| 386 | "isPrivate": repo.IsPrivate, |
| 387 | "isFork": repo.IsFork, |
| 388 | }) |
| 389 | } |
| 390 | |
| 391 | // The state of an issue or a pull request, may be either open or closed. |
| 392 | // For a pull request, the "merged" state is inferred from a value for merged_at and |
nothing calls this directly
no outgoing calls
no test coverage detected