@@ -55,7 +55,7 @@ type updateRefRequest struct {
5555// GitHub API docs: https://docs.github.com/rest/git/refs#get-a-reference
5656//
5757//meta:operation GET /repos/{owner}/{repo}/git/ref/{ref}
58- func (s * GitService ) GetRef (ctx context.Context , owner string , repo string , ref string ) (* Reference , * Response , error ) {
58+ func (s * GitService ) GetRef (ctx context.Context , owner , repo , ref string ) (* Reference , * Response , error ) {
5959 ref = strings .TrimPrefix (ref , "refs/" )
6060 u := fmt .Sprintf ("repos/%v/%v/git/ref/%v" , owner , repo , refURLEscape (ref ))
6161 req , err := s .client .NewRequest ("GET" , u , nil )
@@ -127,7 +127,7 @@ func (s *GitService) ListMatchingRefs(ctx context.Context, owner, repo string, o
127127// GitHub API docs: https://docs.github.com/rest/git/refs#create-a-reference
128128//
129129//meta:operation POST /repos/{owner}/{repo}/git/refs
130- func (s * GitService ) CreateRef (ctx context.Context , owner string , repo string , ref * Reference ) (* Reference , * Response , error ) {
130+ func (s * GitService ) CreateRef (ctx context.Context , owner , repo string , ref * Reference ) (* Reference , * Response , error ) {
131131 if ref == nil {
132132 return nil , nil , errors .New ("reference must be provided" )
133133 }
@@ -159,7 +159,7 @@ func (s *GitService) CreateRef(ctx context.Context, owner string, repo string, r
159159// GitHub API docs: https://docs.github.com/rest/git/refs#update-a-reference
160160//
161161//meta:operation PATCH /repos/{owner}/{repo}/git/refs/{ref}
162- func (s * GitService ) UpdateRef (ctx context.Context , owner string , repo string , ref * Reference , force bool ) (* Reference , * Response , error ) {
162+ func (s * GitService ) UpdateRef (ctx context.Context , owner , repo string , ref * Reference , force bool ) (* Reference , * Response , error ) {
163163 if ref == nil {
164164 return nil , nil , errors .New ("reference must be provided" )
165165 }
@@ -191,7 +191,7 @@ func (s *GitService) UpdateRef(ctx context.Context, owner string, repo string, r
191191// GitHub API docs: https://docs.github.com/rest/git/refs#delete-a-reference
192192//
193193//meta:operation DELETE /repos/{owner}/{repo}/git/refs/{ref}
194- func (s * GitService ) DeleteRef (ctx context.Context , owner string , repo string , ref string ) (* Response , error ) {
194+ func (s * GitService ) DeleteRef (ctx context.Context , owner , repo , ref string ) (* Response , error ) {
195195 ref = strings .TrimPrefix (ref , "refs/" )
196196 u := fmt .Sprintf ("repos/%v/%v/git/refs/%v" , owner , repo , refURLEscape (ref ))
197197 req , err := s .client .NewRequest ("DELETE" , u , nil )
0 commit comments