Skip to content

Commit 95b92df

Browse files
authored
Allow empty selected_repository_ids for SetSelectedReposForOrgSecret (#2036)
Fixes: #2035.
1 parent 614ee3a commit 95b92df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github/actions_secrets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func (s *ActionsService) SetSelectedReposForOrgSecret(ctx context.Context, org,
302302
u := fmt.Sprintf("orgs/%v/actions/secrets/%v/repositories", org, name)
303303

304304
type repoIDs struct {
305-
SelectedIDs SelectedRepoIDs `json:"selected_repository_ids,omitempty"`
305+
SelectedIDs SelectedRepoIDs `json:"selected_repository_ids"`
306306
}
307307

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

0 commit comments

Comments
 (0)