Skip to content

Replace and extend functionality in turbosrc-service.

License

Notifications You must be signed in to change notification settings

turbo-src/git-service

Repository files navigation

Usage

docker-compose exec -it git-service bash test/run-tests.sh
docker-compose exec -it git-service bash test-server/run-tests.sh

Strategy

  1. Client provides remoteURL of pull request branch.

  2. Client provides head of pull request branch.

  3. 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.

  4. Verify branch head with getBranchHead.

  5. Push branch to remoteURL

    `pushBranch(repoID, remoteURL, branch)

  6. createTurboSrcPullRequest calls gitea api to create/close/merge pr

  7. Delete branch after the pull request is closed or is merged

About

Replace and extend functionality in turbosrc-service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published