docker-compose exec -it git-service bash test/run-tests.sh
docker-compose exec -it git-service bash test-server/run-tests.sh
-
Client provides remoteURL of pull request branch.
-
Client provides head of pull request branch.
-
Call
fetchAndPullBranch.js(repoID, branchName, forkRemoteURL)
repoID is calculated as follows:
crypto.SHA256(remoteURL).toString(crypto.enc.Hex)
branchName should be ${defaultHash/forkRemoteURL} to prevent clashes.
-
Verify branch head with
getBranchHead
. -
Push branch to remoteURL
`pushBranch(repoID, remoteURL, branch)
-
createTurboSrcPullRequest
calls gitea api to create/close/merge pr -
Delete branch after the pull request is closed or is merged