CircleCI applies sanctions to Russia so it doesn't run tests for some of our devs. The workaround we have been doing is pushing an empty commit to their branch from a non-Russian account. However, this creates a dependency and constantly interrupts the other developers. This is a server so that Russian devs can self-serve.
- Node JS and express
- Uses simple-git to connect to Git
- Simple password protection
- Logging with Pino
- Dev live reloading with Nodemon
- Run
yarn install
- Create an
.env
file copying the.env.example
and adjusting the values - Start API with
yarn start:dev
- Go to Github/Settings/Developer Settings/Personal Access Tokens/Create token
- You might need to authorize Organizations if they require it
POST localhost:3001/v1/commit
Params:
{
"branch":"test/mybranch",
"repo": "myrepo",
"password": "sample",
}
Example with curl:
curl -d '{"repo":"myrepo", "branch":"test/mybranch", "password":"somesecurepassword" }' -H "Content-Type: application/json" -X POST localhost:3001/v1/commit