A CLI Tool to check & update dependency versions in Github Repositories
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
This is a CLI tool for updating dependencies of Github Repositories.
This is how you may setup this project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- npm
npm install npm@latest -g
The following are some necessary python libraries to be installed.
- python
pip install PyGithub
pip install pandas
pip install argparse
pip install json
- MAKE SURE THE GITHUB ACCOUNT THAT CONTAINS REPOSITORIES ON WHICH YOU WANT RUN THIS TOOL, IS
ALREADY LOGED INTO YOUR TERMINAL
- MAKE SURE YOU CARRY THE
GITHUB ACCESS CODE
TO THE ABOVE MENTIONED GITHUB ACCOUNT
- Get a Github Access Key at Github Access Tokens
- Create a Folder with any random name
- Open Terminal in the above mentioned Folder (For easy navigation through output files, that will be genarated later)
- Clone the repo
git clone https://github.com/dyte-submissions/dyte-vit-2022-psai11.git
- Install NPM packages
npm install
Here is a detailed Walkthrough of how one may use this tool.
-
Open the folder that contains your
SDKtool.exe
. -
Run terminal in this folder.
-
Create a
.csv
file containing github repository links in the following manner. Let it be namedinput.csv
. -
Save the
input.csv
file in the same folder whereSDKtool.exe
exists -
To check dependencies of github repositories mentioned in
input.csv
with respect toQueryDependency@RequiredVersion
(for example[email protected]
) run the following command:SDKtool.exe input.csv [email protected]
OR
SDKtool.exe input.csv QueryDependency@RequiredVersion
-
To update the dependencies of github repositories which where less than
RequiredVersion
run the following command:SDKtool.exe input.csv [email protected] --update
OR
SDKtool.exe input.csv QueryDependency@RequiredVersion --update
-
Running the above command will update the dependencies and send a Pull Request to the github repository, create an output file named
PROutput.csv
- Check dependency valid or not
- Check dependency version valid or not
- Check deprecation of dependencies
- Clone repositories from CSV file
- Check version satisfiability in each repository
- Create Output File with version & version satisfiability
- Update version of un satisfied dependencies
- Create new Output File with PR links
See the open issues for a full list of proposed features (and known issues).
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
Distributed under the MIT License. See LICENSE.txt
for more information.
Your Name - @SaiChai91235079 - [email protected]
Project Link: https://github.com/dyte-submissions/dyte-vit-2022-psai11