A utility to listen for github webhooks and do file / git operations on a repository.
- You must get a github secret from github in the repo settings. Set that in the secret variable in index.ts
- Set the repo path in the repo variable in index.ts
- By default, it will just execute a git stash and then a git pull on every push event. You can edit the commands it runs in the exec function.
- Install the dependencies
yarn
- Build the typescript
yarn build
- Start the project
yarn start
You can now lint your project with yarn lint
or yarn lint-fix