aboutsummaryrefslogtreecommitdiff
path: root/pkg/service/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/service/git.go')
-rw-r--r--pkg/service/git.go20
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(),
})
}