Skip to content

Scripts to retrieve information from the Github repositories.

License

Notifications You must be signed in to change notification settings

district09/php_scripts_github

Repository files navigation

PHP Scripts GitHub

Scripts to retrieve information from the Github repositories.

Maintainability

Requirements

  • PHP 7.1 or newer
  • Composer

Installation

Git clone the repository or download.

Run the composer install command:

composer install

Usage

Get a list of available commands

Get a list of available commands:

bin/github list

Get a list of repositories

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 type(s)

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 pattern

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

Find usages of a project within MakeFile sites

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

Find usages of a project within Composer sites

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

About

Scripts to retrieve information from the Github repositories.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages