Skip to content

Commit

Permalink
Allow empty selected_repository_ids for SetSelectedReposForOrgSecret
Browse files Browse the repository at this point in the history
  • Loading branch information
xun-guo-anzx committed Aug 11, 2021
1 parent 7b61934 commit 565a992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/actions_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func (s *ActionsService) SetSelectedReposForOrgSecret(ctx context.Context, org,
u := fmt.Sprintf("orgs/%v/actions/secrets/%v/repositories", org, name)

type repoIDs struct {
SelectedIDs SelectedRepoIDs `json:"selected_repository_ids,omitempty"`
SelectedIDs SelectedRepoIDs `json:"selected_repository_ids"`
}

req, err := s.client.NewRequest("PUT", u, repoIDs{SelectedIDs: ids})
Expand Down

0 comments on commit 565a992

Please sign in to comment.