• Stars
    star
    22
  • Rank 1,016,662 (Top 21 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 7 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Manage GitHub issues from command-line (read only!)

Gem Version Build Status

GitHub Issues

Manage your GitHub issues from command-line. If you are dealing with huge amount of repos, this tool will become more handy.

Idea

I need this tool for couple of reasons:

  1. list all issues of my all repositories without knowing the repo url.
  2. list a specific issue from a specific repo with full details.
  3. see my current issues which are related to GitHub account.

Installation

This is a command-line client. You can install via:

$ gem install gh_issues

or,

$ gem install gh_issues --version "0.4.8" --source "https://rubygems.pkg.github.com/vigo"

Usage

You need to create a GitHub token or use existing token of yours. Set your environment variable as:

GitHub token settings

If you don’t want this app to access your private repos please check only: public_repo


export GH_ISSUES_TOKEN=your-token-here

If you like to get colored output by default, set:

export GH_ISSUES_COLORIZE=1

You can change your date format via GH_ISSUES_DATE_FORMAT variable. Default value is : %d %B %Y, %H:%M, %A. This is Time.strftime format. More information can be found here. Set your default such as:

export GH_ISSUES_DATE_FORMAT='%A %B %-d, %Y,  %H:%M' # example

All commands:

Commands:
  gh_issues all                            # List all open issues, grouped by owner
  gh_issues help [COMMAND]                 # Describe available commands or one specific command
  gh_issues list OWNER_NAME                # List issues belongs to owner
  gh_issues show REPO_NAME [ISSUE_NUMBER]  # Show issues of REPO_NAME or ISSUE
  gh_issues version                        # Version information

Options:
  [--color], [--no-color]  
  [--sort-by=count]        
                           # Default: name
  [--sort-order=desc]      
                           # Default: asc

all

Lists all repos with open issues. Here is my repos:

+------------------------------------------+-----------+
|                          f                           |
+------------------------------------------+-----------+
| f/atom-bootstrap3                        |        23 |
+------------------------------------------+-----------+
|                                                   23 |
+------------------------------------------+-----------+
|                  gelistiriciyiz-biz                  |
+------------------------------------------+-----------+
| gelistiriciyiz-biz/gelistiriciyiz.biz    |         1 |
+------------------------------------------+-----------+
|                                                    1 |
+------------------------------------------+-----------+
|                      pyistanbul                      |
+------------------------------------------+-----------+
| pyistanbul/docs                          |         1 |
| pyistanbul/itspython                     |         1 |
| pyistanbul/website                       |        10 |
+------------------------------------------+-----------+
|                                                   12 |
+------------------------------------------+-----------+
|                      thoughtram                      |
+------------------------------------------+-----------+
| thoughtram/git-master-class-exercises    |         1 |
+------------------------------------------+-----------+
|                                                    1 |
+------------------------------------------+-----------+
|                         vigo                         |
+------------------------------------------+-----------+
| vigo/gh-issues-test                      |         4 |
| vigo/git-tips                            |         1 |
| vigo/ruby101-kitap                       |         1 |
| vigo/textmate-twitterbootstrap.tmbundle  |         1 |
+------------------------------------------+-----------+
|                                                    7 |
+------------------------------------------+-----------+
|                       webBoxio                       |
+------------------------------------------+-----------+
| webBoxio/atom-backbone                   |         3 |
| webBoxio/atom-color                      |        16 |
| webBoxio/atom-hashrocket                 |         4 |
| webBoxio/atom-html-preview               |        47 |
| webBoxio/atom-htmlizer                   |         2 |
| webBoxio/atom-ios                        |         1 |
| webBoxio/atom-powersnap                  |         2 |
| webBoxio/playbook                        |         1 |
| webBoxio/ws-coffee                       |         1 |
+------------------------------------------+-----------+
|                                                   77 |
+------------------------------------------+-----------+
| Total amount                             |       121 |
+------------------------------------------+-----------+

list

List single repo’s issues:

gh_issues list pyistanbul

+----------------------+------+
|         pyistanbul          |
+----------------------+------+
| pyistanbul/docs      |    1 |
| pyistanbul/itspython |    1 |
| pyistanbul/website   |   10 |
+----------------------+------+
|                          12 |
+----------------------+------+
| Total amount         |   12 |
+----------------------+------+

show

Show selected repo’s issues or show current GitHub repo’s. If you are in a folder with a git repo which has github origin you don’t need to type repo name!

gh_issues show   # you are in a git repo, origin is pointed to GitHub
gh_issues show pyistanbul/website

Here is the list:

+-----+-----------------------------------------------------------------+-------------------------------------------------+
|     | pyistanbul/website                                              | Url                                             |
+-----+-----------------------------------------------------------------+-------------------------------------------------+
| #53 | Sunum linkinin zorunlu olması                                   | https://github.com/pyistanbul/website/issues/53 |
| #52 | [admin] Jobs listesinde pozisyon adı ve şirket adı listelenmeli | https://github.com/pyistanbul/website/issues/52 |
| #51 | [jobs] İlanı yayından kaldırmak için seçenek eklenmesi          | https://github.com/pyistanbul/website/issues/51 |
| #49 | Sunum başvuruları için form                                     | https://github.com/pyistanbul/website/issues/49 |
| #48 | Issue #5: Auth, Social Auth, Profile Sayfalari                  | https://github.com/pyistanbul/website/pull/48   |
| #47 | Sitenin database dump'ı?                                        | https://github.com/pyistanbul/website/issues/47 |
| #46 | Sunumlar sayfasına etkinlik bilgilerinin entegre edimesi        | https://github.com/pyistanbul/website/issues/46 |
| #43 | Sirketler tablo sayfasi                                         | https://github.com/pyistanbul/website/issues/43 |
| #10 | Implement Facebook Open Graph meta tags                         | https://github.com/pyistanbul/website/issues/10 |
| #5  | Profil sayfası                                                  | https://github.com/pyistanbul/website/issues/5  |
+-----+-----------------------------------------------------------------+-------------------------------------------------+

If you pass issue number as parameter after repo name, you get the issue details:

gh_issues show pyistanbul/website 48
gh_issues show 2 # you are in a git repo, origin is pointed to GitHub, issue #2

Result:

+------------+--------------------------------------------------------------------------------+
| Repo/Issue | pyistanbul/website/48                                                          |
+------------+--------------------------------------------------------------------------------+
| Title      | Issue #5: Auth, Social Auth, Profile Sayfalari                                 |
+------------+--------------------------------------------------------------------------------+
| Opener     | bahattincinic                                                                  |
+------------+--------------------------------------------------------------------------------+
| Created at | 08 May 2015, 21:18, Friday (481 days ago)                                      |
| Updated at | 19 May 2015, 14:11, Tuesday (470 days ago)                                     |
+------------+--------------------------------------------------------------------------------+
| Body       | [ ] Profil Guncelleme sayfasinin yapilmasi.                                    |
|            | [ ] Kullanici ile People merge edilmesi.                                       |
|            | People ile kullanici modelini view/template de merge edicektim ama cok hosuma  |
|            | gitmedi. acaba direk modeli ucursak da User tablosuna initial olarak koysak mi |
|            | veya datamigration @berkerpeksag                                               |
|            | Yukaridaki 2 madde kaldi. Onlari yapiyim oyle merge ederiz. Bu arada yorum     |
|            | varsa da hemde tartismis oluruz.                                               |
|            | Yaptigim profil sayfasi su. Baya kotu oldu inline css falan yazdim. Fatihin    |
|            | ustunden gecmesi lazim :trollface:                                             |
|            | [screen shot 2015-05-07 at 11 19 31 pm ]-[link]                                |
+------------+--------------------------------------------------------------------------------+

Also, if the selected issue has comment(s):

+------------+---------------------------------------------------------+
|                             Comments (2)                             |
+------------+---------------------------------------------------------+
| vigo       | Comment 1                                               |
|            | ---                                                     |
|            | 03 September 2016, 17:09, Saturday (1 day ago)          |
+------------+---------------------------------------------------------+
| vigo       | Comment 2                                               |
|            | ---                                                     |
|            | 03 September 2016, 17:09, Saturday (1 day ago)          |
+------------+---------------------------------------------------------+

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bundle exec rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Or, you can use bumpversion (python) too :)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/vigo/gh_issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

