Skip to content

[Bug][Teambition] Swagger generation fails: cannot find type definition models.TeambitionRepo #8482

@khsadira

Description

@khsadira

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

When attempting to build DevLake with the teambition plugin enabled, the Swagger documentation generation step (swag init) fails due to a missing type reference in the file scope_api.go.

Specifically, the comment annotations reference models.TeambitionRepo, but the type is either undefined or not properly exported/imported. This causes swag to fail and abort the make all process, preventing successful Docker builds or local development.

Having the following error while in the CI also:

209.8 2025/06/25 07:18:45 ParseComment error in file /app/plugins/teambition/api/scope_api.go :cannot find type definition: models.teambitionRepo
209.8 make: *** [Makefile:46: swag] Error 1
------
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Dockerfile:93

What do you expect to happen

The CI should correctly build.

How to reproduce

  1. Set GO_PLUGINS=teambition
  2. Run make all (or make swag)
  3. Observe the error related to missing type definition during Swagger generation

Anything else

happening since:
691b14f

Version

691b14f

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/pluginsThis issue or PR relates to pluginsseverity/p1This bug affects functionality or significantly affect uxtype/bugThis issue is a bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions