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

Git module creation #8

Closed alejgh closed 4 years ago

alejgh commented 4 years ago

Implementation of the git module. This module will handle the data received from the GitHub WebHooks to load the diff from the push, and process the information so it can be used later on by other modules. The information returned by the module is as follows:

For each file, the following information can be accessed:

The files are loaded lazily using a generator to avoid memory overheads.

codecov-io commented 4 years ago

Codecov Report

Merging #8 into master will decrease coverage by 0.79%. The diff coverage is 88.23%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master       #8     +/-   ##
=========================================
- Coverage   89.47%   88.67%   -0.8%     
=========================================
  Files           2        3      +1     
  Lines          57      159    +102     
=========================================
+ Hits           51      141     +90     
- Misses          6       18     +12
Impacted Files Coverage Δ
hercules_sync/git.py 88.23% <88.23%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b77367e...a186cd8. Read the comment docs.