mirror of
https://codeberg.org/forgejo/forgejo
synced 2025-10-21 15:40:40 +02:00
PR for #9407 Endpoints compliant with github api spec: https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28 ## Checklist The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org). ### Tests - I added test coverage for Go changes... - [ ] in their respective `*_test.go` for unit tests. - [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server. - I added test coverage for JavaScript changes... - [ ] in `web_src/js/*.test.js` if it can be unit tested. - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)). ### Documentation - [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change. - [ ] I did not document these changes and I do not expect someone else to do it. ### Release notes - [ ] I do not want this change to show in the release notes. - [x] I want the title to show in the release notes with a link to this pull request. - [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title. Co-authored-by: Manuel Ganter <manuel.ganter@think-ahead.tech> Co-authored-by: Martin McCaffery <martin.mccaffery@think-ahead.tech> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9409 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Daniel Sy <Daniel.Sy@telekom.de> Co-committed-by: Daniel Sy <Daniel.Sy@telekom.de>
72 lines
1.6 KiB
Go
72 lines
1.6 KiB
Go
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package swagger
|
|
|
|
import (
|
|
api "forgejo.org/modules/structs"
|
|
shared "forgejo.org/routers/api/v1/shared"
|
|
)
|
|
|
|
// SecretList
|
|
// swagger:response SecretList
|
|
type swaggerResponseSecretList struct {
|
|
// in:body
|
|
Body []api.Secret `json:"body"`
|
|
}
|
|
|
|
// Secret
|
|
// swagger:response Secret
|
|
type swaggerResponseSecret struct {
|
|
// in:body
|
|
Body api.Secret `json:"body"`
|
|
}
|
|
|
|
// ActionVariable
|
|
// swagger:response ActionVariable
|
|
type swaggerResponseActionVariable struct {
|
|
// in:body
|
|
Body api.ActionVariable `json:"body"`
|
|
}
|
|
|
|
// VariableList
|
|
// swagger:response VariableList
|
|
type swaggerResponseVariableList struct {
|
|
// in:body
|
|
Body []api.ActionVariable `json:"body"`
|
|
}
|
|
|
|
// RunJobList is a list of action run jobs
|
|
// swagger:response RunJobList
|
|
type swaggerRunJobList struct {
|
|
// in:body
|
|
Body []*api.ActionRunJob `json:"body"`
|
|
}
|
|
|
|
// DispatchWorkflowRun is a Workflow Run after dispatching
|
|
// swagger:response DispatchWorkflowRun
|
|
type swaggerDispatchWorkflowRun struct {
|
|
// in:body
|
|
Body *api.DispatchWorkflowRun `json:"body"`
|
|
}
|
|
|
|
// RegistrationToken is a string used to register a runner with a server
|
|
// swagger:response RegistrationToken
|
|
type swaggerRegistrationToken struct {
|
|
// in: body
|
|
Body shared.RegistrationToken `json:"body"`
|
|
}
|
|
|
|
// ActionRunner represents a Runner
|
|
// swagger:response ActionRunner
|
|
type swaggerActionRunner struct {
|
|
// in: body
|
|
Body api.ActionRunner `json:"body"`
|
|
}
|
|
|
|
// ActionRunnersResponse returns Runners
|
|
// swagger:response ActionRunnersResponse
|
|
type swaggerActionRunnerResponse struct {
|
|
// in: body
|
|
Body api.ActionRunnersResponse `json:"body"`
|
|
}
|