Skip to content

Latest commit

 

History

History
69 lines (45 loc) · 1.83 KB

README.md

File metadata and controls

69 lines (45 loc) · 1.83 KB

Drush github

Drush github command for listing, cloning, and searching github (organization) repositories.

If you are a member of only one organization, it will always use that. You can specify your organization on the command line with --org=myorg. If you are a member of multiple organizations, and one is not specified, you will be prompted to select one.

You must have a github oauth token to use this drush command. See https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ for help creating a token. The token can be placed in a file ~/.drush/.github or specified on the command line with --oauth=TOKEN.

The default output format is JSON. You can change this with --format=print-r.

Use drush help github for all usage options.

Examples

Search for all references to AH_ on my organization's repositories named "*_profile", ignoring errors.

drush github --org=pfizer --repos='_profile$' --search=AH_ 2>/dev/null

List all my organizations repositories, showing the name and description.

drush github

List my organizations repositories named "*-8", as an associative array whose value is the clone url.

drush github --repos='-8$'

Clone all my organizations repositories, displaying errors.

drush github --clone

List all my organizations repositories, showing all available information.

drush github --list=all

List all information about my organizations tagged releases.

drush github --list=tags_url

List all information about my organizations branches on repositories named "*_profile".

drush github --repos='_profile$' --list=branches_url

Search my organizations repositories named *_profile for "webform_encrypt:".

drush github --repos='_profile$' --search='webform_encrypt:'

See also