@@ -11,34 +11,34 @@ import (
1111 "fmt"
1212)
1313
14- // OrgActionsVariableCreateRequest represents a request to create an
14+ // ActionsCreateOrgVariableRequest represents a request to create an
1515// organization variable.
16- type OrgActionsVariableCreateRequest struct {
16+ type ActionsCreateOrgVariableRequest struct {
1717 Name string `json:"name"`
1818 Value string `json:"value"`
1919 Visibility string `json:"visibility"`
2020 SelectedRepositoryIDs []int64 `json:"selected_repository_ids,omitzero"`
2121}
2222
23- // OrgActionsVariableUpdateRequest represents a request to update an
23+ // ActionsUpdateOrgVariableRequest represents a request to update an
2424// organization variable.
25- type OrgActionsVariableUpdateRequest struct {
25+ type ActionsUpdateOrgVariableRequest struct {
2626 Name * string `json:"name,omitempty"`
2727 Value * string `json:"value,omitempty"`
2828 Visibility * string `json:"visibility,omitempty"`
2929 SelectedRepositoryIDs []int64 `json:"selected_repository_ids,omitzero"`
3030}
3131
32- // ActionsVariableCreateRequest represents a request to create a variable
32+ // ActionsCreateVariableRequest represents a request to create a variable
3333// for a repository or repository environment variable.
34- type ActionsVariableCreateRequest struct {
34+ type ActionsCreateVariableRequest struct {
3535 Name string `json:"name"`
3636 Value string `json:"value"`
3737}
3838
39- // ActionsVariableUpdateRequest represents a request to update a variable
39+ // ActionsUpdateVariableRequest represents a request to update a variable
4040// for a repository or repository environment variable.
41- type ActionsVariableUpdateRequest struct {
41+ type ActionsUpdateVariableRequest struct {
4242 Name * string `json:"name,omitempty"`
4343 Value * string `json:"value,omitempty"`
4444}
@@ -236,7 +236,7 @@ func (s *ActionsService) GetEnvVariable(ctx context.Context, owner, repo, env, v
236236// GitHub API docs: https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#create-a-repository-variable
237237//
238238//meta:operation POST /repos/{owner}/{repo}/actions/variables
239- func (s * ActionsService ) CreateRepoVariable (ctx context.Context , owner , repo string , body ActionsVariableCreateRequest ) (* Response , error ) {
239+ func (s * ActionsService ) CreateRepoVariable (ctx context.Context , owner , repo string , body ActionsCreateVariableRequest ) (* Response , error ) {
240240 u := fmt .Sprintf ("repos/%v/%v/actions/variables" , owner , repo )
241241
242242 req , err := s .client .NewRequest (ctx , "POST" , u , body )
@@ -252,7 +252,7 @@ func (s *ActionsService) CreateRepoVariable(ctx context.Context, owner, repo str
252252// GitHub API docs: https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#create-an-organization-variable
253253//
254254//meta:operation POST /orgs/{org}/actions/variables
255- func (s * ActionsService ) CreateOrgVariable (ctx context.Context , org string , body OrgActionsVariableCreateRequest ) (* Response , error ) {
255+ func (s * ActionsService ) CreateOrgVariable (ctx context.Context , org string , body ActionsCreateOrgVariableRequest ) (* Response , error ) {
256256 u := fmt .Sprintf ("orgs/%v/actions/variables" , org )
257257
258258 req , err := s .client .NewRequest (ctx , "POST" , u , body )
@@ -268,7 +268,7 @@ func (s *ActionsService) CreateOrgVariable(ctx context.Context, org string, body
268268// GitHub API docs: https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#create-an-environment-variable
269269//
270270//meta:operation POST /repos/{owner}/{repo}/environments/{environment_name}/variables
271- func (s * ActionsService ) CreateEnvVariable (ctx context.Context , owner , repo , env string , body ActionsVariableCreateRequest ) (* Response , error ) {
271+ func (s * ActionsService ) CreateEnvVariable (ctx context.Context , owner , repo , env string , body ActionsCreateVariableRequest ) (* Response , error ) {
272272 u := fmt .Sprintf ("repos/%v/%v/environments/%v/variables" , owner , repo , env )
273273
274274 req , err := s .client .NewRequest (ctx , "POST" , u , body )
@@ -283,7 +283,7 @@ func (s *ActionsService) CreateEnvVariable(ctx context.Context, owner, repo, env
283283// GitHub API docs: https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#update-a-repository-variable
284284//
285285//meta:operation PATCH /repos/{owner}/{repo}/actions/variables/{name}
286- func (s * ActionsService ) UpdateRepoVariable (ctx context.Context , owner , repo , name string , body ActionsVariableUpdateRequest ) (* Response , error ) {
286+ func (s * ActionsService ) UpdateRepoVariable (ctx context.Context , owner , repo , name string , body ActionsUpdateVariableRequest ) (* Response , error ) {
287287 u := fmt .Sprintf ("repos/%v/%v/actions/variables/%v" , owner , repo , name )
288288
289289 req , err := s .client .NewRequest (ctx , "PATCH" , u , body )
@@ -299,7 +299,7 @@ func (s *ActionsService) UpdateRepoVariable(ctx context.Context, owner, repo, na
299299// GitHub API docs: https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#update-an-organization-variable
300300//
301301//meta:operation PATCH /orgs/{org}/actions/variables/{name}
302- func (s * ActionsService ) UpdateOrgVariable (ctx context.Context , org , name string , body OrgActionsVariableUpdateRequest ) (* Response , error ) {
302+ func (s * ActionsService ) UpdateOrgVariable (ctx context.Context , org , name string , body ActionsUpdateOrgVariableRequest ) (* Response , error ) {
303303 u := fmt .Sprintf ("orgs/%v/actions/variables/%v" , org , name )
304304
305305 req , err := s .client .NewRequest (ctx , "PATCH" , u , body )
@@ -315,7 +315,7 @@ func (s *ActionsService) UpdateOrgVariable(ctx context.Context, org, name string
315315// GitHub API docs: https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#update-an-environment-variable
316316//
317317//meta:operation PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}
318- func (s * ActionsService ) UpdateEnvVariable (ctx context.Context , owner , repo , env , name string , body ActionsVariableUpdateRequest ) (* Response , error ) {
318+ func (s * ActionsService ) UpdateEnvVariable (ctx context.Context , owner , repo , env , name string , body ActionsUpdateVariableRequest ) (* Response , error ) {
319319 u := fmt .Sprintf ("repos/%v/%v/environments/%v/variables/%v" , owner , repo , env , name )
320320
321321 req , err := s .client .NewRequest (ctx , "PATCH" , u , body )
0 commit comments