mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 04:16:51 +00:00
Add StateReason to IssueUpdate (#2665)
Fixes #2664 Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com>
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user