Skip to content

Commit

Permalink
Removed Assignee and Labels from IssueEventPayload
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielweyer committed Dec 23, 2015
1 parent 84a39c5 commit 34d1374
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
26 changes: 13 additions & 13 deletions Octokit.Tests/Clients/EventsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,18 +360,18 @@ public async Task DeserializesIssueEventCorrectly()
{
"payload", new
{
action = "assigned",
action = "created",
issue = new
{
number = 1337
},
assignee = new
{
id = 1337
},
label = new
{
name = "bug"
number = 1337,
assignee = new
{
id = 1337
},
labels = new[]
{
new { name = "bug"}
}
}
}
}
Expand All @@ -382,10 +382,10 @@ public async Task DeserializesIssueEventCorrectly()
Assert.Equal(1, activities.Count);

var payload = activities.FirstOrDefault().Payload as IssueEventPayload;
Assert.Equal("assigned", payload.Action);
Assert.Equal("created", payload.Action);
Assert.Equal(1337, payload.Issue.Number);
Assert.Equal(1337, payload.Assignee.Id);
Assert.Equal("bug", payload.Label.Name);
Assert.Equal(1337, payload.Issue.Assignee.Id);
Assert.Equal("bug", payload.Issue.Labels.First().Name);
}

[Fact]
Expand Down
2 changes: 0 additions & 2 deletions Octokit/Models/Response/ActivityPayloads/IssueEventPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ public class IssueEventPayload : ActivityPayload
{
public string Action { get; protected set; }
public Issue Issue { get; protected set; }
public User Assignee { get; protected set; }
public Label Label { get; protected set; }
}
}

0 comments on commit 34d1374

Please sign in to comment.