bflad/chef-stash

Pull Request Settings Not Set

moserke opened this issue · 2 comments

When creating a new repo with the repo LWRP the pull request settings of number of approvers and number of builds is not set.

The Stash REST API doesn't specifically allow this setting from creating the repository (or if it does, its not been updated in the documentation):
https://developer.atlassian.com/static/rest/stash/2.4.2/stash-rest.html#idp963904

I'm not immediately seeing a way to set this in the API at all. Can you take a look in the above documentation to see if I missed something? Otherwise, we'll need to get the feature request in.

Correct, this is not in their REST API. I don't know why they wouldn't have put it there, but alas. In the pull request you'll see I am using the web forms to post the data to. Was the best I could come up with for it. Working well for us though. This is also only test on Stash 2.3 and 2.4.