Python code to integrate and read GitHub APIs.
You can install the required dependencies using Poetry:
poetry install
Python (>=3.11) PyGithub (>=1.59.1) python-dateutil (>=2.8.2)
Description: Script to retrieve all commits from a GitHub repository.
Description: Script to retrieve commits between specified dates from a GitHub repository.
Description: Script to retrieve commits for a specific file within a date range from a GitHub repository.
Description: Script to retrieve the list of files changed in a commit from a GitHub repository.
Description: Script to retrieve the list of repositories for a GitHub user or organization.
Change the following properties before running the script
ACCESS_TOKEN="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"
REPO_OWNER = "ShanKonduru"
REPO_NAME = "PostmanCollectionTestcaseExtractor"
In the visual studio code terminal or command window, use the following commands to run each python script file
python .\getallcommits.py
python .\getcommitsbetweendates.py
python .\getcommitsforafile.py
python .\getfiles.py
python .\getrepos.py
This project is licensed under the MIT License.
ShanKonduru ShanKonduru@gmail.com