How can the development branch automatically merge to the Master branch every commit?

For example, after the development branch submits code to the repository, I want to merge the development branch into the Master branch automatically, not manually. In that case, what should I do?

You can use the merge request API. This won’t automatically merge into your default branch.