A package for merging branches with the DCS API.
Demo: https://unfoldingword.github.io/dcs-branch-merger/
To run locally:
npm install
npm run start
localhost:6060
You must supply values server, owner, repo, userName, userBranch, and tokenid. Some sample values are hardcoded, but not the token.
To get an access token:
Curl:
curl -X 'POST' \ 'https://qa.door43.org/api/v1/users/cecil.new/tokens' \ -H 'accept: application/json' \ -H 'authorization: Basic whatever=' \ -H 'Content-Type: application/json' \ -d '{ "name": "cecil.new" }'
Response:
{ "id": 39181, "name": "cecil.new", "sha1": "long sha value here", "token_last_eight": "b4bab076" }
To reset, just delete it (make sure you're doing this on qa!), then go to + => New Migration => Gitea and just put https://git.door43.org/dcs-poc-org/en_tn as the URL, and change Owner to dcs-poc-org (you must be a member) and the repo name should be populated already (en_tn)