Coder Social home page Coder Social logo

inactive-r's Introduction

Inactive-R

Invalid-R is a tool that scans your Github Organisation for repositories that have gone dormant, with their last push activity at least 2 years from the current date.

This tool aims to reduce clutter in your Organisations, giving you the ability to have visibility on inactive repos which you can then take elect to remove, and in turn reduce your Organisation's risk surface area.

You can tweak this tool to scan for a specific timeline i.e "Scan for repos that had last push activity 3 or 4 or 5 years .... and so on ago". The default is 2 years ago.

Requirements

  1. Python 3
  2. Linux/Windows/MAC OSX
  3. GITHUB API KEY with Organisation Admin Permissions.

Running the tool

  • Install Python dependencies
pip3 install -r requirements.txt 
  • Configure the GitHub API KEY and the Organisation Name in the script -> inactive-r.py .

Note: Make sure that the API KEY has Organisation Admin Permissions

self.g = Github("API_TOKEN_HERE")
self.org = self.g.get_organization("ORGANIZATION_NAME_HERE")

Usage

  • To run the tool, simply run the following command:
python3 inactive-r.py
  • The tool will run and show you the following response with the total number of inactive repositories:
[++] A Total of 288 repos had their last push at least 2 year ago to date 2023-04-18 12:58:09.727511 [++]
  • It will also at the same time save the output of the scan to a csv file -> inactive_repos.csv, containing the repo fullname, Description, Language, time since last push in years, months and days to the current date of running the script:
[+++] Finished writing results to CSV file > outdated_repos.csv [+++]

Contributing

  • I totally agree that this tool could've been and can be made even more better, by me or anyone else, That said.... Please fell free to tweak this little scriptiee here and create a PR ๐Ÿ‘:

inactive-r's People

Contributors

doggopadre avatar thatstraw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.