CLI Tool to check the dependencies of github repositories and create a pull request if packages need to get updated.
Project description
GithubDepCheck
CLI Tool to check the dependencies of github repositories and create a pull request if packages need to get updated.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
About The Project
GithubDepCheck is a cli tool which helps you check if dependecies of your node.js projects are up-to-date or not. If they are not up-to-date, githubdepcheck updates the package and creates a pull request on your github repository. All you need to do is pass a csv file containing the link to your github repository and package name and version that you want to check in all your repositories.
Built With
Getting Started
Following contains the prerequisites, installation and usage guide for for githubdepcheck
Prerequisites
You need to have following things installed:
sudo apt-get install git
Installation
Create a virtual environment and install the githubdepcheck package using pip.
pip install githubdepchecker
Usage
You need to first configure your github username and password to be able to check dependencies on private repositories and create pull requests on others repositories. If github username and password are not configured, it will first ask for it and automatically configure it.
To check your cofigured github username and password:
githubdepchecker --getgitconfig
To set or change your github username and password:
githubdepchecker --setgitconfig <github-username> <github-password>
To perform dependency check of multiple github repositories:
- Create a csv file with following headers and enter the rows accordingly.
- Enter the following command with csv path and dependency name and version for which you want to perform dependency check.
githubdepchecker -i '/home/user/Download/githubrepos.csv' axios@0.23.0
- Above command will create an output file on home directory with an extra column of version_satisfied
To create pull request for updating dependency on github repositories:
- Add --update on the command given in previous step.
githubdepchecker -i '/home/user/Download/githubrepos.csv' axios@0.23.0 --update
- Above command will create an output file on home directory with an extra column of update_pr
Note: If csv file contains your own github repository whose dependencies needs to be updated, then it will not create any pull request, instead it will stop the process after committing the files as you don't need to create pull request for updating your own repository.
To create csv for above steps
If you feel lazy creating csv with repositories names and links, then don't worry githubdepcheck got your back :) Run the following command and it will generate an repositories.csv file on your home directory containing all your github repositories name and link whose language is JavaScript.
githubdepchecker --createcsv
To get the csv for repositories of an organization, run the following command:
githubdepchecker --createcsv --org <organization-name>
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt
for more information.
Contact
Your Name - @linkedin_handle - shubhngupta04@gmail.com
Project Link: https://github.com/dyte-submissions/dyte-vit-2022-Shubh0405
Acknowledgments
- I would like to thank dyte recruitment team to give this challenging task. It was fun working on this task as I wanted to do something different for a long time :)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file githubdepchecker-1.0.5.tar.gz
.
File metadata
- Download URL: githubdepchecker-1.0.5.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae65e32acc646adb85dd74bf2fc8e5181c7bca318d0e4384c8c12a8cbc2361d6 |
|
MD5 | 6decec34b9151bc0a8c3071811e67f6c |
|
BLAKE2b-256 | 4c4eb027a9003b166cafab9613d07bdc423a6a661cdc7a091029a0a8821b42b0 |
File details
Details for the file githubdepchecker-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: githubdepchecker-1.0.5-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe328e871145bf2dc16d1202b89a8ab95e6c511e2a7e5d6dd2d3fd1afa1f6d0f |
|
MD5 | 77cb474595144d56582932ce66364522 |
|
BLAKE2b-256 | 0ddb377a5b71aa93dccce5ce1fed3df1715aa285ebae275a87b47257b57e9057 |