Skip to content

Cannot add repositories from Forgejo #686

@ProjectMoon

Description

@ProjectMoon

Which component(s) is affected?

Kubero UI

Describe the bug

When attempting to add a repository that is hosted on Forgejo, creation of the webook fails due to what I think is an inconsistency between Gitea and Forgejo's API. Specifically, the insecure_ssl value is undefined. Probably null coalescing to false will fix it.

Stack trace:

TypeError: Cannot read properties of undefined (reading 'insecure_ssl')
    at GiteaApi.addWebhook (/app/server/git/gitea.js:145:47)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async GiteaApi.connectRepo (/app/server/git/repo.js:109:23)
    at async /app/server/routes/repo.js:29:15

Steps to reproduce

  1. Go to create new pipeline.
  2. Enable build from source.
  3. Pick a gitea repo.
  4. Press connect.

Expected behavior

No error. Repo connects.

Screenshots

No response

Additional information

No response

Debug information

Can't run due to login issue (which is fixed in a very recent draft PR).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions