diff --git a/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs b/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs
index 6f2f0479..f4640deb 100644
--- a/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs
@@ -45,7 +45,7 @@ public class IssuesEventsClientTests : IDisposable
issueEventInfo = await _issuesEventsClientClient.GetForIssue(_repositoryOwner, _repositoryName, issue.Number);
Assert.Equal(1, issueEventInfo.Count);
- Assert.Equal(EventInfoState.Closed, issueEventInfo[0].InfoState);
+ Assert.Equal(EventInfoState.Closed, issueEventInfo[0].Event);
}
[IntegrationTest]
@@ -93,7 +93,7 @@ public class IssuesEventsClientTests : IDisposable
var issueEventLookupById = await _issuesEventsClientClient.Get(_repositoryOwner, _repositoryName, issueEventId);
Assert.Equal(issueEventId, issueEventLookupById.Id);
- Assert.Equal(issueEvents[0].InfoState, issueEventLookupById.InfoState);
+ Assert.Equal(issueEvents[0].Event, issueEventLookupById.Event);
}
public void Dispose()
diff --git a/Octokit/Models/Response/EventInfo.cs b/Octokit/Models/Response/EventInfo.cs
index 6fe04121..ad406a05 100644
--- a/Octokit/Models/Response/EventInfo.cs
+++ b/Octokit/Models/Response/EventInfo.cs
@@ -1,6 +1,7 @@
using System;
using System.Diagnostics;
using System.Globalization;
+using System.Diagnostics.CodeAnalysis;
namespace Octokit
{
@@ -22,10 +23,20 @@ namespace Octokit
///
public User Actor { get; set; }
+ ///
+ /// The user that was assigned, if the event was 'Assigned'.
+ ///
+ public User Assignee { get; set; }
+
+ ///
+ /// The label that was assigned, if the event was 'Labeled'
+ ///
+ public Label Label { get; set; }
+
///
/// Identifies the actual type of Event that occurred.
///
- public EventInfoState InfoState { get; set; }
+ public EventInfoState Event { get; set; }
///
/// The String SHA of a commit that referenced this Issue.
@@ -83,6 +94,58 @@ namespace Octokit
///
/// The issue was assigned to the actor.
///
- Assigned
+ Assigned,
+
+ ///
+ /// The issue was unassigned to the actor.
+ ///
+ Unassigned,
+
+ ///
+ /// A label was added to the issue.
+ ///
+ Labeled,
+
+ ///
+ /// A label was removed from the issue.
+ ///
+ Unlabeled,
+
+ ///
+ /// The issue was added to a milestone.
+ ///
+ [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Milestoned")]
+ Milestoned,
+
+ ///
+ /// The issue was removed from a milestone.
+ ///
+ [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Demilestoned")]
+ Demilestoned,
+
+ ///
+ /// The issue title was changed.
+ ///
+ Renamed,
+
+ ///
+ /// The issue was locked by the actor.
+ ///
+ Locked,
+
+ ///
+ /// The issue was unlocked by the actor.
+ ///
+ Unlocked,
+
+ ///
+ /// The pull request’s branch was deleted.
+ ///
+ HeadRefDeleted,
+
+ ///
+ /// The pull request’s branch was restored.
+ ///
+ HeadRefRestored,
}
}
\ No newline at end of file
diff --git a/Octokit/Models/Response/IssueEvent.cs b/Octokit/Models/Response/IssueEvent.cs
index e57eb6b5..3c9a3323 100644
--- a/Octokit/Models/Response/IssueEvent.cs
+++ b/Octokit/Models/Response/IssueEvent.cs
@@ -22,10 +22,20 @@ namespace Octokit
///
public User Actor { get; set; }
+ ///
+ /// The user that was assigned, if the event was 'Assigned'.
+ ///
+ public User Assignee { get; set; }
+
+ ///
+ /// The label that was assigned, if the event was 'Labeled'
+ ///
+ public Label Label { get; set; }
+
///
/// Identifies the actual type of Event that occurred.
///
- public EventInfoState InfoState { get; set; }
+ public EventInfoState Event { get; set; }
///
/// The String SHA of a commit that referenced this Issue.