GitHub PullRequestReviewCommentEvent at 2014-07-24 06:24:19
Repository: openproject
Actor: myabc
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/opf/openproject/pulls/comments/15331555","id":15331555,"diff_hunk":"@@ -0,0 +1,18 @@\n+class Services::CreateRelation\n+  def initialize(from_work_package, to_work_package, attrs = {})\n+    @relation = from_work_package.new_relation.tap do |r|\n+      r.to = to_work_package\n+      r.relation_type = attrs[:relation_type]\n+      r.delay = attrs[:delay]\n+    end\n+  end\n+\n+  def run(success = -> {}, failure = -> {})\n+    if @relation.save\n+      success.(created: true)\n+    else\n+      binding.pry","path":"lib/services/create_relation.rb","position":14,"original_position":14,"commit_id":"1d08901a99a984a9d25ff6be1f25516247277223","original_commit_id":"1d08901a99a984a9d25ff6be1f25516247277223","user":{"login":"myabc","id":755,"avatar_url":"https://avatars.githubusercontent.com/u/755?","gravatar_id":"9b1a71682de14fc6fc2b944a9c4814a0","url":"https://api.github.com/users/myabc","html_url":"https://github.com/myabc","followers_url":"https://api.github.com/users/myabc/followers","following_url":"https://api.github.com/users/myabc/following{/other_user}","gists_url":"https://api.github.com/users/myabc/gists{/gist_id}","starred_url":"https://api.github.com/users/myabc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myabc/subscriptions","organizations_url":"https://api.github.com/users/myabc/orgs","repos_url":"https://api.github.com/users/myabc/repos","events_url":"https://api.github.com/users/myabc/events{/privacy}","received_events_url":"https://api.github.com/users/myabc/received_events","type":"User","site_admin":false},"body":"debugging statement shouldn't have been committed.","created_at":"2014-07-24T06:24:19Z","updated_at":"2014-07-24T06:24:19Z","html_url":"https://github.com/opf/openproject/pull/1641#discussion_r15331555","pull_request_url":"https://api.github.com/repos/opf/openproject/pulls/1641","_links":{"self":{"href":"https://api.github.com/repos/opf/openproject/pulls/comments/15331555"},"html":{"href":"https://github.com/opf/openproject/pull/1641#discussion_r15331555"},"pull_request":{"href":"https://api.github.com/repos/opf/openproject/pulls/1641"}}},"pull_request":{"url":"https://api.github.com/repos/opf/openproject/pulls/1641","id":18766841,"html_url":"https://github.com/opf/openproject/pull/1641","diff_url":"https://github.com/opf/openproject/pull/1641.diff","patch_url":"https://github.com/opf/openproject/pull/1641.patch","issue_url":"https://api.github.com/repos/opf/openproject/issues/1641","number":1641,"state":"open","title":"Feature/api create and delete relationship","user":{"login":"mtakac","id":947727,"avatar_url":"https://avatars.githubusercontent.com/u/947727?","gravatar_id":"0e18c3dacb8866c5a896eba3ef9c4636","url":"https://api.github.com/users/mtakac","html_url":"https://github.com/mtakac","followers_url":"https://api.github.com/users/mtakac/followers","following_url":"https://api.github.com/users/mtakac/following{/other_user}","gists_url":"https://api.github.com/users/mtakac/gists{/gist_id}","starred_url":"https://api.github.com/users/mtakac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtakac/subscriptions","organizations_url":"https://api.github.com/users/mtakac/orgs","repos_url":"https://api.github.com/users/mtakac/repos","events_url":"https://api.github.com/users/mtakac/events{/privacy}","received_events_url":"https://api.github.com/users/mtakac/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-07-23T10:12:18Z","updated_at":"2014-07-24T06:24:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31528c246d811ef55b2b5ca865b38572ea37f208","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opf/openproject/pulls/1641/commits","review_comments_url":"https://api.github.com/repos/opf/openproject/pulls/1641/comments","review_comment_url":"https://api.github.com/repos/opf/openproject/pulls/comments/{number}","comments_url":"https://api.github.com/repos/opf/openproject/issues/1641/comments","statuses_url":"https://api.github.com/repos/opf/openproject/statuses/1d08901a99a984a9d25ff6be1f25516247277223","head":{"label":"opf:feature/api-create-and-delete-relationship","ref":"feature/api-create-and-delete-relationship","sha":"1d08901a99a984a9d25ff6be1f25516247277223","user":{"login":"opf","id":1756674,"avatar_url":"https://avatars.githubusercontent.com/u/1756674?","gravatar_id":"5bbd957d96ff8bf94937a799938e1d62","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?","gravatar_id":"5bbd957d96ff8bf94937a799938e1d62","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":"2014-07-23T06:22:30Z","pushed_at":"2014-07-23T16:09:36Z","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://openproject.org","size":150020,"stargazers_count":274,"watchers_count":274,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"forks_count":134,"mirror_url":null,"open_issues_count":30,"forks":134,"open_issues":30,"watchers":274,"default_branch":"dev"}},"base":{"label":"opf:dev","ref":"dev","sha":"c7ea0a0676bb110e1299f4ca3d699c9e915a1c3f","user":{"login":"opf","id":1756674,"avatar_url":"https://avatars.githubusercontent.com/u/1756674?","gravatar_id":"5bbd957d96ff8bf94937a799938e1d62","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?","gravatar_id":"5bbd957d96ff8bf94937a799938e1d62","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":"2014-07-23T06:22:30Z","pushed_at":"2014-07-23T16:09:36Z","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://openproject.org","size":150020,"stargazers_count":274,"watchers_count":274,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"forks_count":134,"mirror_url":null,"open_issues_count":30,"forks":134,"open_issues":30,"watchers":274,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/opf/openproject/pulls/1641"},"html":{"href":"https://github.com/opf/openproject/pull/1641"},"issue":{"href":"https://api.github.com/repos/opf/openproject/issues/1641"},"comments":{"href":"https://api.github.com/repos/opf/openproject/issues/1641/comments"},"review_comments":{"href":"https://api.github.com/repos/opf/openproject/pulls/1641/comments"},"review_comment":{"href":"https://api.github.com/repos/opf/openproject/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/opf/openproject/pulls/1641/commits"},"statuses":{"href":"https://api.github.com/repos/opf/openproject/statuses/1d08901a99a984a9d25ff6be1f25516247277223"}}}}