From 75f68e04fba041d997d28c84a37ebc04d2b7c739 Mon Sep 17 00:00:00 2001 From: James Maguire Date: Tue, 2 May 2023 13:29:21 +0200 Subject: [PATCH] add omitempty to CreateOrgInvitationOptions fields --- github/orgs_members.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/orgs_members.go b/github/orgs_members.go index 38f43bad5a..79f8a65333 100644 --- a/github/orgs_members.go +++ b/github/orgs_members.go @@ -315,8 +315,8 @@ type CreateOrgInvitationOptions struct { // * billing_manager - Non-owner organization members with ability to // manage the billing settings of your organization. // Default is "direct_member". - Role *string `json:"role"` - TeamID []int64 `json:"team_ids"` + Role *string `json:"role,omitempty"` + TeamID []int64 `json:"team_ids,omitempty"` } // CreateOrgInvitation invites people to an organization by using their GitHub user ID or their email address.