From 4446022552d99fcbbe333937342cfe15d6c6ab71 Mon Sep 17 00:00:00 2001 From: Bradley Grainger Date: Tue, 17 Apr 2012 22:56:25 -0700 Subject: [PATCH 1/4] Fix user login in example. --- lib/resources.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/resources.rb b/lib/resources.rb index cc8325fb38..93f32b4590 100644 --- a/lib/resources.rb +++ b/lib/resources.rb @@ -277,8 +277,8 @@ def json(key) "additions" => 103, "deletions" => 21, "changes" => 124, - "blob_url" => "https://github.com/octocate/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt", - "raw_url" => "https://github.com/octocate/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt", + "blob_url" => "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt", + "raw_url" => "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt", "patch" => "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test" } From a4fbb82be7816dd15daf232664314e5f6e4af730 Mon Sep 17 00:00:00 2001 From: Bradley Grainger Date: Tue, 17 Apr 2012 23:00:52 -0700 Subject: [PATCH 2/4] Fix 'url' example for commit comment response. --- lib/resources.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resources.rb b/lib/resources.rb index 93f32b4590..4a95ad4373 100644 --- a/lib/resources.rb +++ b/lib/resources.rb @@ -259,7 +259,7 @@ def json(key) }) COMMIT_COMMENT = { - "url" => "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1", + "url" => "https://api.github.com/repos/octocat/Hello-World/comments/1", "id" => 1, "body" => "Great stuff", "path" => "file1.txt", From 140f513a482b3fd51e5ea2b55e11defb3c6c4be5 Mon Sep 17 00:00:00 2001 From: Bradley Grainger Date: Tue, 17 Apr 2012 23:02:08 -0700 Subject: [PATCH 3/4] Add 'line' value to commit comment response. Note that the 'line' value will often be greater than the 'position' value. --- lib/resources.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/resources.rb b/lib/resources.rb index 4a95ad4373..b52cd4a70a 100644 --- a/lib/resources.rb +++ b/lib/resources.rb @@ -264,6 +264,7 @@ def json(key) "body" => "Great stuff", "path" => "file1.txt", "position" => 4, + "line" => 14, "commit_id" => "6dcb09b5b57875f334f61aebed695e2e4193db5e", "user" => USER, "created_at" => "2011-04-14T16:00:49Z", From 2856bade7dee6d9aa9aceb7bd93dbedb9461a208 Mon Sep 17 00:00:00 2001 From: Bradley Grainger Date: Tue, 17 Apr 2012 23:04:50 -0700 Subject: [PATCH 4/4] Add missing 'html_url' to example commit comment response. --- lib/resources.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/resources.rb b/lib/resources.rb index b52cd4a70a..57d95bc744 100644 --- a/lib/resources.rb +++ b/lib/resources.rb @@ -259,6 +259,7 @@ def json(key) }) COMMIT_COMMENT = { + "html_url" => "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1", "url" => "https://api.github.com/repos/octocat/Hello-World/comments/1", "id" => 1, "body" => "Great stuff", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy