@@ -51,6 +51,7 @@ Describe 'GitHubRepositories\New-GitHubRepository' {
51
51
$repo.has_issues | Should - BeTrue
52
52
$repo.has_projects | Should - BeTrue
53
53
$repo.has_Wiki | Should - BeTrue
54
+ $repo.has_discussions | Should - BeFalse
54
55
$repo.allow_squash_merge | Should - BeTrue
55
56
$repo.allow_merge_commit | Should - BeTrue
56
57
$repo.allow_rebase_merge | Should - BeTrue
@@ -88,6 +89,7 @@ Describe 'GitHubRepositories\New-GitHubRepository' {
88
89
$repo.has_issues | Should - BeTrue
89
90
$repo.has_projects | Should - BeTrue
90
91
$repo.has_Wiki | Should - BeTrue
92
+ $repo.has_discussions | Should - BeFalse
91
93
$repo.allow_squash_merge | Should - BeTrue
92
94
$repo.allow_merge_commit | Should - BeTrue
93
95
$repo.allow_rebase_merge | Should - BeTrue
@@ -116,6 +118,7 @@ Describe 'GitHubRepositories\New-GitHubRepository' {
116
118
NoIssues = $true
117
119
NoProjects = $true
118
120
NoWiki = $true
121
+ HasDiscussions = $true
119
122
DisallowSquashMerge = $true
120
123
DisallowMergeCommit = $true
121
124
DisallowRebaseMerge = $false
@@ -139,6 +142,7 @@ Describe 'GitHubRepositories\New-GitHubRepository' {
139
142
$repo.has_issues | Should - BeFalse
140
143
$repo.has_projects | Should - BeFalse
141
144
$repo.has_Wiki | Should - BeFalse
145
+ $repo.has_discussions | Should - BeTrue
142
146
$repo.allow_squash_merge | Should - BeFalse
143
147
$repo.allow_merge_commit | Should - BeFalse
144
148
$repo.allow_rebase_merge | Should - BeTrue
@@ -235,6 +239,7 @@ Describe 'GitHubRepositories\New-GitHubRepository' {
235
239
$repo.has_issues | Should - BeTrue
236
240
$repo.has_projects | Should - BeTrue
237
241
$repo.has_Wiki | Should - BeTrue
242
+ $repo.has_discussions | Should - BeFalse
238
243
$repo.allow_squash_merge | Should - BeTrue
239
244
$repo.allow_merge_commit | Should - BeTrue
240
245
$repo.allow_rebase_merge | Should - BeTrue
@@ -725,6 +730,7 @@ Describe 'GitHubRepositories\Set-GitHubRepository' {
725
730
NoIssues = $true
726
731
NoProjects = $true
727
732
NoWiki = $true
733
+ HasDiscussions = $true
728
734
DisallowSquashMerge = $true
729
735
DisallowMergeCommit = $true
730
736
DisallowRebaseMerge = $false
@@ -747,6 +753,7 @@ Describe 'GitHubRepositories\Set-GitHubRepository' {
747
753
$updatedRepo.has_issues | Should - BeFalse
748
754
$updatedRepo.has_projects | Should - BeFalse
749
755
$updatedRepo.has_Wiki | Should - BeFalse
756
+ $updatedRepo.has_discussions | Should - BeTrue
750
757
$updatedRepo.allow_squash_merge | Should - BeFalse
751
758
$updatedRepo.allow_merge_commit | Should - BeFalse
752
759
$updatedRepo.allow_rebase_merge | Should - BeTrue
0 commit comments