Skip to content

Commit 5d9703d

Browse files
committed
fix: return 201 Created status for variable creation requests
- Change response status code from 204 No Content to 201 Created when creating a variable Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 427fe0d commit 5d9703d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/action.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ func (Action) CreateVariable(ctx *context.APIContext) {
373373
return
374374
}
375375

376-
ctx.Status(http.StatusNoContent)
376+
ctx.Status(http.StatusCreated)
377377
}
378378

379379
// UpdateVariable update a repo-level variable

0 commit comments

Comments
 (0)