forked from forgejo/forgejo
parent
da89afda58
commit
93a1de4842
9 changed files with 132 additions and 54 deletions
|
@ -103,15 +103,10 @@ func GetCombinedCommitStatus(ctx *context.APIContext) {
|
|||
return
|
||||
}
|
||||
|
||||
acl, err := models.AccessLevel(ctx.User.ID, repo)
|
||||
if err != nil {
|
||||
ctx.Error(500, "AccessLevel", fmt.Errorf("AccessLevel[%d, %s]: %v", ctx.User.ID, repo.FullName(), err))
|
||||
return
|
||||
}
|
||||
retStatus := &combinedCommitStatus{
|
||||
SHA: sha,
|
||||
TotalCount: len(statuses),
|
||||
Repo: repo.APIFormat(acl),
|
||||
Repo: repo.APIFormat(ctx.Repo.AccessMode),
|
||||
URL: "",
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue