Handler for GitHub Webhooks
Go to file
Tiago Garcia a3f76810ec
Version 0.1 - Initial Version
- App working to update files on every push
- Using simple JSON config

Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
2023-12-30 16:12:43 +00:00
.gitignore Version 0.1 - Initial Version 2023-12-30 16:12:43 +00:00
CMakeLists.txt Version 0.1 - Initial Version 2023-12-30 16:12:43 +00:00
README.md Version 0.1 - Initial Version 2023-12-30 16:12:43 +00:00
main.cpp Version 0.1 - Initial Version 2023-12-30 16:12:43 +00:00

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

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"
    }
}