@@ -55,7 +55,7 @@ type updateRefRequest struct {
55
55
// GitHub API docs: https://docs.github.com/rest/git/refs#get-a-reference
56
56
//
57
57
//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 ) {
59
59
ref = strings .TrimPrefix (ref , "refs/" )
60
60
u := fmt .Sprintf ("repos/%v/%v/git/ref/%v" , owner , repo , refURLEscape (ref ))
61
61
req , err := s .client .NewRequest ("GET" , u , nil )
@@ -127,7 +127,7 @@ func (s *GitService) ListMatchingRefs(ctx context.Context, owner, repo string, o
127
127
// GitHub API docs: https://docs.github.com/rest/git/refs#create-a-reference
128
128
//
129
129
//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 ) {
131
131
if ref == nil {
132
132
return nil , nil , errors .New ("reference must be provided" )
133
133
}
@@ -159,7 +159,7 @@ func (s *GitService) CreateRef(ctx context.Context, owner string, repo string, r
159
159
// GitHub API docs: https://docs.github.com/rest/git/refs#update-a-reference
160
160
//
161
161
//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 ) {
163
163
if ref == nil {
164
164
return nil , nil , errors .New ("reference must be provided" )
165
165
}
@@ -191,7 +191,7 @@ func (s *GitService) UpdateRef(ctx context.Context, owner string, repo string, r
191
191
// GitHub API docs: https://docs.github.com/rest/git/refs#delete-a-reference
192
192
//
193
193
//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 ) {
195
195
ref = strings .TrimPrefix (ref , "refs/" )
196
196
u := fmt .Sprintf ("repos/%v/%v/git/refs/%v" , owner , repo , refURLEscape (ref ))
197
197
req , err := s .client .NewRequest ("DELETE" , u , nil )
0 commit comments