Skip to content

Commit 8bd7ffe

Browse files
committed
Add comments
1 parent 3ff1f20 commit 8bd7ffe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

models/status.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,14 @@ func NewCommitStatus(repo *Repository, creator *User, sha string, status *Commit
254254
return sess.Commit()
255255
}
256256

257+
// SignCommitWithStatuses represents a commit with validation of signature and status state.
257258
type SignCommitWithStatuses struct {
258259
Statuses []*CommitStatus
259260
State CommitStatusState
260261
*SignCommit
261262
}
262263

264+
// ParseCommitsWithStatus checks commits latest statuses and calculates its worst status state
263265
func ParseCommitsWithStatus(oldCommits *list.List, repo *Repository) *list.List {
264266
var (
265267
newCommits = list.New()

0 commit comments

Comments
 (0)