weso / hercules-sync

Tools to synchronise data between the ontology files and Wikibase instance for the Hercules project at University of Murcia.
GNU General Public License v3.0
4 stars 1 forks source link

Parsing of information received from Webhook #7

Closed alejgh closed 4 years ago

alejgh commented 4 years ago

Right now we are receiving the following information from a Webhook when a push event is received:

data = {
    "before": "before_push_sha",
    "after": "after_push_sha",
    "repository": {
        "full_name": "user_name/repo_name"
    }
}

We need to process this information to obtain the lines that were added and removed, for each file that was modified in the push.

We will use the output of this process later on to collect the items that need to be changed in the wikibase instance.