Add varbase:composer:cleanup:patches drush command to clean up composer.json from any merge request patches

Created on 21 May 2024, about 1 month ago
Updated 6 June 2024, 21 days ago

Problem/Motivation

After initiating Varbase patches and setting a rule to not use any merge request patches, I have implemented a Drush command to replace any merge request patch with a local patch.

Proposed resolution

Root `composer.json` file.

Name: varbase:composer:cleanup:patches
Aliases: var-ccup
Description: This command detects any merge request patches, downloads them to the local patches folder with a timestamp, and updates the root `composer.json` file to use the timestamped local patch file.

Example:

  ./bin/drush varbase:composer:cleanup:patches
  

or

  ./bin/drush var-ccup
  

External `patches-file` json file.

Name: varbase:composer:cleanup:patches-file
Aliases: var-ccupf
Description: This command detects any merge request patches, downloads them to the local patches folder with a timestamp, and updates the `patches-file JSON` file to use the timestamped local patch file.

Example:

  ./bin/drush varbase:composer:cleanup:patches-file
  

or

   ./bin/drush var-ccupf
  

Remaining tasks

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

Feature request
Status

Fixed

Version

10.0

Component

Code

Created by

🇯🇴Jordan abu-zakham

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024