Port utility function and classes from wallcve
Wallcve scan stables repos for candidates security commits not present in CentOS/RHEL repos.
Wallcve is moving to kernel-webhooks. This MR adds some utility functions implemented in the wallcve that might be useful for other projects.
For details on what is being added, check the individual commits.
38b04ccc (Wander Lairson Costa) cki_lib: add the built module
d9d141ea (Wander Lairson Costa) cki_lib/gitlab: Implement the get_mr_commits function
78731903 (Wander Lairson Costa) cki_lib/git: add the get_commit_files function
0bbc1d86 (Wander Lairson Costa) cki_lib: add git commit utility functions
30a168e2 (Wander Lairson Costa) misc: provide the run_command() function
cki_lib/built.py | 283 +++++++++++++++++++++++++++++++++++++++++++++++++++
cki_lib/git.py | 130 +++++++++++++++++++++++
cki_lib/gitlab.py | 27 +++++
cki_lib/misc.py | 27 +++++
setup.cfg | 1 +
tests/test_built.py | 176 ++++++++++++++++++++++++++++++++
tests/test_git.py | 253 +++++++++++++++++++++++++++++++++++++++++++++
tests/test_gitlab.py | 76 ++++++++++++++
tests/test_misc.py | 26 +++++
9 files changed, 999 insertions(+)