Skip to content

Commit

Permalink
fix(dashboards): add active status on repo partial (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper authored May 6, 2024
1 parent 38cd714 commit 993a937
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/dashboard/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func buildRepoPartials(c context.Context, repos []*types.DashboardRepo) ([]types
repo.Org = dbRepo.GetOrg()
repo.Name = dbRepo.GetName()
repo.Counter = dbRepo.GetCounter()
repo.Active = dbRepo.GetActive()

// list last 5 builds for repo given the branch and event filters
builds, err := database.FromContext(c).ListBuildsForDashboardRepo(c, dbRepo, r.GetBranches(), r.GetEvents())
Expand Down
1 change: 1 addition & 0 deletions api/types/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type RepoPartial struct {
Org string `json:"org,omitempty"`
Name string `json:"name,omitempty"`
Counter int `json:"counter,omitempty"`
Active bool `json:"active,omitempty"`
Builds []BuildPartial `json:"builds,omitempty"`
}

Expand Down

0 comments on commit 993a937

Please sign in to comment.