@@ -21,7 +21,7 @@ func TestPrivateRegistriesService_ListOrganizationPrivateRegistries(t *testing.T
2121
2222 mux .HandleFunc ("/orgs/o/private-registries" , func (w http.ResponseWriter , r * http.Request ) {
2323 testMethod (t , r , "GET" )
24- testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
24+ testHeader (t , r , "X-Github-Api-Version" , api20260310 )
2525 testFormValues (t , r , values {
2626 "page" : "2" ,
2727 })
@@ -101,7 +101,7 @@ func TestPrivateRegistriesService_CreateOrganizationPrivateRegistry(t *testing.T
101101
102102 mux .HandleFunc ("/orgs/o/private-registries" , func (w http.ResponseWriter , r * http.Request ) {
103103 testMethod (t , r , "POST" )
104- testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
104+ testHeader (t , r , "X-Github-Api-Version" , api20260310 )
105105 testJSONBody (t , r , input )
106106 w .WriteHeader (http .StatusCreated )
107107 fmt .Fprint (w , `{
@@ -166,7 +166,7 @@ func TestPrivateRegistriesService_CreateOrganizationPrivateRegistry_OIDC(t *test
166166
167167 mux .HandleFunc ("/orgs/o/private-registries" , func (w http.ResponseWriter , r * http.Request ) {
168168 testMethod (t , r , "POST" )
169- testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
169+ testHeader (t , r , "X-Github-Api-Version" , api20260310 )
170170 testJSONBody (t , r , input )
171171 w .WriteHeader (http .StatusCreated )
172172 fmt .Fprint (w , `{
@@ -215,7 +215,7 @@ func TestPrivateRegistries_UpdateOrganizationPrivateRegistry_OIDC(t *testing.T)
215215
216216 mux .HandleFunc ("/orgs/o/private-registries/AWS_REGISTRY_SECRET" , func (w http.ResponseWriter , r * http.Request ) {
217217 testMethod (t , r , "PATCH" )
218- testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
218+ testHeader (t , r , "X-Github-Api-Version" , api20260310 )
219219 testJSONBody (t , r , input )
220220 w .WriteHeader (http .StatusNoContent )
221221 })
@@ -243,7 +243,7 @@ func TestPrivateRegistriesService_CreateOrganizationPrivateRegistry_OIDCJFrog(t
243243
244244 mux .HandleFunc ("/orgs/o/private-registries" , func (w http.ResponseWriter , r * http.Request ) {
245245 testMethod (t , r , "POST" )
246- testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
246+ testHeader (t , r , "X-Github-Api-Version" , api20260310 )
247247 testJSONBody (t , r , input )
248248 w .WriteHeader (http .StatusCreated )
249249 fmt .Fprint (w , `{
@@ -279,7 +279,7 @@ func TestPrivateRegistriesService_GetOrganizationPrivateRegistriesPublicKey(t *t
279279
280280 mux .HandleFunc ("/orgs/o/private-registries/public-key" , func (w http.ResponseWriter , r * http.Request ) {
281281 testMethod (t , r , "GET" )
282- testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
282+ testHeader (t , r , "X-Github-Api-Version" , api20260310 )
283283 fmt .Fprint (w , `{
284284 "key_id": "0123456789",
285285 "key": "public_key"
@@ -320,7 +320,7 @@ func TestPrivateRegistriesService_GetOrganizationPrivateRegistry(t *testing.T) {
320320
321321 mux .HandleFunc ("/orgs/o/private-registries/MAVEN_REPOSITORY_SECRET" , func (w http.ResponseWriter , r * http.Request ) {
322322 testMethod (t , r , "GET" )
323- testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
323+ testHeader (t , r , "X-Github-Api-Version" , api20260310 )
324324 fmt .Fprint (w , `{
325325 "name": "MAVEN_REPOSITORY_SECRET",
326326 "registry_type": "maven_repository",
@@ -375,7 +375,7 @@ func TestPrivateRegistries_UpdateOrganizationPrivateRegistry(t *testing.T) {
375375
376376 mux .HandleFunc ("/orgs/o/private-registries/MAVEN_REPOSITORY_SECRET" , func (w http.ResponseWriter , r * http.Request ) {
377377 testMethod (t , r , "PATCH" )
378- testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
378+ testHeader (t , r , "X-Github-Api-Version" , api20260310 )
379379 testJSONBody (t , r , input )
380380 w .WriteHeader (http .StatusNoContent )
381381 })
@@ -403,7 +403,7 @@ func TestPrivateRegistriesService_DeleteOrganizationPrivateRegistry(t *testing.T
403403
404404 mux .HandleFunc ("/orgs/o/private-registries/MAVEN_REPOSITORY_SECRET" , func (w http.ResponseWriter , r * http.Request ) {
405405 testMethod (t , r , "DELETE" )
406- testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
406+ testHeader (t , r , "X-Github-Api-Version" , api20260310 )
407407 w .WriteHeader (http .StatusNoContent )
408408 })
409409 ctx := t .Context ()
0 commit comments