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

Created on 21 May 2024, 6 months ago
Updated 15 July 2024, 4 months 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.71.5 2024