Tiago Garcia
eac0779b96
Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt> |
||
---|---|---|
.gitignore | ||
CMakeLists.txt | ||
README.md | ||
main.cpp |
README.md
GitHub Webhook Handler
Simple C++ WebAPI to work with GitHub Webhooks
Currently creating a local copy of remote files on every push
Usage
Install the dependencies:
Compile the application:
cmake .
make
Run the application using your configuration file:
./gh-wh-handler /path/to/config.json
Config File
The configuration file should be a JSON file with the following format:
{
"port": 8080,
"repos": {
"repo_full_name": {
"branch": "target_branch",
"files": {
"remote_path": "local_path",
}
}
},
"tokens": {
"repo_full_name": "github_token"
}
}