Skip to content

Commit

Permalink
fix: reused swagger definition
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Jan 3, 2025
1 parent 261a3bb commit 34b2df3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions api/build/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/go-vela/server/router/middleware/build"
)

// swagger:operation GET /status/{org}/{repo}/{build} builds GetStatus
// swagger:operation GET /status/{org}/{repo}/{build} builds GetBuildStatus
//
// Get a build status
//
Expand Down Expand Up @@ -54,8 +54,8 @@ import (
// schema:
// "$ref": "#/definitions/Build"

// GetStatus represents the API handler to return "status", a lite representation of the resource with limited fields for unauthenticated access.
func GetStatus(c *gin.Context) {
// GetBuildStatus represents the API handler to return "status", a lite representation of the resource with limited fields for unauthenticated access.
func GetBuildStatus(c *gin.Context) {
// capture middleware values
l := c.MustGet("logger").(*logrus.Entry)
b := build.Retrieve(c)
Expand Down
6 changes: 3 additions & 3 deletions api/repo/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/go-vela/server/router/middleware/repo"
)

// swagger:operation GET /status/{org}/{repo} repos GetStatus
// swagger:operation GET /status/{org}/{repo} repos GetRepoStatus
//
// Get a repository status
//
Expand Down Expand Up @@ -49,8 +49,8 @@ import (
// schema:
// "$ref": "#/definitions/Repo"

// GetStatus represents the API handler to return "status", a lite representation of the resource with limited fields for unauthenticated access.
func GetStatus(c *gin.Context) {
// GetRepoStatus represents the API handler to return "status", a lite representation of the resource with limited fields for unauthenticated access.
func GetRepoStatus(c *gin.Context) {
// capture middleware values
l := c.MustGet("logger").(*logrus.Entry)
r := repo.Retrieve(c)
Expand Down

0 comments on commit 34b2df3

Please sign in to comment.