Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting only_allow_merge_if_all_discussions_are_resolved on a project #85

Merged

Conversation

CaseyMacPherson
Copy link
Contributor

Need to be able to set this property on a project.

In all instances the current project or the updated project is returned

-OnlyAllowMergeIfAllDiscussionsAreResolved

Get-GitlabProject | Update-GitlabProject -OnlyAllowMergeIfAllDiscussionsAreResolved -Whatif
What if: Performing the operation "update project ({
  "only_allow_merge_if_all_discussions_are_resolved": {
    "IsPresent": true
  }
})" on target "notimportant".

-OnlyAllowMergeIfAllDiscussionsAreResolved:$false

Get-GitlabProject | Update-GitlabProject -OnlyAllowMergeIfAllDiscussionsAreResolved:$false -Whatif
Nothing to update

-OnlyAllowMergeIfAllDiscussionsAreResolved:$true

Get-GitlabProject | Update-GitlabProject -OnlyAllowMergeIfAllDiscussionsAreResolved:$true Whatif
What if: Performing the operation "update project ({
  "only_allow_merge_if_all_discussions_are_resolved": {
    "IsPresent": true
  }
})" on target "notimportant".

No switch specified

Get-GitlabProject | Update-GitlabProject -Whatif
Nothing to update

@chris-peterson chris-peterson merged commit cadafb4 into chris-peterson:main Oct 19, 2023
@CaseyMacPherson CaseyMacPherson deleted the SetNewPropertyOnProject branch October 26, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants