Giter Site home page Giter Site logo

github_repo_tags's Introduction

GitHub Repository Tags

There are lots of threads like this asking GitHub to provide tags for repositories to make managing long lists of repositories easier. So far it seems nothing has happened, so here's a quick hack to let you use tags to manage repositories.

The small python program in this repository uses the GitHub API to get a list of your repos. and add their name, description, and URL, to a new repo., by default called repo_tags. Initially each “issue” is tagged unclassified, but you can tag them as you please, using regular issue tagging.

When re-run, repo_tags.py only creates issues for repos. that weren't already covered by an issue.

How to use

Setup

virtualenv -p python36 venv
. venv/bin/activate
pip install -r requirements.txt

and then log in to GitHub and create a repository called repo_tags to house the issues, it's fine to leave it empty.

Running

. venv/bin/activate  # if not just done above
python repo_tags.py

You can either put your username and password (and nothing else) in a file called login.info, or repo_tags.py will ask you for them when it's run.

For each issue it creates it pauses 10 seconds to avoid triggering GitHub rate-limiting lockouts. So it takes a long time to do the initial import, but it doesn't need supervision, so you can just leave it running.

TODO:

  • handle organizations properly, currently mixed in with user repos. with bad urls
  • update description for existing repositories when the description changes

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.