Fix API parameter name

This commit is contained in:
Lunny Xiao 2024-12-17 21:39:56 -08:00
parent 4a1d263133
commit 43d616d3cd
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
5 changed files with 7 additions and 7 deletions

View File

@ -18,7 +18,7 @@ func GetRegistrationToken(ctx *context.APIContext) {
// produces:
// - application/json
// parameters:
// - name: set-token
// - name: set_token
// in: body
// description: set a runner register token instead of generating one.
// type: string

View File

@ -182,7 +182,7 @@ func (Action) GetRegistrationToken(ctx *context.APIContext) {
// description: name of the organization
// type: string
// required: true
// - name: set-token
// - name: set_token
// in: body
// description: set a runner register token instead of generating one.
// type: string

View File

@ -500,7 +500,7 @@ func (Action) GetRegistrationToken(ctx *context.APIContext) {
// description: name of the repo
// type: string
// required: true
// - name: set-token
// - name: set_token
// in: body
// description: set a runner register token instead of generating one.
// type: string

View File

@ -19,7 +19,7 @@ type RegistrationToken struct {
}
func GetRegistrationToken(ctx *context.APIContext, ownerID, repoID int64) {
setToken := ctx.FormString("set-token")
setToken := ctx.FormString("set_token")
var token *actions_model.ActionRunnerToken
var err error
if setToken == "" {

View File

@ -406,7 +406,7 @@
{
"type": "string",
"description": "set a runner register token instead of generating one.",
"name": "set-token",
"name": "set_token",
"in": "body"
}
],
@ -1714,7 +1714,7 @@
{
"type": "string",
"description": "set a runner register token instead of generating one.",
"name": "set-token",
"name": "set_token",
"in": "body"
}
],
@ -3909,7 +3909,7 @@
{
"type": "string",
"description": "set a runner register token instead of generating one.",
"name": "set-token",
"name": "set_token",
"in": "body"
}
],