jsmits / github-cli Goto Github PK
View Code? Open in Web Editor NEWA command-line interface to the GitHub Issues API v2.
Home Page: http://github-cli.readthedocs.org/
License: Other
A command-line interface to the GitHub Issues API v2.
Home Page: http://github-cli.readthedocs.org/
License: Other
Happend on my fork. I was creating some issues and i they didn't show on the project page, but ghi saw them fine.
I had to enable issues on the admin settings.
It would be nice to have a warning on this.
I dont know is this is a APIv2 problem tough.
testing 1,2,3
another line
convert README to RestructuredText
When starting ghi without having had github.user
and github.token
defined will break the terminal emulation. What happens is that ghi exits silently on tilda 0.9.6
and will leave the terminal unusable (has to be killed). On xterm it will at least display the error message about missing configuration but will also leave the terminal unusable.
Version: 0.3.0 (and 0.2.7)
System: Ubuntu 10.10 (32bit)
Use Case:
In the beginning of the project I usually have many ideas for features that I would like to implement. Also, I organize these tasks according to their labels, but I would like to be able to enter them all on one screen instead of doing it one by one.
I'm open to the format that can be used, but it would be great to have a command called "Braindump", which would allow me to write many issues in 1 list and open them in github.
We could use something like this:
title: Feature Request: Blah blah blah
labels: feature-request new urgent
description:
Some info about the request....
title: Second item
labels: new urgent
description:
Some info about the request....
Items could be separated by 2 blank lines.
What do you think about something like this?
If this feature already exists it is not indicated in the documentation.
explain that ghi now also works with hg-git controlled github repos
Getting this message every time a new issue is created. (The issue is still created successfully)
I forked github-cli to see if I could have a look at it, but didn't have much luck. Care to take a look?
I'm assuming that opener.open() throws an exception if it receives anything but a 200 response. I'm not sure if the API has changed or something but successfully creating a new resource (an Issue) returns a 201 Created HTTP status.
Github Issues really became useful to me with v3 (Milestones, etc.) I would love to see support for listing Milestones, filtering by Milestone, etc. Any chance of this happening in the future?
to make it more DRY
build file is now optimized for github's gh-pages
also need to deploy docs to pacakges.python.org
i am trying to add stickyheaderlistview to this library but not succeeded . I cann't figure out how i can add stickyheaderlistview to this library ...
when choosing a repo, you don't have to be in the specific git working directory
if no $HOME/.ghrc is found, show a usage message with the required config parameters
I am not sure if this is a ghi thing or simple_json thing ( not familiar with the python world ). It appears that ghi is installed correctly, but when the setup script attempts to get simple_json, I receive the following error.
I am OSX 10.5.7 and installing through a cloned repo:
Installed /Library/Python/2.5/site-packages/github_cli-0.2.5.2-py2.5.egg
Processing dependencies for github-cli==0.2.5.2
Searching for simplejson
Reading http://pypi.python.org/simple/simplejson/
Reading http://undefined.org/python/#simplejson
Best match: simplejson 2.0.9
Downloading http://pypi.python.org/packages/source/s/simplejson/simplejson-2.0.9.tar.gz#md5=af5e67a39ca3408563411d357e6d5e47
Processing simplejson-2.0.9.tar.gz
Running simplejson-2.0.9/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wZawJb/simplejson-2.0.9/egg-dist-tmp-eeZcvv
No eggs found in /tmp/easy_install-wZawJb/simplejson-2.0.9/egg-dist-tmp-eeZcvv (setup script problem?)
error: Could not find required distribution simplejson
at least, write tests that check the available commands, args and options
First run for repo with issues with russian chars (например вот так) process error:
error: 'ascii' codec can't encode characters in position 7-17: ordinal not in range(128)
catch the KeyboardInterrupt; not so trivial as it seems
This repo wont function until it is updated for the Github v3 api, can someone update the README to reflect this?
I have github.user and github.token setup in my global git config (as instructed by the guide: http://github.com/guides/tell-git-your-user-name-and-email-address ).
Why not look for them there first, and if not found then look in .ghrc?
these are now unvalidated, wrong input results in: error: server problem, which is not very informative
› ghi label add api security 20
error: label() takes at most 4 arguments (5 given)
› ghi label add api,security 20
error: server problem (HTTP Error 422: Unprocessable Entity)
› ghi label add security 20
labels for issue #20:
- security
› ghi label add api 20
labels for issue #20:
- api
- security
Presently, it outputs:
But, it should be:
The first one should redirect to the second in the case of a pull request.
As far as I can tell, there is currently no way to retrieve a ticket's comments through ghi.
I've made a basic attempt at adding this functionality:
http://github.com/FND/github-cli/commit/b8fe26fa727a9b239c4d6f195c63f9aded50c559
It's probably not suitable to be merged in its current form though. Please let me know if you have any suggestions on how to improve it.
Since my ~/.gitconfig is public, I cannot add my GitHub API token to it.
It would be useful to have an option for specifying username and token elsewhere.
Due to similar requirements, defunkt's gist script allows a custom extraction command to be configured:
http://github.com/defunkt/gist/compare/51c1af83da158aebba2aa6d402557f8ebef44373...713763d2c8fc276a7e083947e589f7683ba8e0e7
Because one may want to enter text in "github flavored markdown" syntax (as in this issue text).
Using another character other than the #
could be a solution. Or at least adding a new command line option to disable this feature.
I get this error:
$ ghi list
# open issues on prologic/udns
error: server problem (HTTP Error 410: Gone)
Any ideas what's going on here? ghi
doesn't seem to have any debugging flags/options?
catch time-out and server exceptions
commands repeat the same code regarding url construction
need to factor this out
if auth is required, add post params login and token in urlopen2
It was great if ghi could make pull request ...
convert date strings from created_at
and updated_at
to local datetime instances
for general usage and for each command
I have created the .ghrc file and the setup went fine without error messages. But when I run any of the commands i get “error: repo not found”.
use al
, rl
, s
and m
This doesn't seem to work for the -m
argument. :
ghi o -m <<EOF
This is the title
This is the body.
This is another line in the body.
EOF
I think it would be nicer to able to do this as opposed to a hard \n
on the command line or opening the editor.
reported it to developers
create_edit_issue
and create_comment
I’ve been unable to install the current tip of master (44cbef245c25a24bfe188cd14a8bd9431730aeea) because it can’t acquire simplejson.
I’m running Mac OS X 10.5.6. Here’s a transcript:
$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to src/github_cli.egg-info/requires.txt
writing src/github_cli.egg-info/PKG-INFO
writing top-level names to src/github_cli.egg-info/top_level.txt
writing dependency_links to src/github_cli.egg-info/dependency_links.txt
writing entry points to src/github_cli.egg-info/entry_points.txt
reading manifest file ‘src/github_cli.egg-info/SOURCES.txt’
writing manifest file ‘src/github_cli.egg-info/SOURCES.txt’
installing library code to build/bdist.macosx-10.5-i386/egg
running install_lib
running build_py
creating build/bdist.macosx-10.5-i386/egg
creating build/bdist.macosx-10.5-i386/egg/github
copying build/lib/github/init.py → build/bdist.macosx-10.5-i386/egg/github
copying build/lib/github/issues.py → build/bdist.macosx-10.5-i386/egg/github
copying build/lib/github/utils.py → build/bdist.macosx-10.5-i386/egg/github
byte-compiling build/bdist.macosx-10.5-i386/egg/github/init.py to init.pyc
byte-compiling build/bdist.macosx-10.5-i386/egg/github/issues.py to issues.pyc
byte-compiling build/bdist.macosx-10.5-i386/egg/github/utils.py to utils.pyc
creating build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying src/github_cli.egg-info/PKG-INFO → build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying src/github_cli.egg-info/SOURCES.txt → build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying src/github_cli.egg-info/dependency_links.txt → build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying src/github_cli.egg-info/entry_points.txt → build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying src/github_cli.egg-info/requires.txt → build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying src/github_cli.egg-info/top_level.txt → build/bdist.macosx-10.5-i386/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents…
creating ‘dist/github_cli-0.1-py2.5.egg’ and adding ‘build/bdist.macosx-10.5-i386/egg’ to it
removing ‘build/bdist.macosx-10.5-i386/egg’ (and everything under it)
Processing github_cli-0.1-py2.5.egg
Removing /Library/Python/2.5/site-packages/github_cli-0.1-py2.5.egg
Copying github_cli-0.1-py2.5.egg to /Library/Python/2.5/site-packages
github-cli 0.1 is already the active version in easy-install.pth
Installing gh-issues script to /usr/local/bin
Installed /Library/Python/2.5/site-packages/github_cli-0.1-py2.5.egg
Processing dependencies for github-cli==0.1
Searching for simplejson
Reading http://pypi.python.org/simple/simplejson/
Reading http://undefined.org/python/#simplejson
Best match: simplejson 2.0.9
Downloading http://pypi.python.org/packages/source/s/simplejson/simplejson-2.0.9.tar.gz#md5=af5e67a39ca3408563411d357e6d5e47
Processing simplejson-2.0.9.tar.gz
Running simplejson-2.0.9/setup.py -q bdist_egg —dist-dir /tmp/easy_install-k4sy62/simplejson-2.0.9/egg-dist-tmp-PcHvvD
No eggs found in /tmp/easy_install-k4sy62/simplejson-2.0.9/egg-dist-tmp-PcHvvD (setup script problem?)
error: Could not find required distribution simplejson
default should be only titles
verbose output should show details
$ python setup.py install --user
Traceback (most recent call last):
File "setup.py", line 14, in <module>
from github.version import get_version
ImportError: No module named version
pazz@megatron:~/projects/github-cli$ python setup.py install
Traceback (most recent call last):
File "setup.py", line 14, in <module>
from github.version import get_version
ImportError: No module named version
the same error occurs when i do a pip install github-cli
.
I'm on ubuntu 11.04.
$ git config --set remote.origin.url
git://github.com/ghuntley/github-cli
$ ghi
error: invalid user and repo name
$ git config --unset remote.origin.url
$ git config --add remote.origin.url
git://github.com/ghuntley/github-cli.git
$ ghi
# open issues on ghuntley/github-cli
no open issues available
documented: http://develop.github.com/p/issues.html
utils.get_remote_info should use git config --get remote.origin.url
instead of git remote -v
create sample configs
adjust code to make it testable against the sample configs
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.