Drupal issue queue commands
Contains commands useful for contributing to core issues.
- Unix environment
- create-patch only: interdiff
- test only: phantomjs and chromedriver
- A Drupal codebase checked out with Git
git clone https://git.drupal.org/project/drupal.git cd drupal composer install git clone email@example.com:mortenson/issue.git
Commands can then be run using
Patches a Drupal project based on an issue number.
~/repos/drupal (8.6.x)$ php issue/command patch What issue are you working on?: > 2962525 What patch would you like to apply?:  2962525-combined-12.patch  2962525-combined-16.patch  2962525-combined-17.patch  2962525-17.patch  2962525-combined-18.patch  2962525-combined-21.patch  2962525-21.patch > 5 Successfully applied 2962525-combined-21.patch
Creates a patch and interdiff based on an issue number.
~/repos/drupal (8.6.x *)$ php issue/command create-patch 2962110 Created 2962110-44.patch What patch do you want to create an interdiff from?:  2962110-42.patch  Do not create interdiff > 0 Created interdiff-2962110-42-44.txt
Performs tests based on changed files in a project.
For PHPUnit tests, you can pass the
--filter option to filter what test
methods or datasets are run.
If you prefer tracking changes with Git instead of using patch files, you should check out dorgflow.