File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858### Response
5959
6060<%= headers 201 %>
61- <%= json : refs %>
61+ <%= json : ref %>
6262
6363## Update a Reference
6464
Original file line number Diff line number Diff line change @@ -718,17 +718,15 @@ def json(key)
718718 }
719719 }
720720
721- REF = [
722- {
723- "ref" => "refs/heads/sc/featureA" ,
724- "url" => "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/sc/featureA" ,
725- "object" => {
726- "type" => "commit" ,
727- "sha" => "aa218f56b14c9653891f9e74264a383fa43fefbd" ,
728- "url" => "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd"
729- }
721+ REF = {
722+ "ref" => "refs/heads/sc/featureA" ,
723+ "url" => "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/sc/featureA" ,
724+ "object" => {
725+ "type" => "commit" ,
726+ "sha" => "aa218f56b14c9653891f9e74264a383fa43fefbd" ,
727+ "url" => "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd"
730728 }
731- ]
729+ }
732730
733731 REFS = [
734732 {
You can’t perform that action at this time.
0 commit comments