From 2852e784609c16c05efd46ea1e71e1621f65d50d Mon Sep 17 00:00:00 2001 From: Yurii Soldak Date: Mon, 4 Sep 2023 14:30:19 +0200 Subject: [PATCH] Fix json serialisation for RepositoryName fields RulesetRepositoryNamesConditionParameters Include and Exclude shall not be omitted --- github/repos_rules.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/repos_rules.go b/github/repos_rules.go index 38d4255a9aa..7f964fe6655 100644 --- a/github/repos_rules.go +++ b/github/repos_rules.go @@ -38,8 +38,8 @@ type RulesetRefConditionParameters struct { // RulesetRepositoryNamesConditionParameters represents the conditions object for repository_names. type RulesetRepositoryNamesConditionParameters struct { - Include []string `json:"include,omitempty"` - Exclude []string `json:"exclude,omitempty"` + Include []string `json:"include"` + Exclude []string `json:"exclude"` Protected *bool `json:"protected,omitempty"` }