This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 2c15ad880 fix(teambition): declare TeambitionRepo struct for Swagger 
(#8483)
2c15ad880 is described below

commit 2c15ad880dce830c6512fa58039527cbf4745b8b
Author: khsadira <34449426+khsad...@users.noreply.github.com>
AuthorDate: Mon Jun 30 11:18:46 2025 +0200

    fix(teambition): declare TeambitionRepo struct for Swagger (#8483)
---
 backend/plugins/teambition/api/scope_api.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/backend/plugins/teambition/api/scope_api.go 
b/backend/plugins/teambition/api/scope_api.go
index 918297269..495cfc88f 100644
--- a/backend/plugins/teambition/api/scope_api.go
+++ b/backend/plugins/teambition/api/scope_api.go
@@ -34,7 +34,7 @@ type ScopeDetail api.ScopeDetail[models.TeambitionProject, 
models.TeambitionScop
 // @Accept application/json
 // @Param connectionId path int true "connection ID"
 // @Param scope body PutScopesReqBody true "json"
-// @Success 200  {object} []models.teambitionRepo
+// @Success 200  {object} []models.TeambitionProject
 // @Failure 400  {object} shared.ApiBody "Bad Request"
 // @Failure 500  {object} shared.ApiBody "Internal Error"
 // @Router /plugins/teambition/connections/{connectionId}/scopes [PUT]
@@ -49,8 +49,8 @@ func PutScopes(input *plugin.ApiResourceInput) 
(*plugin.ApiResourceOutput, error
 // @Accept application/json
 // @Param connectionId path int true "connection ID"
 // @Param scopeId path int true "scope ID"
-// @Param scope body models.teambitionRepo true "json"
-// @Success 200  {object} models.teambitionRepo
+// @Param scope body models.TeambitionProject true "json"
+// @Success 200  {object} models.TeambitionProject
 // @Failure 400  {object} shared.ApiBody "Bad Request"
 // @Failure 500  {object} shared.ApiBody "Internal Error"
 // @Router /plugins/teambition/connections/{connectionId}/scopes/{scopeId} 
[PATCH]
@@ -97,7 +97,7 @@ func GetScope(input *plugin.ApiResourceInput) 
(*plugin.ApiResourceOutput, errors
 // @Param connectionId path int true "connection ID"
 // @Param scopeId path int true "scope ID"
 // @Param delete_data_only query bool false "Only delete the scope data, not 
the scope itself"
-// @Success 200  {object} models.teambitionRepo
+// @Success 200  {object} models.TeambitionProject
 // @Failure 400  {object} shared.ApiBody "Bad Request"
 // @Failure 409  {object} srvhelper.DsRefs "References exist to this scope"
 // @Failure 500  {object} shared.ApiBody "Internal Error"

Reply via email to