Fix the response format for actions/workflows. (#35009)

This PR fixes the response format for the OpenAPI Spec of
`ActionsListRepositoryWorkflows`.
It was specified in the OpenAPI spec as returning a `[]*ActionWorkflow`,
but it actually should return a `api.ActionWorkflowResponse`.

The test already expects an `api.ActionWorkflowResponse` like expected.
This commit is contained in:
Scion authored and GitHub committed 2025-07-09 22:32:02 +08:00
1 parent 55f350542c
commit bb0c84e8c3
2 files changed
+21 -5

No files matched your search

+1 -1
View File
@@ -44,5 +44,5 @@ type swaggerResponseActionWorkflow struct {
// swagger:response ActionWorkflowList
type swaggerResponseActionWorkflowList struct {
// in:body
Body []api.ActionWorkflow `json:"body"`
Body api.ActionWorkflowResponse `json:"body"`
}