Updating repository through API disables auto-merge #24301
-
I noticed that when a repository has the “Allow auto-merge” option enabled, performing a PATCH request to update any of the other settings in the repository results in said option being disabled. For example:
Given that the auto-merge option cannot be updated through the API, this problem makes it impossible to use the API to synchronize the settings of several repositories, since each time this is done, you would have to manually update the auto-merge setting. Is this behaviour expected? Or is it a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
👋 Welcome! No, that is not expected behaviour. Thank you for the report. We’ve raised an issue and hopefully they’ll get that sorted soon! |
Beta Was this translation helpful? Give feedback.
-
Hi @alejandrohdezma! We pushed a fix for this yesterday. Please let us know if you’re still having trouble. |
Beta Was this translation helpful? Give feedback.
-
Working like a charm now! Thank you very much @canuckjacq! That was quick! |
Beta Was this translation helpful? Give feedback.
Hi @alejandrohdezma! We pushed a fix for this yesterday. Please let us know if you’re still having trouble.