More Repositories

1

git-puf-noktalari

Günlük hayatta kullandığımız revizyon kontrol sistemi GIT ile ilgili küçük ipuçlarını anlatan yeni mini kitabım.
Ruby
425
star
2

kommit

Build your commit message without touching or editing your code!
Shell
204
star
3

ruby101-kitap

Türkçe Ruby kitabı
Ruby
196
star
4

dinozorus

1990'lı yıllara damgasını vuran efsane televizyon oyunu Dinozorus. Amiga 1200 - AGA
Assembly
131
star
5

turk-scene-tarihi

80'lerin ortasında başlayan, günümüz bilgisayar kültürünün neredeyse başlangıç noktası olan Türk SCENE/DEMOSCENE tarihçesi
86
star
6

lyk-2017

Linux Yaz Kampı 2017'de anlattığım konular.
41
star
7

django2-project-template

Django project/application starter for lazybones :)
Python
40
star
8

textmate-twitterbootstrap.tmbundle

TextMate bundle for Twitter's Bootstrap
HTML
33
star
9

statoo

`statoo` is a super simple http GET tool for checking site health
Go
32
star
10

awesome-c64

Commodore 64 related links such as C64 tools for Mac/Linux/PC, demoscene related stuff, coding tools, C64 utilities etc...
30
star
11

