It is a simple git hub api test tool powered by PyGithub
python git-test.py repo apiToken environment {commitHash}
- repo: repo name, like "ivshof/gitHubAPITestTool"
- apiToken: Personal access tokens (details: https://github.com/settings/tokens)
- environment: brunch name, like one from the list['dev', 'sit', 'qa', 'prod']
- commitHash: hash of the commit that will be used for diff changes
-
Identify changes related to provided commit hash or to the latest commit if the commit hash was not provided
-
Filter changes based on the configuration file extension (like '.yaml'
-
Validate the location of configuration files with a hardcoded "validates" list
-
For each configuration file in the list retrieve content and print it in case configuration env is enabled. Env and configurations listed in "envConfiguration"