Upsource with Gitlab integration

Viewed 2737

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?

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.

Related