summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/commit_status.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/commit_status.go b/models/commit_status.go
index 9dffece378..5d637afc2b 100644
--- a/models/commit_status.go
+++ b/models/commit_status.go
@@ -252,7 +252,8 @@ func NewCommitStatus(opts NewCommitStatusOptions) error {
// SignCommitWithStatuses represents a commit with validation of signature and status state.
type SignCommitWithStatuses struct {
- Status *CommitStatus
+ Status *CommitStatus
+ Statuses []*CommitStatus
*SignCommit
}
@@ -272,6 +273,7 @@ func ParseCommitsWithStatus(oldCommits *list.List, repo *Repository) *list.List
if err != nil {
log.Error("GetLatestCommitStatus: %v", err)
} else {
+ commit.Statuses = statuses
commit.Status = CalcCommitStatus(statuses)
}