0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-21 10:14:40 +02:00
This commit is contained in:
Christopher Homberger 2025-03-17 21:20:05 +01:00
parent fb8a221d7f
commit ccb9dec6db

View File

@ -634,7 +634,7 @@ func ActionsListRepositoryWorkflows(ctx *context.APIContext) {
// "500": // "500":
// "$ref": "#/responses/error" // "$ref": "#/responses/error"
workflows, err := actions_service.ListActionWorkflows(ctx) workflows, err := convert.ListActionWorkflows(ctx, ctx.Repo.GitRepo, ctx.Repo.Repository)
if err != nil { if err != nil {
ctx.APIErrorInternal(err) ctx.APIErrorInternal(err)
return return
@ -680,7 +680,7 @@ func ActionsGetWorkflow(ctx *context.APIContext) {
// "$ref": "#/responses/error" // "$ref": "#/responses/error"
workflowID := ctx.PathParam("workflow_id") workflowID := ctx.PathParam("workflow_id")
workflow, err := actions_service.GetActionWorkflow(ctx, workflowID) workflow, err := convert.GetActionWorkflow(ctx, ctx.Repo.GitRepo, ctx.Repo.Repository, workflowID)
if err != nil { if err != nil {
if errors.Is(err, util.ErrNotExist) { if errors.Is(err, util.ErrNotExist) {
ctx.APIError(http.StatusNotFound, err) ctx.APIError(http.StatusNotFound, err)