Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upsource with Gitlab integration

I need Gitlab integration in Upsource, something similar to available Github integration. As there is no feature for this yet, I've tried to write simple proxy which 'translates' request to Github API for Gitlab API. Similarly it translates response. The main idea is to configure project as Github project but in fact hide Gitlab behind my proxy. It started to work, e.g. in obtaining oauth token process. It works for obtaining commits and comments as well. However I have a problem with retrieving pull requests. In upsource-frontend logs I found following warning:

Head not found for pull request

I filled fields for head object in response (according to Github API docs) but it still doesn't work. Maybe you could tell me what is needed by Upsource in response to getting pull requests?

like image 234
lukjar Avatar asked Jul 07 '17 09:07

lukjar


People also ask

Does Intellij support GitLab?

It works with both GitLab SaaS and GitLab Self-Managed (12. x or later). Basic features: Review merge requests right in your favorite IDE, leave comments, create tasks.

What is sync in GitLab?

GitLab Sync. Last modified on September 29, 2022. You use the GitLab integration settings to synchronize your API definition, auto-generated server code, or client SDK with an existing repository on GitLab. The synchronization is made every time you save the API in SwaggerHub.

How do I open a GitLab project in PyCharm?

After creating a new project on GitLab, we go to PyCharm. Search Plugins in PyCharm's Settings menu. Then, search for GitLab Projects and install it.


1 Answers

Upsource developer here. You've done great work!

Head not found for pull request

This means that Upsource doesn't see this pull request in Git. What repository is Upsource looking at?

By the way, GitLab integration is one of our main priorities now, though GitLab API is not as rich as GitHub, so we won't be able to implement full sync link for GitHub.

Update: GitLab integration, which includes comments syncronization and merge action, is released in Upsource 2017.3.

like image 132
Maxim Avatar answered Oct 08 '22 23:10

Maxim