Skip to content

Instantly share code, notes, and snippets.

@iannsp
Created July 27, 2012 21:16
Show Gist options
  • Save iannsp/3190502 to your computer and use it in GitHub Desktop.
Save iannsp/3190502 to your computer and use it in GitHub Desktop.
issue / issues command in github-sh

set command

  • set the session data
github-sh>set username iannsp
github-sh>set project github-sh

issue command

  • get issue 2 title
github-sh>issue 2
2 - do issue command
  • get issue 2 complete details
github-sh>issue 2 detail
2 - do issue command
  the issue command works to show a only issue from project
  • comment on issue
github-sh>issue 2 comment
write your comment:_
my comment is 'Its a comment'.
comment Ok.
  • closing issue
github-sh>issue 1 close
write your comment:_
this issue is done!
issue closed. 
  • reopen issue
github-sh>issue 1 reopen
write your comment:_
this issue are reopen for improvement!
issue reopen. 
  • create new issue
github-sh>issue create
title:_
this is the title of new issue
description:_
this is description of new issue
issue 10 created. 

issues command

  • get issues list in any state(closed, open)
github-sh>issues
2 - do issue command
3 - do issues command
  • get issues list in any state(closed, open)
github-sh>issues all
2 - do issue command
3 - do issues command
  • get issues list in closed state
github-sh>issues closed
nothing closed
  • get issues list in opened state
github-sh>issues open
2 - do issue command
3 - do issues command
@kinncj
Copy link

kinncj commented Jul 27, 2012

maybe can be nice have a option to accept an pull request of a related issue

@iannsp
Copy link
Author

iannsp commented Jul 27, 2012

sure, but it is subject to another gist and another code fest ;)

@kinncj
Copy link

kinncj commented Jul 28, 2012

Agreed.

But I`m saying something like:
github-sh>issues open
2 - do issue command
3 - do issues command

github-sh>issue 1 has pr?
yes

github-sh>issue 1 accept pr "Message here"

@iannsp
Copy link
Author

iannsp commented Jul 28, 2012

understand, but because in this case the subject is PR, I saw is more declarative the sentence:
github-sh>pr issue 1
// if found...
text with description
// if not
no pr for issue 1

// if exist and decide for accept
github-sh>pr issue 1 accept
pr [title] accepted.

@kinncj
Copy link

kinncj commented Jul 28, 2012

Nice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment