{"action":"created","comment":{"url":"https://api.github.com/repos/opf/openproject/pulls/comments/30034526","id":30034526,"diff_hunk":"@@ -0,0 +1,174 @@\n+#-- copyright\n+# OpenProject is a project management system.\n+# Copyright (C) 2012-2015 the OpenProject Foundation (OPF)\n+#\n+# This program is free software; you can redistribute it and/or\n+# modify it under the terms of the GNU General Public License version 3.\n+#\n+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:\n+# Copyright (C) 2006-2013 Jean-Philippe Lang\n+# Copyright (C) 2010-2013 the ChiliProject Team\n+#\n+# This program is free software; you can redistribute it and/or\n+# modify it under the terms of the GNU General Public License\n+# as published by the Free Software Foundation; either version 2\n+# of the License, or (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program; if not, write to the Free Software\n+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\n+#\n+# See doc/COPYRIGHT.rdoc for more details.\n+#++\n+\n+require 'spec_helper'\n+\n+describe API::V3, type: :request do\n+  describe 'basic auth' do\n+    let(:user) { FactoryGirl.create :user }\n+    let(:resource) { \"/api/v3/users/#{user.id}\"}","path":"spec/lib/api/v3/authentication_spec.rb","position":34,"original_position":34,"commit_id":"e40a1a85057aa5777e2bd338c5e09bd8a849d9de","original_commit_id":"311c0051420e633dfebd4506c6977f1b3e8d699b","user":{"login":"NobodysNightmare","id":453584,"avatar_url":"https://avatars.githubusercontent.com/u/453584?v=3","gravatar_id":"","url":"https://api.github.com/users/NobodysNightmare","html_url":"https://github.com/NobodysNightmare","followers_url":"https://api.github.com/users/NobodysNightmare/followers","following_url":"https://api.github.com/users/NobodysNightmare/following{/other_user}","gists_url":"https://api.github.com/users/NobodysNightmare/gists{/gist_id}","starred_url":"https://api.github.com/users/NobodysNightmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NobodysNightmare/subscriptions","organizations_url":"https://api.github.com/users/NobodysNightmare/orgs","repos_url":"https://api.github.com/users/NobodysNightmare/repos","events_url":"https://api.github.com/users/NobodysNightmare/events{/privacy}","received_events_url":"https://api.github.com/users/NobodysNightmare/received_events","type":"User","site_admin":false},"body":"@houndci is telling the truth @machisuji ","created_at":"2015-05-11T12:45:48Z","updated_at":"2015-05-11T12:45:48Z","html_url":"https://github.com/opf/openproject/pull/2978#discussion_r30034526","pull_request_url":"https://api.github.com/repos/opf/openproject/pulls/2978","_links":{"self":{"href":"https://api.github.com/repos/opf/openproject/pulls/comments/30034526"},"html":{"href":"https://github.com/opf/openproject/pull/2978#discussion_r30034526"},"pull_request":{"href":"https://api.github.com/repos/opf/openproject/pulls/2978"}}},"pull_request":{"url":"https://api.github.com/repos/opf/openproject/pulls/2978","id":35107003,"html_url":"https://github.com/opf/openproject/pull/2978","diff_url":"https://github.com/opf/openproject/pull/2978.diff","patch_url":"https://github.com/opf/openproject/pull/2978.patch","issue_url":"https://api.github.com/repos/opf/openproject/issues/2978","number":2978,"state":"open","locked":false,"title":"Feature: basic auth for API v3","user":{"login":"machisuji","id":158871,"avatar_url":"https://avatars.githubusercontent.com/u/158871?v=3","gravatar_id":"","url":"https://api.github.com/users/machisuji","html_url":"https://github.com/machisuji","followers_url":"https://api.github.com/users/machisuji/followers","following_url":"https://api.github.com/users/machisuji/following{/other_user}","gists_url":"https://api.github.com/users/machisuji/gists{/gist_id}","starred_url":"https://api.github.com/users/machisuji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machisuji/subscriptions","organizations_url":"https://api.github.com/users/machisuji/orgs","repos_url":"https://api.github.com/users/machisuji/repos","events_url":"https://api.github.com/users/machisuji/events{/privacy}","received_events_url":"https://api.github.com/users/machisuji/received_events","type":"User","site_admin":false},"body":"WP [#19294](https://community.openproject.org/work_packages/19294)","created_at":"2015-05-11T08:34:06Z","updated_at":"2015-05-11T12:45:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48be80c525ef12ede4c695763c8c400ec1acad4f","assignee":{"login":"NobodysNightmare","id":453584,"avatar_url":"https://avatars.githubusercontent.com/u/453584?v=3","gravatar_id":"","url":"https://api.github.com/users/NobodysNightmare","html_url":"https://github.com/NobodysNightmare","followers_url":"https://api.github.com/users/NobodysNightmare/followers","following_url":"https://api.github.com/users/NobodysNightmare/following{/other_user}","gists_url":"https://api.github.com/users/NobodysNightmare/gists{/gist_id}","starred_url":"https://api.github.com/users/NobodysNightmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NobodysNightmare/subscriptions","organizations_url":"https://api.github.com/users/NobodysNightmare/orgs","repos_url":"https://api.github.com/users/NobodysNightmare/repos","events_url":"https://api.github.com/users/NobodysNightmare/events{/privacy}","received_events_url":"https://api.github.com/users/NobodysNightmare/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/opf/openproject/pulls/2978/commits","review_comments_url":"https://api.github.com/repos/opf/openproject/pulls/2978/comments","review_comment_url":"https://api.github.com/repos/opf/openproject/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opf/openproject/issues/2978/comments","statuses_url":"https://api.github.com/repos/opf/openproject/statuses/e40a1a85057aa5777e2bd338c5e09bd8a849d9de","head":{"label":"machisuji:feature/basic_auth","ref":"feature/basic_auth","sha":"e40a1a85057aa5777e2bd338c5e09bd8a849d9de","user":{"login":"machisuji","id":158871,"avatar_url":"https://avatars.githubusercontent.com/u/158871?v=3","gravatar_id":"","url":"https://api.github.com/users/machisuji","html_url":"https://github.com/machisuji","followers_url":"https://api.github.com/users/machisuji/followers","following_url":"https://api.github.com/users/machisuji/following{/other_user}","gists_url":"https://api.github.com/users/machisuji/gists{/gist_id}","starred_url":"https://api.github.com/users/machisuji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machisuji/subscriptions","organizations_url":"https://api.github.com/users/machisuji/orgs","repos_url":"https://api.github.com/users/machisuji/repos","events_url":"https://api.github.com/users/machisuji/events{/privacy}","received_events_url":"https://api.github.com/users/machisuji/received_events","type":"User","site_admin":false},"repo":{"id":13411557,"name":"openproject","full_name":"machisuji/openproject","owner":{"login":"machisuji","id":158871,"avatar_url":"https://avatars.githubusercontent.com/u/158871?v=3","gravatar_id":"","url":"https://api.github.com/users/machisuji","html_url":"https://github.com/machisuji","followers_url":"https://api.github.com/users/machisuji/followers","following_url":"https://api.github.com/users/machisuji/following{/other_user}","gists_url":"https://api.github.com/users/machisuji/gists{/gist_id}","starred_url":"https://api.github.com/users/machisuji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machisuji/subscriptions","organizations_url":"https://api.github.com/users/machisuji/orgs","repos_url":"https://api.github.com/users/machisuji/repos","events_url":"https://api.github.com/users/machisuji/events{/privacy}","received_events_url":"https://api.github.com/users/machisuji/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/machisuji/openproject","description":"OpenProject is a web based project management system built on Ruby on Rails","fork":true,"url":"https://api.github.com/repos/machisuji/openproject","forks_url":"https://api.github.com/repos/machisuji/openproject/forks","keys_url":"https://api.github.com/repos/machisuji/openproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/machisuji/openproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/machisuji/openproject/teams","hooks_url":"https://api.github.com/repos/machisuji/openproject/hooks","issue_events_url":"https://api.github.com/repos/machisuji/openproject/issues/events{/number}","events_url":"https://api.github.com/repos/machisuji/openproject/events","assignees_url":"https://api.github.com/repos/machisuji/openproject/assignees{/user}","branches_url":"https://api.github.com/repos/machisuji/openproject/branches{/branch}","tags_url":"https://api.github.com/repos/machisuji/openproject/tags","blobs_url":"https://api.github.com/repos/machisuji/openproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/machisuji/openproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/machisuji/openproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/machisuji/openproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/machisuji/openproject/statuses/{sha}","languages_url":"https://api.github.com/repos/machisuji/openproject/languages","stargazers_url":"https://api.github.com/repos/machisuji/openproject/stargazers","contributors_url":"https://api.github.com/repos/machisuji/openproject/contributors","subscribers_url":"https://api.github.com/repos/machisuji/openproject/subscribers","subscription_url":"https://api.github.com/repos/machisuji/openproject/subscription","commits_url":"https://api.github.com/repos/machisuji/openproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/machisuji/openproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/machisuji/openproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/machisuji/openproject/issues/comments{/number}","contents_url":"https://api.github.com/repos/machisuji/openproject/contents/{+path}","compare_url":"https://api.github.com/repos/machisuji/openproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/machisuji/openproject/merges","archive_url":"https://api.github.com/repos/machisuji/openproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/machisuji/openproject/downloads","issues_url":"https://api.github.com/repos/machisuji/openproject/issues{/number}","pulls_url":"https://api.github.com/repos/machisuji/openproject/pulls{/number}","milestones_url":"https://api.github.com/repos/machisuji/openproject/milestones{/number}","notifications_url":"https://api.github.com/repos/machisuji/openproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/machisuji/openproject/labels{/name}","releases_url":"https://api.github.com/repos/machisuji/openproject/releases{/id}","created_at":"2013-10-08T11:29:35Z","updated_at":"2014-03-21T14:03:32Z","pushed_at":"2015-05-11T10:31:52Z","git_url":"git://github.com/machisuji/openproject.git","ssh_url":"git@github.com:machisuji/openproject.git","clone_url":"https://github.com/machisuji/openproject.git","svn_url":"https://github.com/machisuji/openproject","homepage":"https://openproject.org","size":63629,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"base":{"label":"opf:dev","ref":"dev","sha":"48ae8ac2bb6c8c39696a1e439bd6768a1c81e801","user":{"login":"opf","id":1756674,"avatar_url":"https://avatars.githubusercontent.com/u/1756674?v=3","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"repo":{"id":6899875,"name":"openproject","full_name":"opf/openproject","owner":{"login":"opf","id":1756674,"avatar_url":"https://avatars.githubusercontent.com/u/1756674?v=3","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opf/openproject","description":"OpenProject is a web-based project management system built on Ruby on Rails","fork":false,"url":"https://api.github.com/repos/opf/openproject","forks_url":"https://api.github.com/repos/opf/openproject/forks","keys_url":"https://api.github.com/repos/opf/openproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opf/openproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opf/openproject/teams","hooks_url":"https://api.github.com/repos/opf/openproject/hooks","issue_events_url":"https://api.github.com/repos/opf/openproject/issues/events{/number}","events_url":"https://api.github.com/repos/opf/openproject/events","assignees_url":"https://api.github.com/repos/opf/openproject/assignees{/user}","branches_url":"https://api.github.com/repos/opf/openproject/branches{/branch}","tags_url":"https://api.github.com/repos/opf/openproject/tags","blobs_url":"https://api.github.com/repos/opf/openproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opf/openproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opf/openproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/opf/openproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opf/openproject/statuses/{sha}","languages_url":"https://api.github.com/repos/opf/openproject/languages","stargazers_url":"https://api.github.com/repos/opf/openproject/stargazers","contributors_url":"https://api.github.com/repos/opf/openproject/contributors","subscribers_url":"https://api.github.com/repos/opf/openproject/subscribers","subscription_url":"https://api.github.com/repos/opf/openproject/subscription","commits_url":"https://api.github.com/repos/opf/openproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/opf/openproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/opf/openproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/opf/openproject/issues/comments{/number}","contents_url":"https://api.github.com/repos/opf/openproject/contents/{+path}","compare_url":"https://api.github.com/repos/opf/openproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opf/openproject/merges","archive_url":"https://api.github.com/repos/opf/openproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opf/openproject/downloads","issues_url":"https://api.github.com/repos/opf/openproject/issues{/number}","pulls_url":"https://api.github.com/repos/opf/openproject/pulls{/number}","milestones_url":"https://api.github.com/repos/opf/openproject/milestones{/number}","notifications_url":"https://api.github.com/repos/opf/openproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opf/openproject/labels{/name}","releases_url":"https://api.github.com/repos/opf/openproject/releases{/id}","created_at":"2012-11-28T09:59:11Z","updated_at":"2015-05-10T15:58:45Z","pushed_at":"2015-05-11T12:12:10Z","git_url":"git://github.com/opf/openproject.git","ssh_url":"git@github.com:opf/openproject.git","clone_url":"https://github.com/opf/openproject.git","svn_url":"https://github.com/opf/openproject","homepage":"https://www.openproject.org","size":193802,"stargazers_count":604,"watchers_count":604,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":264,"mirror_url":null,"open_issues_count":62,"forks":264,"open_issues":62,"watchers":604,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/opf/openproject/pulls/2978"},"html":{"href":"https://github.com/opf/openproject/pull/2978"},"issue":{"href":"https://api.github.com/repos/opf/openproject/issues/2978"},"comments":{"href":"https://api.github.com/repos/opf/openproject/issues/2978/comments"},"review_comments":{"href":"https://api.github.com/repos/opf/openproject/pulls/2978/comments"},"review_comment":{"href":"https://api.github.com/repos/opf/openproject/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opf/openproject/pulls/2978/commits"},"statuses":{"href":"https://api.github.com/repos/opf/openproject/statuses/e40a1a85057aa5777e2bd338c5e09bd8a849d9de"}}}}