{"action":"created","issue":{"url":"https://api.github.com/repos/huboard/ghee/issues/37","labels_url":"https://api.github.com/repos/huboard/ghee/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/huboard/ghee/issues/37/comments","events_url":"https://api.github.com/repos/huboard/ghee/issues/37/events","html_url":"https://github.com/huboard/ghee/pull/37","id":119883435,"number":37,"title":"WIP: Support GitLab API","user":{"login":"stanhu","id":963826,"avatar_url":"https://avatars.githubusercontent.com/u/963826?v=3","gravatar_id":"","url":"https://api.github.com/users/stanhu","html_url":"https://github.com/stanhu","followers_url":"https://api.github.com/users/stanhu/followers","following_url":"https://api.github.com/users/stanhu/following{/other_user}","gists_url":"https://api.github.com/users/stanhu/gists{/gist_id}","starred_url":"https://api.github.com/users/stanhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanhu/subscriptions","organizations_url":"https://api.github.com/users/stanhu/orgs","repos_url":"https://api.github.com/users/stanhu/repos","events_url":"https://api.github.com/users/stanhu/events{/privacy}","received_events_url":"https://api.github.com/users/stanhu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/huboard/ghee/labels/GitLab","name":"GitLab","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-02T07:23:44Z","updated_at":"2015-12-02T18:59:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/huboard/ghee/pulls/37","html_url":"https://github.com/huboard/ghee/pull/37","diff_url":"https://github.com/huboard/ghee/pull/37.diff","patch_url":"https://github.com/huboard/ghee/pull/37.patch"},"body":"This is the beginnings of supporting the GitLab API. The first test was to implement `Ghee.repos`. Here is a start. Notice that the endpoints are quite different:\r\n\r\nGitHub: https://developer.github.com/v3/repos/#response\r\n\r\nGitLab: https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md#list-projects\r\n\r\nSee #26\r\n"},"comment":{"url":"https://api.github.com/repos/huboard/ghee/issues/comments/161398604","html_url":"https://github.com/huboard/ghee/pull/37#issuecomment-161398604","issue_url":"https://api.github.com/repos/huboard/ghee/issues/37","id":161398604,"user":{"login":"rauhryan","id":68954,"avatar_url":"https://avatars.githubusercontent.com/u/68954?v=3","gravatar_id":"","url":"https://api.github.com/users/rauhryan","html_url":"https://github.com/rauhryan","followers_url":"https://api.github.com/users/rauhryan/followers","following_url":"https://api.github.com/users/rauhryan/following{/other_user}","gists_url":"https://api.github.com/users/rauhryan/gists{/gist_id}","starred_url":"https://api.github.com/users/rauhryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rauhryan/subscriptions","organizations_url":"https://api.github.com/users/rauhryan/orgs","repos_url":"https://api.github.com/users/rauhryan/repos","events_url":"https://api.github.com/users/rauhryan/events{/privacy}","received_events_url":"https://api.github.com/users/rauhryan/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T18:59:29Z","updated_at":"2015-12-02T18:59:29Z","body":"Sooo, in an ideal world...\r\n\r\nhuboard-web changes very little\r\n\r\nmy vision would require two changes to huboard-web\r\n\r\n1. Gemfile\r\n`gem 'ghee', require: nil`\r\n\r\n2. ./config/application.rb\r\n\r\n```\r\nif ENV[\"HUBOARD_BACKEND\"] == \"github\"\r\n    require 'ghee/github'\r\nelse\r\n    require 'ghee/gitlab'\r\nend\r\n```\r\n\r\nIn a perfect world, nothing would change other than config values in HuBoard, all the abstractions would live in Ghee\r\n\r\n"}}