Handler for GitHub Webhooks
Go to file
Tiago Garcia 5970e12e87
Update program
- Now tracks Created files
- Error handling
2024-01-27 16:33:12 +00:00
.gitignore Update program 2024-01-27 16:33:12 +00:00
CMakeLists.txt Some minor changes 2023-12-30 22:54:52 +00:00
README.md Update program 2024-01-27 16:33:12 +00:00
main.cpp Update program 2024-01-27 16:33:12 +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

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

Endpoint

Currently, the only endpoint for the application is /update-files