diff --git a/content/v3/git/refs.md b/content/v3/git/refs.md index 6c98433745..5319af3829 100644 --- a/content/v3/git/refs.md +++ b/content/v3/git/refs.md @@ -58,7 +58,7 @@ sha ### Response <%= headers 201 %> -<%= json :refs %> +<%= json :ref %> ## Update a Reference diff --git a/lib/resources.rb b/lib/resources.rb index b14c04732d..3df655b455 100644 --- a/lib/resources.rb +++ b/lib/resources.rb @@ -718,17 +718,15 @@ def json(key) } } - REF = [ - { - "ref" => "refs/heads/sc/featureA", - "url" => "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/sc/featureA", - "object" => { - "type" => "commit", - "sha" => "aa218f56b14c9653891f9e74264a383fa43fefbd", - "url" => "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd" - } + REF = { + "ref" => "refs/heads/sc/featureA", + "url" => "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/sc/featureA", + "object" => { + "type" => "commit", + "sha" => "aa218f56b14c9653891f9e74264a383fa43fefbd", + "url" => "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd" } - ] + } REFS = [ {