github-admin

Version, currently main branch1 version
  • main branchlatestApr 6, 2021

github.com/mipmip/github-admin

CLI admin utility to do housekeeping on your github account and repositories

4 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  github-admin:
    github: mipmip/github-admin
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
1.0.0
License
MIT
Author
Pim Snel
Target
  • ghadm from src/github-admin.cr

Dependencies

Runtime Dependencies

  • clim*github: at-grandpa/clim
  • dotenv*github: gdotdesign/cr-dotenv
  • octokit*github: mipmip/octokit.cr, branch: main-mipmip
  • tallboy*github: mipmip/tallboy, branch: master

README

Github Admin

Personal administration utility for housekeeping github accounts. Use with care it deletes repos without warning.

Features

  • Repository
    • [x] list
    • [x] show in web browser
    • [x] delete
    • [x] transfer to organization
    • [x] rename
  • Organization
    • [x] list
    • [x] list with repositories

Installation

Copy gdadm somewhere in your path. Tested on Linux only

Usage

$ ghadm repo
    list     list repositories
    web      open repository in web browser
    delete   delete repository
    trans    transfer repository to owned organization
    rename   rename repository

$ ghadm org
    list              List repositories
    list-with-repos   List my organizations

Development

compile:

shard build

Contributing

  1. Fork it (https://github.com/mipmip/github-admin/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • mipmip - creator and maintainer