textmate-octopress.tmbundle

TextMate bundle for Octopress blog engine. http://octopress.org/
29
star
12

dotfiles-light

Just another but `lighter` version of BASH environment
Shell
18
star
13

dotfiles-universal

My old BASH dot-files... Try new one!
Shell
13
star
14

textmate2-python-fmt

Python FMT is a python linter/formatter/checker for TextMate.
Ruby
13
star
15

textmate2-gfm-preview

GitHub Flavored Markdown Preview for TextMate 2
CSS
12
star
16

django-project-template

Project starter for Django 1.11.4 ... Batteries included :)
Python
10
star
17

textmate-hosts.tmbundle

TextMate bundle for /etc/hosts file
9
star
18

dotfiles-fever

Elegant BASH environment for macOS, Ubuntu and Gentoo
Shell
8
star
19

textmate-window-manager

Window manager/arranger for oldskool TextMate (1.5)
Shell
7
star
20

apm-bash-completion

Bash completion for Atom Package Manager (apm)
Shell
6
star
21

stormssh-completion

Bash competion for `sshstorm` (https://github.com/emre/storm)
Shell
6
star
22

devpod

Official website of devPod
HTML
6
star
23

textmate2-ruff-linter

Ruff linter for TextMate2. Linter and auto fixer for python!
Ruby
5
star
24

ugur.ozyilmazel.com-v5

Kişisel websitem V4.0
HTML
5
star
25

lsvirtualenvs

Small commandline tool for `virtualenvwrapper`
Go
4
star
26

ghstars

Show GitHub stars count for user!
Go
4
star
27

git-init-githubrepo

Create git repository for GitHub style
Go
4
star
28

golang-notlarim

Golang geliştirme ile ilgili aldığım notlar
Ruby
4
star
29

git-tips

Git versiyon kontrol sistemi ile ilgili Türkçe dökümantasyon ve ipuçları
JavaScript
4
star
30

dox2008

2007-2008 yıllarında İstanbul Bilgi Üniversitesi, web departmanı için hazırladığım javascript ve html/css eğitimleri
JavaScript
4
star
31

textmate2-power-tools

Some useful TextMate2 snippets, commands etc...
Ruby
3
star
32

inspect-go

Ruby-ish Object#inspect tryouts for Golang!
Go
3
star
33

putio

Command-Line client for put.io platform (unofficial)
Go
3
star
34

textmate2-64tass-bundle

64tass Bundle for TextMate 2
2
star
35

sayisal_captcha

Çok basit şekilde iki basamaklı sayılardan random toplama ya da çarpma üreten bir sistem
Ruby
2
star
36

learning-stimulus-02

I'm learning stimulus, this is example 02
JavaScript
2
star
37

vigo

I'm a hustler baby!
2
star
38

textmate2-gomodifytags

TextMate2 implementation of Fatih’s gomodifytags
Shell
2
star
39

vigo.io

Personal website
HTML
2
star
40

els

Unix `ls` command alternative via Ruby :)
Ruby
2
star
41

pg16_django

3. Programlama Günleri / Karabük - Django ile tanışma
Python
2
star
42

ruby101-kitap-kod

Ruby101 kitabında geçen kod örnekleri
2
star
43

learning-stimulus-01

I'm learning stimulus, this is example 01
JavaScript
1
star
44

textmate2-bootstrap3

Bootstrap 3's helpers for TextMate2
1
star
45

stringutils-demo

A basic golang package for demo purpose only...
Go
1
star
46

uptimerobot_cmd

Command-line client for Uptimerobot service
Ruby
1
star
47

textmate1-twitter-bs3.tmbundle

Twitter Bootstrap 3 bundle for TextMate1 (yes the oldest TextMate)
1
star
48

try_git

1
star
49

homebrew-statoo

brew tap repo for `statoo`
Ruby
1
star
50

homebrew-git-init-githubrepo

brew tap for `git-init-githubrepo`
Ruby
1
star
51

vigo.github.com

My developer home page...
HTML
1
star
52

dji18njs

Modified and hardcore changed version of Django's i18n-javascript function. Can be usable as JavasScript Template engine. If you familiar with python's "format text" you will love this!
JavaScript
1
star
53

homebrew-lsvirtualenvs

brew tap for lsvirtualenvs
Ruby
1
star
54

homebrew-ghstars

Brew tap for ghstars cli
Ruby
1
star
55

amiga-ascii.tmbundle

Oldskool Amiga ascii/azki/nfo/diz support for TextMate with real Amiga fonts
1
star
56

my-custom-textmate1-bundle

Many snippets and my custom scratch-pad for TextMate1.
CSS
1
star
57

ugur.ozyilmazel.com

Kişisel web sitem
HTML
1
star
58

textmate-nanorc.tmbundle

.nanorc bundle for TextMate
Ruby
1
star