Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I add issues to github from the command line?

I'm new to git and I'd like to be able to map plans and progress for my project through github.

The problem is, that requires lots of clicking around with a browser on github.com, and I'd like to be able to automate the task somewhat by using a command line program.

Is there a command line interface for github?

like image 969
Jonathan Avatar asked Jun 12 '12 18:06

Jonathan


People also ask

Can I use Git commands in cmd?

All you have to do is load Command Prompt (Load the Start menu, then click "Run", type cmd and hit enter), then you can use Git commands as normal.

How do I manually add to GitHub?

On GitHub.com, navigate to the main page of the repository. Above the list of files, using the Add file drop-down, click Upload files. Drag and drop the file or folder you'd like to upload to your repository onto the file tree.


3 Answers

There's a ghi gem that you can use to manage issues.

The most commonly used ghi commands are:
   list        List your issues (or a repository's)
   show        Show an issue's details
   open        Open (or reopen) an issue
   close       Close an issue
   edit        Modify an existing issue
   comment     Leave a comment on an issue
   label       Create, list, modify, or delete labels
   assign      Assign an issue to yourself (or someone else)
   milestone   Manage project milestones
like image 141
bdukes Avatar answered Oct 08 '22 13:10

bdukes


You could check out this cli for the Github issues API. Note this is specific to Github Issues only.

Hope this helps.

[edit] The original answer mentioned this application which doesn't function anymore and recommends ghi.

like image 30
Norman Joyner Avatar answered Oct 08 '22 13:10

Norman Joyner


With Github's new official CLI (command line interface):

gh issue create --title "How to create an issue?" --body "I need a github CLI"

See additional details and options and installation instructions.

like image 13
Xavier Guihot Avatar answered Oct 08 '22 12:10

Xavier Guihot