This is a proof of concept for showing a repo can be set up, a master branch initialized with files, a user branch made, and then changes are made to both branches, and then the user branch can be merged into master, all using the DCS/Gitea API.
GitHube Repo for POC scripts/files: https://www.github.com/unfoldingword-dev/dcs-api-merge-poc
Runnable copy can be found here: https://repl.it/@richmahn/dcs-api-merge-poc
Resulting repo is at: https://qa.door43.org/dcs-poc-org/dcs-poc-repo