Skip to main content

CLI Tool to check the dependencies of github repositories and create a pull request if packages need to get updated.

Project description

Open in Visual Studio Code

Contributors Forks Stargazers Issues MIT License LinkedIn


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
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

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.

(back to top)

Built With

(back to top)

Getting Started

Following contains the prerequisites, installation and usage guide for for githubdepcheck

Prerequisites

You need to have following things installed:

  1. Pip (Package Installer for python)
  2. Git
sudo apt-get install git
  1. Node and npm

Installation

Create a virtual environment and install the githubdepcheck package using pip.

pip install githubdepchecker

(back to top)

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:

  1. Create a csv file with following headers and enter the rows accordingly.

image

  1. 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
  1. Above command will create an output file on home directory with an extra column of version_satisfied

image

To create pull request for updating dependency on github repositories:

  1. Add --update on the command given in previous step.
githubdepchecker -i '/home/user/Download/githubrepos.csv' axios@0.23.0 --update
  1. Above command will create an output file on home directory with an extra column of update_pr

image

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.

(back to top)

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Your Name - @linkedin_handle - shubhngupta04@gmail.com

Project Link: https://github.com/dyte-submissions/dyte-vit-2022-Shubh0405

(back to top)

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 :)

(back to top)

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

githubdepchecker-1.0.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

githubdepchecker-1.0.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file githubdepchecker-1.0.3.tar.gz.

File metadata

  • Download URL: githubdepchecker-1.0.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for githubdepchecker-1.0.3.tar.gz
Algorithm Hash digest
SHA256 655ee8aba6fa6b385340fbc58a245aa1e79e8b6c1742cb21bf9c703b6651acde
MD5 e92cfb94d9806b1b01c85268b021af3f
BLAKE2b-256 c56fe8a2c0270c8b18cd722977804d36954421342183fa11373b3b1de19164fc

See more details on using hashes here.

File details

Details for the file githubdepchecker-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for githubdepchecker-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 92d8d2ea8d85543bc0a0dfc2720e96e5f9032d241c6a11f9afff434fdaaa6a89
MD5 98ea4697f4b5398f52fa46945be6fb32
BLAKE2b-256 547db36d0f691b1c4350f153a1e44a015252495e082e440ab8dd61c139d1341a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page