Skip to content

Commit

Permalink
Merge pull request #74 from smacker/sdk_fix_datetime
Browse files Browse the repository at this point in the history
Sdk fix datetime
  • Loading branch information
smacker authored Jul 27, 2018
2 parents 0287d33 + 1d1bb09 commit 8a8b89a
Show file tree
Hide file tree
Showing 13 changed files with 730 additions and 1,593 deletions.
22 changes: 11 additions & 11 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,7 @@
[[constraint]]
name = "gopkg.in/src-d/enry.v1"
version = "1.6.4"

[[constraint]]
name = "github.com/satori/go.uuid"
version = "1.2.0"
6 changes: 5 additions & 1 deletion cmd/lookout/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package main

import (
"context"
"time"

uuid "github.com/satori/go.uuid"
"github.com/src-d/lookout"
gogit "gopkg.in/src-d/go-git.v4"
"gopkg.in/src-d/go-git.v4/plumbing"
Expand Down Expand Up @@ -66,7 +68,9 @@ func (c *PushCommand) Execute(args []string) error {
}

err = srv.HandlePush(context.TODO(), &lookout.PushEvent{
Commits: commits,
InternalID: uuid.NewV4().String(),
CreatedAt: time.Now(),
Commits: commits,
CommitRevision: lookout.CommitRevision{
Base: *fromRef,
Head: *toRef,
Expand Down
6 changes: 6 additions & 0 deletions cmd/lookout/review.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ package main

import (
"context"
"time"

uuid "github.com/satori/go.uuid"

"github.com/src-d/lookout"
log "gopkg.in/src-d/go-log.v1"
Expand Down Expand Up @@ -51,6 +54,9 @@ func (c *ReviewCommand) Execute(args []string) error {
})

err = srv.HandleReview(context.TODO(), &lookout.ReviewEvent{
InternalID: uuid.NewV4().String(),
CreatedAt: time.Now(),
UpdatedAt: time.Now(),
IsMergeable: true,
Source: *toRef,
Merge: *toRef,
Expand Down
191 changes: 0 additions & 191 deletions vendor/github.com/golang/glog/LICENSE

This file was deleted.

Loading

0 comments on commit 8a8b89a

Please sign in to comment.