Skip to content

Commit d8207a1

Browse files
committed
Fixing url in tree object to correct /repos url
1 parent 3f41d9b commit d8207a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/resources.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -784,27 +784,27 @@ def text_html(response, status, head = {})
784784

785785
TREE = {
786786
"sha" => "9fb037999f264ba9a7fc6274d15fa3ae2ab98312",
787-
"url" => "https://api.github.com/repo/octocat/Hello-World/trees/9fb037999f264ba9a7fc6274d15fa3ae2ab98312",
787+
"url" => "https://api.github.com/repos/octocat/Hello-World/trees/9fb037999f264ba9a7fc6274d15fa3ae2ab98312",
788788
"tree" => [
789789
{ "path" => "file.rb",
790790
"mode" => "100644",
791791
"type" => "blob",
792792
"size" => 30,
793793
"sha" => "44b4fc6d56897b048c772eb4087f854f46256132",
794-
"url" => "https://api.github.com/octocat/Hello-World/git/blobs/44b4fc6d56897b048c772eb4087f854f46256132",
794+
"url" => "https://api.github.com/repos/octocat/Hello-World/git/blobs/44b4fc6d56897b048c772eb4087f854f46256132",
795795
},
796796
{ "path" => "subdir",
797797
"mode" => "040000",
798798
"type" => "tree",
799799
"sha" => "f484d249c660418515fb01c2b9662073663c242e",
800-
"url" => "https://api.github.com/octocat/Hello-World/git/blobs/f484d249c660418515fb01c2b9662073663c242e"
800+
"url" => "https://api.github.com/repos/octocat/Hello-World/git/blobs/f484d249c660418515fb01c2b9662073663c242e"
801801
},
802802
{ "path" => "exec_file",
803803
"mode" => "100755",
804804
"type" => "blob",
805805
"size" => 75,
806806
"sha" => "45b983be36b73c0788dc9cbcb76cbb80fc7bb057",
807-
"url" => "https://api.github.com/octocat/Hello-World/git/blobs/45b983be36b73c0788dc9cbcb76cbb80fc7bb057",
807+
"url" => "https://api.github.com/repos/octocat/Hello-World/git/blobs/45b983be36b73c0788dc9cbcb76cbb80fc7bb057",
808808
}
809809
]
810810
}

0 commit comments

Comments
 (0)