@@ -44,13 +44,12 @@ func TestOrganizationsService_GetAllOrganizationRulesets(t *testing.T) {
4444 }
4545
4646 want := []* Ruleset {{
47- ID : 26110 ,
47+ ID : Int64 ( 26110 ) ,
4848 Name : "test ruleset" ,
4949 Target : String ("branch" ),
5050 SourceType : String ("Organization" ),
5151 Source : "o" ,
5252 Enforcement : "active" ,
53- BypassMode : String ("none" ),
5453 NodeID : String ("nid" ),
5554 Links : & RulesetLinks {
5655 Self : & RulesetLink {HRef : String ("https://api.github.com/orgs/o/rulesets/26110" )},
@@ -210,7 +209,7 @@ func TestOrganizationsService_CreateOrganizationRuleset_RepoNames(t *testing.T)
210209
211210 ctx := context .Background ()
212211 ruleset , _ , err := client .Organizations .CreateOrganizationRuleset (ctx , "o" , & Ruleset {
213- ID : 21 ,
212+ ID : Int64 ( 21 ) ,
214213 Name : "ruleset" ,
215214 Target : String ("branch" ),
216215 SourceType : String ("Organization" ),
@@ -296,7 +295,7 @@ func TestOrganizationsService_CreateOrganizationRuleset_RepoNames(t *testing.T)
296295 }
297296
298297 want := & Ruleset {
299- ID : 21 ,
298+ ID : Int64 ( 21 ) ,
300299 Name : "ruleset" ,
301300 Target : String ("branch" ),
302301 SourceType : String ("Organization" ),
@@ -524,7 +523,7 @@ func TestOrganizationsService_CreateOrganizationRuleset_RepoIDs(t *testing.T) {
524523
525524 ctx := context .Background ()
526525 ruleset , _ , err := client .Organizations .CreateOrganizationRuleset (ctx , "o" , & Ruleset {
527- ID : 21 ,
526+ ID : Int64 ( 21 ) ,
528527 Name : "ruleset" ,
529528 Target : String ("branch" ),
530529 SourceType : String ("Organization" ),
@@ -608,7 +607,7 @@ func TestOrganizationsService_CreateOrganizationRuleset_RepoIDs(t *testing.T) {
608607 }
609608
610609 want := & Ruleset {
611- ID : 21 ,
610+ ID : Int64 ( 21 ) ,
612611 Name : "ruleset" ,
613612 Target : String ("branch" ),
614613 SourceType : String ("Organization" ),
@@ -758,13 +757,12 @@ func TestOrganizationsService_GetOrganizationRuleset(t *testing.T) {
758757 }
759758
760759 want := & Ruleset {
761- ID : 26110 ,
760+ ID : Int64 ( 26110 ) ,
762761 Name : "test ruleset" ,
763762 Target : String ("branch" ),
764763 SourceType : String ("Organization" ),
765764 Source : "o" ,
766765 Enforcement : "active" ,
767- BypassMode : String ("none" ),
768766 NodeID : String ("nid" ),
769767 Links : & RulesetLinks {
770768 Self : & RulesetLink {HRef : String ("https://api.github.com/orgs/o/rulesets/26110" )},
@@ -853,7 +851,6 @@ func TestOrganizationsService_UpdateOrganizationRuleset(t *testing.T) {
853851 Name : "test ruleset" ,
854852 Target : String ("branch" ),
855853 Enforcement : "active" ,
856- BypassMode : String ("none" ),
857854 Conditions : & RulesetConditions {
858855 RefName : & RulesetRefConditionParameters {
859856 Include : []string {"refs/heads/main" , "refs/heads/master" },
@@ -875,13 +872,12 @@ func TestOrganizationsService_UpdateOrganizationRuleset(t *testing.T) {
875872 }
876873
877874 want := & Ruleset {
878- ID : 26110 ,
875+ ID : Int64 ( 26110 ) ,
879876 Name : "test ruleset" ,
880877 Target : String ("branch" ),
881878 SourceType : String ("Organization" ),
882879 Source : "o" ,
883880 Enforcement : "active" ,
884- BypassMode : String ("none" ),
885881 NodeID : String ("nid" ),
886882 Links : & RulesetLinks {
887883 Self : & RulesetLink {HRef : String ("https://api.github.com/orgs/o/rulesets/26110" )},
0 commit comments