Add StateReason to IssueUpdate (#2665)

Fixes #2664

Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com>
This commit is contained in:
Heath Stewart
2023-02-21 14:03:20 -08:00
committed by GitHub
parent 66587ee0d1
commit 8ba882e98d
5 changed files with 81 additions and 2 deletions
+2
View File
@@ -145,6 +145,7 @@ public class IssueTest
""html_url"": ""https://github.com/octocat/Hello-World/issues/1347"",
""number"": 1347,
""state"": ""open"",
""state_reason"": ""reopened"",
""title"": ""Found a bug"",
""body"": ""I'm having a problem with this."",
""user"": {
@@ -283,6 +284,7 @@ public class IssueTest
Assert.NotNull(update.Labels);
Assert.Equal(1, update.Milestone.GetValueOrDefault());
Assert.Equal("octocat", update.Assignees.FirstOrDefault());
Assert.Equal(ItemStateReason.Reopened, update.StateReason.GetValueOrDefault());
}
}
}