mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 21:04:55 +02:00
wip test and fixes
This commit is contained in:
1 parent
ca6bbc6c6d
commit
875c7745e4
5 files changed
+80
-7
No files matched your search
@@ -962,7 +962,7 @@ func GetWorkflowRuns(ctx *context.APIContext) {
|
||||
|
||||
res.Entries = make([]*api.ActionWorkflowRun, len(runs))
|
||||
for i := range runs {
|
||||
convertedRun, err := convert.ToActionWorkflowRun(ctx.Repo.Repository, runs[i])
|
||||
convertedRun, err := convert.ToActionWorkflowRun(ctx, ctx.Repo.Repository, runs[i])
|
||||
if err != nil {
|
||||
ctx.APIErrorInternal(err)
|
||||
return
|
||||
@@ -1011,7 +1011,7 @@ func GetWorkflowRun(ctx *context.APIContext) {
|
||||
ctx.APIError(http.StatusNotFound, util.ErrNotExist)
|
||||
}
|
||||
|
||||
convertedArtifact, err := convert.ToActionWorkflowRun(ctx.Repo.Repository, job)
|
||||
convertedArtifact, err := convert.ToActionWorkflowRun(ctx, ctx.Repo.Repository, job)
|
||||
if err != nil {
|
||||
ctx.APIErrorInternal(err)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user