Add support for GitLab as a hosting service.

Review Request #5222 — Created Jan. 8, 2014 and submitted

Information

Review Board
release-1.7.x

Reviewers

Add support for GitLab as a hosting service.

This adds support for the GitLab code hosting service. This is an open
source alternative to GitHub that supports Git repositories, issue
tracking, and more.

GitLab support takes advantage of plans. There are only two: "personal"
and "group".

The GitLab API, while mostly straight-forward, has some quirks. One of
those quirks essentially prevents us from supporting more than 100
repositories in an install (as lookups will fail). This hopefully won't
impact most people.

  • Unit tests pass.

  • Added a personal repository and a group repository. Both worked.

  • Posted code changes to both successfully.

  • Tested error conditions for:

  • Invalid username
  • Invalid password
  • Invalid hosting URL
  • Missing repository on personal and group plans.
  • File not found errors.
david
  1. 
      
  2. reviewboard/hostingsvcs/gitlab.py (Diff revision 1)
     
     

    Don't forget to add the unicode_literals include when you port this to master.

  3. 
      
chipx86
Review request changed
Status:
Completed