You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
I'd like to be able to use gh to highly automate tasks. For instance, I'd like to be able to get the list of all repositories from a user and be able to fork them to a specific organization and have them all cloned to my machine. Then, I'd run some sort of automated modification on all the code I cloned, create a new branch for each repository, push the changes back to my github repository and create a PR. Finally, I'd like to be able to delete all those repos I just synced, either using some sort of rollback feature, by using a regex or by specifying the initial repository list.
I don't know if this goal aligns with gh or not. if it does, let me know, so that I may suggest other ideas as such.
The main point of this issue though is to discuss improvement to the base of gh. That is, if I am to pipe gh repo --list, I get an unusable list of repositories (I cannot pipe this list back into gh to do something for example). I think making piping viable will greatly increase gh value.
The text was updated successfully, but these errors were encountered:
This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface.
Doug McIlroy, inventor of the Unix pipe.
You may have noticed we recently dropped the gh prefix. This was exactly in order to move in this direction you're talking about.
Also, we currently output warnings / errors to stdout instead of stderr, and this will be fixed pretty soon. #352
@tomzx I know it's been a while since you brought this up but I strongly agree with the idea that this tool should be easy to use in an automation pipeline.
Were you envisioning running commands directly or requiring the gh lib in a node file and calling the apis directly?
I'd like to be able to use
gh
to highly automate tasks. For instance, I'd like to be able to get the list of all repositories from a user and be able to fork them to a specific organization and have them all cloned to my machine. Then, I'd run some sort of automated modification on all the code I cloned, create a new branch for each repository, push the changes back to my github repository and create a PR. Finally, I'd like to be able to delete all those repos I just synced, either using some sort of rollback feature, by using a regex or by specifying the initial repository list.I don't know if this goal aligns with
gh
or not. if it does, let me know, so that I may suggest other ideas as such.The main point of this issue though is to discuss improvement to the base of
gh
. That is, if I am to pipegh repo --list
, I get an unusable list of repositories (I cannot pipe this list back into gh to do something for example). I think making piping viable will greatly increasegh
value.The text was updated successfully, but these errors were encountered: