@@ -51,6 +51,7 @@ Describe 'GitHubRepositories\New-GitHubRepository' {
5151 $repo.has_issues | Should - BeTrue
5252 $repo.has_projects | Should - BeTrue
5353 $repo.has_Wiki | Should - BeTrue
54+ $repo.has_discussions | Should - BeFalse
5455 $repo.allow_squash_merge | Should - BeTrue
5556 $repo.allow_merge_commit | Should - BeTrue
5657 $repo.allow_rebase_merge | Should - BeTrue
@@ -88,6 +89,7 @@ Describe 'GitHubRepositories\New-GitHubRepository' {
8889 $repo.has_issues | Should - BeTrue
8990 $repo.has_projects | Should - BeTrue
9091 $repo.has_Wiki | Should - BeTrue
92+ $repo.has_discussions | Should - BeFalse
9193 $repo.allow_squash_merge | Should - BeTrue
9294 $repo.allow_merge_commit | Should - BeTrue
9395 $repo.allow_rebase_merge | Should - BeTrue
@@ -116,6 +118,7 @@ Describe 'GitHubRepositories\New-GitHubRepository' {
116118 NoIssues = $true
117119 NoProjects = $true
118120 NoWiki = $true
121+ HasDiscussions = $true
119122 DisallowSquashMerge = $true
120123 DisallowMergeCommit = $true
121124 DisallowRebaseMerge = $false
@@ -139,6 +142,7 @@ Describe 'GitHubRepositories\New-GitHubRepository' {
139142 $repo.has_issues | Should - BeFalse
140143 $repo.has_projects | Should - BeFalse
141144 $repo.has_Wiki | Should - BeFalse
145+ $repo.has_discussions | Should - BeTrue
142146 $repo.allow_squash_merge | Should - BeFalse
143147 $repo.allow_merge_commit | Should - BeFalse
144148 $repo.allow_rebase_merge | Should - BeTrue
@@ -235,6 +239,7 @@ Describe 'GitHubRepositories\New-GitHubRepository' {
235239 $repo.has_issues | Should - BeTrue
236240 $repo.has_projects | Should - BeTrue
237241 $repo.has_Wiki | Should - BeTrue
242+ $repo.has_discussions | Should - BeFalse
238243 $repo.allow_squash_merge | Should - BeTrue
239244 $repo.allow_merge_commit | Should - BeTrue
240245 $repo.allow_rebase_merge | Should - BeTrue
@@ -725,6 +730,7 @@ Describe 'GitHubRepositories\Set-GitHubRepository' {
725730 NoIssues = $true
726731 NoProjects = $true
727732 NoWiki = $true
733+ HasDiscussions = $true
728734 DisallowSquashMerge = $true
729735 DisallowMergeCommit = $true
730736 DisallowRebaseMerge = $false
@@ -747,6 +753,7 @@ Describe 'GitHubRepositories\Set-GitHubRepository' {
747753 $updatedRepo.has_issues | Should - BeFalse
748754 $updatedRepo.has_projects | Should - BeFalse
749755 $updatedRepo.has_Wiki | Should - BeFalse
756+ $updatedRepo.has_discussions | Should - BeTrue
750757 $updatedRepo.allow_squash_merge | Should - BeFalse
751758 $updatedRepo.allow_merge_commit | Should - BeFalse
752759 $updatedRepo.allow_rebase_merge | Should - BeTrue
0 commit comments