From c4228f01c89387a80ba3202f5a0bf5e31170d7e1 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 16 Dec 2023 16:45:09 +0000 Subject: [PATCH] update issue ref_field to real name 'ref' --- src/types/api/issue.rs | 1 + test_data/example_issue.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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,