diff options
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/service/git.go | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/pkg/service/git.go b/pkg/service/git.go index 2d00715..773d335 100644 --- a/pkg/service/git.go +++ b/pkg/service/git.go @@ -15,11 +15,11 @@ import (  type (  	Repository struct { -		Name           string -		Description    string -		Public         bool -		LastCommitDate string -		Ref            string +		Name        string +		Description string +		Public      bool +		LastCommit  *object.Commit +		Ref         string  	}  	GitService struct { @@ -70,11 +70,11 @@ func (g *GitService) ListRepositories() ([]*Repository, error) {  		}  		repos = append(repos, &Repository{ -			Name:           r.Name, -			Description:    r.Description, -			Public:         r.Public, -			LastCommitDate: obj.Author.When.Format(timeFormat), -			Ref:            head.Name().Short(), +			Name:        r.Name, +			Description: r.Description, +			Public:      r.Public, +			LastCommit:  obj, +			Ref:         head.Name().Short(),  		})  	}  | 
