From 95b92df83a47fc0627dd3030f58172db433cfce7 Mon Sep 17 00:00:00 2001 From: Xun Guo <71305956+xun-guo-anzx@users.noreply.github.com> Date: Wed, 11 Aug 2021 21:27:12 +1000 Subject: [PATCH] Allow empty selected_repository_ids for SetSelectedReposForOrgSecret (#2036) Fixes: #2035. --- github/actions_secrets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/actions_secrets.go b/github/actions_secrets.go index 379eab81cbb..5bfb22ac080 100644 --- a/github/actions_secrets.go +++ b/github/actions_secrets.go @@ -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})