Scripts to retrieve information from the Github repositories.
- PHP 7.1 or newer
- Composer
Git clone the repository or download.
Run the composer install command:
composer install
Get a list of available commands:
bin/github list
Get a list of repositories for the given team name:
bin/github repo:list --access-token='GithubPersonalAccessToken' digipolisgent
Get a list of repositories filtered by the provided type.
The supported types are:
- drupal_profile
- drupal_module
- drupal_theme
- php_package
bin/github repo:list --access-token='GithubPersonalAccessToken' --type=drupal_module digipolisgent`
You can filter for multiple types at once (OR):
bin/github repo:list --access-token='GithubPersonalAccessToken' --type=drupal_module --type=drupal_theme digipolisgent
Get a list of repositories filtered by a regular expression. The pattern will be applied to the repository name.
bin/github repo:list --access-token='GithubPersonalAccessToken' --pattern="/^drupal\_/" digipolisgent
You can filer by multiple patterns at once (OR):
bin/github repo:list --access-token='GithubPersonalAccessToken' --pattern="/^drupal\_/" --pattern="/^php\_/" digipolisgent
List all drupal sites where a project (install profile, module or theme) is used.
bin/github makefile:usage --access-token='GithubPersonalAccessToken' digipolisgent project_name
You can search usages for multiple projects at once:
bin/github makefile:usage --access-token='GithubPersonalAccessToken' digipolisgent project_name1 project_name2 project_name3
List all drupal sites where a project (install profile, module or theme) is used.
bin/github composer:usage --access-token='GithubPersonalAccessToken' digipolisgent project_name
You can search usages for multiple projects at once:
bin/github composer:usage --access-token='GithubPersonalAccessToken' digipolisgent project_name1 project_name2 project_name3