diff --git a/src/types/api/issue.rs b/src/types/api/issue.rs index 274e77d..26f34bd 100644 --- a/src/types/api/issue.rs +++ b/src/types/api/issue.rs @@ -87,6 +87,7 @@ pub struct Issue { /// Pull request information for the issue. pub pull_request: Option, /// The reference for the issue. + #[serde(rename = "ref")] pub ref_field: String, /// Metadata for the repository. pub repository: RepositoryMeta, diff --git a/test_data/example_issue.json b/test_data/example_issue.json index 867a7ae..9c25051 100644 --- a/test_data/example_issue.json +++ b/test_data/example_issue.json @@ -68,7 +68,7 @@ "original_author": "original_author", "original_author_id": 123, "pull_request": null, - "ref_field": "refs/1", + "ref": "refs/1", "repository": { "full_name": "exampleuser/example-repo", "id": 123,