Open loveloki opened 4 days ago
Managed to reproduce this when creating a project config from a gitlab fork and then trying to create a project from that config.
Managed to reproduce this when creating a project config from a gitlab fork and then trying to create a project from that config.
Okay, this is not actually the same issue. We can disregard that here.
@loveloki If you look at how we fetch PRs here, you'll notice that we go through them and then find the source repository of the PR so we can construct the appropriate repo object. Does the upstream repo you're referring to, have PRs open that are from other repos that you might not have access to?
@Tpuljak yes, there are a lot of PRs in the upstream repository, and there are many contributors whose repositories I don't have access to.
But what does this have to do with building my repository?
@Tpuljak yes, there are a lot of PRs in the upstream repository, and there are many contributors whose repositories I don't have access to.
But what does this have to do with building my repository?
Okay, that seems to be the issue. Because, to list all PRs, we need to get all the source projects to correctly display the UI and to correctly construct the repo object, you need to have access to it. We will fix that in a way that, if you don't have access to that project, that PR is simply omitted from the list. We'll have it for tomorrow's release.
@loveloki Do you mind giving this PR a spin? We would love to push a fix for this.
To do this, you can stop your active Daytona server, clone the repo locally and check out to the branch gitlab-merge-request-access
then run the server there (go run cmd/daytona/main.go serve
).
Your configuration should be loaded automatically and you can try running the daytona create
command
Describe the bug
To Reproduce Steps to reproduce the behavior:
daytona create <upstram>
Expected behavior
Can create upstram repos.
Desktop (please complete the following information):
Additional context
the logs is this:
Like above logs, The repo ID is
2427
, but2449
is used in the api.And
daytona create <upstream_url>
have the same error.