Fix a small bug, add a unit test.

This commit is contained in:
Brendan Burns
2015-08-03 16:59:30 -07:00
parent 6d16c18d6f
commit 0287d6eb32
2 changed files with 76 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ func validateLGTMAfterPush(client *github.Client, user, project string, pr *gith
for ix := range events {
event := &events[ix]
if *event.Event == "labeled" && *event.Label.Name == "lgtm" {
*lgtmTime = *event.CreatedAt
lgtmTime = event.CreatedAt
}
}
if lgtmTime == nil {